MCPcopy Create free account
hub / github.com/apache/qpid-proton / tls_version_check

Function tls_version_check

c/src/ssl/schannel.cpp:959–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957/** SChannel specific: */
958
959const 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
969static void ssl_encrypt(pn_transport_t *transport, char *app_data, size_t count)
970{

Callers 2

client_handshakeFunction · 0.85
server_handshakeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected