Lines Matching refs:TlsConn
121 TLS_CONNECTION *TlsConn; in TlsSetVersion() local
124 TlsConn = (TLS_CONNECTION *)Tls; in TlsSetVersion()
125 if (TlsConn == NULL || TlsConn->Ssl == NULL) { in TlsSetVersion()
136 SSL_set_ssl_method (TlsConn->Ssl, TLSv1_method ()); in TlsSetVersion()
142 SSL_set_ssl_method (TlsConn->Ssl, TLSv1_1_method ()); in TlsSetVersion()
148 SSL_set_ssl_method (TlsConn->Ssl, TLSv1_2_method ()); in TlsSetVersion()
180 TLS_CONNECTION *TlsConn; in TlsSetConnectionEnd() local
182 TlsConn = (TLS_CONNECTION *) Tls; in TlsSetConnectionEnd()
183 if (TlsConn == NULL || TlsConn->Ssl == NULL) { in TlsSetConnectionEnd()
191 SSL_set_connect_state (TlsConn->Ssl); in TlsSetConnectionEnd()
226 TLS_CONNECTION *TlsConn; in TlsSetCipherList() local
231 TlsConn = (TLS_CONNECTION *) Tls; in TlsSetCipherList()
232 if (TlsConn == NULL || TlsConn->Ssl == NULL || CipherId == NULL) { in TlsSetCipherList()
264 if (SSL_set_cipher_list (TlsConn->Ssl, CipherString) <= 0) { in TlsSetCipherList()
336 TLS_CONNECTION *TlsConn; in TlsSetVerify() local
338 TlsConn = (TLS_CONNECTION *) Tls; in TlsSetVerify()
339 if (TlsConn == NULL || TlsConn->Ssl == NULL) { in TlsSetVerify()
346 SSL_set_verify (TlsConn->Ssl, VerifyMode, NULL); in TlsSetVerify()
372 TLS_CONNECTION *TlsConn; in TlsSetSessionId() local
375 TlsConn = (TLS_CONNECTION *) Tls; in TlsSetSessionId()
378 if (TlsConn == NULL || TlsConn->Ssl == NULL || SessionId == NULL) { in TlsSetSessionId()
382 Session = SSL_get_session (TlsConn->Ssl); in TlsSetSessionId()
422 TLS_CONNECTION *TlsConn; in TlsSetCaCertificate() local
431 TlsConn = (TLS_CONNECTION *) Tls; in TlsSetCaCertificate()
434 if (TlsConn == NULL || TlsConn->Ssl == NULL || Data == NULL || DataSize == 0) { in TlsSetCaCertificate()
465 SslCtx = SSL_get_SSL_CTX (TlsConn->Ssl); in TlsSetCaCertificate()
528 TLS_CONNECTION *TlsConn; in TlsSetHostPublicCert() local
533 TlsConn = (TLS_CONNECTION *) Tls; in TlsSetHostPublicCert()
535 if (TlsConn == NULL || TlsConn->Ssl == NULL || Data == NULL || DataSize == 0) { in TlsSetHostPublicCert()
566 if (SSL_use_certificate (TlsConn->Ssl, Cert) != 1) { in TlsSetHostPublicCert()
651 TLS_CONNECTION *TlsConn; in TlsGetVersion() local
653 TlsConn = (TLS_CONNECTION *) Tls; in TlsGetVersion()
655 ASSERT (TlsConn != NULL); in TlsGetVersion()
657 return (UINT16)(SSL_version (TlsConn->Ssl)); in TlsGetVersion()
677 TLS_CONNECTION *TlsConn; in TlsGetConnectionEnd() local
679 TlsConn = (TLS_CONNECTION *) Tls; in TlsGetConnectionEnd()
681 ASSERT (TlsConn != NULL); in TlsGetConnectionEnd()
683 return (UINT8)SSL_is_server (TlsConn->Ssl); in TlsGetConnectionEnd()
707 TLS_CONNECTION *TlsConn; in TlsGetCurrentCipher() local
710 TlsConn = (TLS_CONNECTION *) Tls; in TlsGetCurrentCipher()
713 if (TlsConn == NULL || TlsConn->Ssl == NULL || CipherId == NULL) { in TlsGetCurrentCipher()
717 Cipher = SSL_get_current_cipher (TlsConn->Ssl); in TlsGetCurrentCipher()
770 TLS_CONNECTION *TlsConn; in TlsGetVerify() local
772 TlsConn = (TLS_CONNECTION *) Tls; in TlsGetVerify()
774 ASSERT (TlsConn != NULL); in TlsGetVerify()
776 return SSL_get_verify_mode (TlsConn->Ssl); in TlsGetVerify()
802 TLS_CONNECTION *TlsConn; in TlsGetSessionId() local
806 TlsConn = (TLS_CONNECTION *) Tls; in TlsGetSessionId()
809 if (TlsConn == NULL || TlsConn->Ssl == NULL || SessionId == NULL || SessionIdLen == NULL) { in TlsGetSessionId()
813 Session = SSL_get_session (TlsConn->Ssl); in TlsGetSessionId()
842 TLS_CONNECTION *TlsConn; in TlsGetClientRandom() local
844 TlsConn = (TLS_CONNECTION *) Tls; in TlsGetClientRandom()
846 if (TlsConn == NULL || TlsConn->Ssl == NULL || ClientRandom == NULL) { in TlsGetClientRandom()
850 CopyMem (ClientRandom, TlsConn->Ssl->s3->client_random, SSL3_RANDOM_SIZE); in TlsGetClientRandom()
871 TLS_CONNECTION *TlsConn; in TlsGetServerRandom() local
873 TlsConn = (TLS_CONNECTION *) Tls; in TlsGetServerRandom()
875 if (TlsConn == NULL || TlsConn->Ssl == NULL || ServerRandom == NULL) { in TlsGetServerRandom()
879 CopyMem (ServerRandom, TlsConn->Ssl->s3->server_random, SSL3_RANDOM_SIZE); in TlsGetServerRandom()
903 TLS_CONNECTION *TlsConn; in TlsGetKeyMaterial() local
906 TlsConn = (TLS_CONNECTION *) Tls; in TlsGetKeyMaterial()
909 if (TlsConn == NULL || TlsConn->Ssl == NULL || KeyMaterial == NULL) { in TlsGetKeyMaterial()
913 Session = SSL_get_session (TlsConn->Ssl); in TlsGetKeyMaterial()
977 TLS_CONNECTION *TlsConn; in TlsGetHostPublicCert() local
980 TlsConn = (TLS_CONNECTION *) Tls; in TlsGetHostPublicCert()
982 if (TlsConn == NULL || TlsConn->Ssl == NULL || DataSize == NULL) { in TlsGetHostPublicCert()
986 Cert = SSL_get_certificate(TlsConn->Ssl); in TlsGetHostPublicCert()