Lines Matching refs:tlsSession
136 if (client->tlsSession) return TRUE; in InitializeTLSSession()
138 if ((ret = gnutls_init((gnutls_session_t*)&client->tlsSession, GNUTLS_CLIENT)) < 0) in InitializeTLSSession()
144 if ((ret = gnutls_priority_set_direct((gnutls_session_t)client->tlsSession, in InitializeTLSSession()
150 gnutls_transport_set_ptr((gnutls_session_t)client->tlsSession, (gnutls_transport_ptr_t)client); in InitializeTLSSession()
151 gnutls_transport_set_push_function((gnutls_session_t)client->tlsSession, PushTLS); in InitializeTLSSession()
152 gnutls_transport_set_pull_function((gnutls_session_t)client->tlsSession, PullTLS); in InitializeTLSSession()
166 …(ret = gnutls_credentials_set((gnutls_session_t)client->tlsSession, GNUTLS_CRD_ANON, anonCred)) < … in SetTLSAnonCredential()
182 while (timeout > 0 && (ret = gnutls_handshake((gnutls_session_t)client->tlsSession)) < 0) in HandshakeTLS()
441 …if ((ret = gnutls_credentials_set((gnutls_session_t)client->tlsSession, GNUTLS_CRD_CERTIFICATE, x5… in HandleVeNCryptAuth()
464 ret = gnutls_record_recv((gnutls_session_t)client->tlsSession, out, n); in ReadFromTLS()
485 ret = gnutls_record_send((gnutls_session_t)client->tlsSession, buf+offset, (size_t)(n-offset)); in WriteToTLS()
500 if (client->tlsSession) in FreeTLS()
502 gnutls_deinit((gnutls_session_t)client->tlsSession); in FreeTLS()
503 client->tlsSession = NULL; in FreeTLS()