| 957 | /** SChannel specific: */ |
| 958 | |
| 959 | const char *tls_version_check(pni_ssl_t *ssl) |
| 960 | { |
| 961 | SecPkgContext_ConnectionInfo info; |
| 962 | QueryContextAttributes(&ssl->ctxt_handle, SECPKG_ATTR_CONNECTION_INFO, &info); |
| 963 | // Ascending bit patterns denote newer SSL/TLS protocol versions. |
| 964 | // SP_PROT_TLS1_0_SERVER is not defined until VS2010. |
| 965 | return (info.dwProtocol < SP_PROT_TLS1_SERVER) ? |
| 966 | "peer does not support TLS 1.0 security" : NULL; |
| 967 | } |
| 968 | |
| 969 | static void ssl_encrypt(pn_transport_t *transport, char *app_data, size_t count) |
| 970 | { |
no outgoing calls
no test coverage detected