• Home
  • Raw
  • Download

Lines Matching refs:TlsConn

38   TLS_CONNECTION  *TlsConn;  in TlsInHandshake()  local
40 TlsConn = (TLS_CONNECTION *) Tls; in TlsInHandshake()
41 if (TlsConn == NULL || TlsConn->Ssl == NULL) { in TlsInHandshake()
48 return !SSL_is_init_finished (TlsConn->Ssl); in TlsInHandshake()
87 TLS_CONNECTION *TlsConn; in TlsDoHandshake() local
92 TlsConn = (TLS_CONNECTION *) Tls; in TlsDoHandshake()
96 if (TlsConn == NULL || \ in TlsDoHandshake()
97 TlsConn->Ssl == NULL || TlsConn->InBio == NULL || TlsConn->OutBio == NULL || \ in TlsDoHandshake()
111 PendingBufferSize = (UINTN) BIO_ctrl_pending (TlsConn->OutBio); in TlsDoHandshake()
113 SSL_set_connect_state (TlsConn->Ssl); in TlsDoHandshake()
114 Ret = SSL_do_handshake (TlsConn->Ssl); in TlsDoHandshake()
115 PendingBufferSize = (UINTN) BIO_ctrl_pending (TlsConn->OutBio); in TlsDoHandshake()
118 PendingBufferSize = (UINTN) BIO_ctrl_pending (TlsConn->OutBio); in TlsDoHandshake()
120 BIO_write (TlsConn->InBio, BufferIn, (UINT32) BufferInSize); in TlsDoHandshake()
121 Ret = SSL_do_handshake (TlsConn->Ssl); in TlsDoHandshake()
122 PendingBufferSize = (UINTN) BIO_ctrl_pending (TlsConn->OutBio); in TlsDoHandshake()
127 Ret = SSL_get_error (TlsConn->Ssl, (int) Ret); in TlsDoHandshake()
135 SSL_get_state (TlsConn->Ssl), in TlsDoHandshake()
165 *BufferOutSize = BIO_read (TlsConn->OutBio, BufferOut, (UINT32) PendingBufferSize); in TlsDoHandshake()
208 TLS_CONNECTION *TlsConn; in TlsHandleAlert() local
213 TlsConn = (TLS_CONNECTION *) Tls; in TlsHandleAlert()
218 if (TlsConn == NULL || \ in TlsHandleAlert()
219 TlsConn->Ssl == NULL || TlsConn->InBio == NULL || TlsConn->OutBio == NULL || \ in TlsHandleAlert()
227 PendingBufferSize = (UINTN) BIO_ctrl_pending (TlsConn->OutBio); in TlsHandleAlert()
229 Ret = BIO_write (TlsConn->InBio, BufferIn, (UINT32) BufferInSize); in TlsHandleAlert()
240 SSL_read (TlsConn->Ssl, TempBuffer, MAX_BUFFER_SIZE); in TlsHandleAlert()
244 PendingBufferSize = (UINTN) BIO_ctrl_pending (TlsConn->OutBio); in TlsHandleAlert()
253 *BufferOutSize = BIO_read (TlsConn->OutBio, BufferOut, (UINT32) PendingBufferSize); in TlsHandleAlert()
287 TLS_CONNECTION *TlsConn; in TlsCloseNotify() local
290 TlsConn = (TLS_CONNECTION *) Tls; in TlsCloseNotify()
293 if (TlsConn == NULL || \ in TlsCloseNotify()
294 TlsConn->Ssl == NULL || TlsConn->InBio == NULL || TlsConn->OutBio == NULL || \ in TlsCloseNotify()
300 PendingBufferSize = (UINTN) BIO_ctrl_pending (TlsConn->OutBio); in TlsCloseNotify()
305 SSL_shutdown (TlsConn->Ssl); in TlsCloseNotify()
306 PendingBufferSize = (UINTN) BIO_ctrl_pending (TlsConn->OutBio); in TlsCloseNotify()
315 *BufferSize = BIO_read (TlsConn->OutBio, Buffer, (UINT32) PendingBufferSize); in TlsCloseNotify()
345 TLS_CONNECTION *TlsConn; in TlsCtrlTrafficOut() local
347 TlsConn = (TLS_CONNECTION *) Tls; in TlsCtrlTrafficOut()
348 if (TlsConn == NULL || TlsConn->OutBio == 0) { in TlsCtrlTrafficOut()
355 return BIO_read (TlsConn->OutBio, Buffer, (UINT32) BufferSize); in TlsCtrlTrafficOut()
380 TLS_CONNECTION *TlsConn; in TlsCtrlTrafficIn() local
382 TlsConn = (TLS_CONNECTION *) Tls; in TlsCtrlTrafficIn()
383 if (TlsConn == NULL || TlsConn->InBio == 0) { in TlsCtrlTrafficIn()
390 return BIO_write (TlsConn->InBio, Buffer, (UINT32) BufferSize); in TlsCtrlTrafficIn()
415 TLS_CONNECTION *TlsConn; in TlsRead() local
417 TlsConn = (TLS_CONNECTION *) Tls; in TlsRead()
418 if (TlsConn == NULL || TlsConn->Ssl == NULL) { in TlsRead()
425 return SSL_read (TlsConn->Ssl, Buffer, (UINT32) BufferSize); in TlsRead()
451 TLS_CONNECTION *TlsConn; in TlsWrite() local
453 TlsConn = (TLS_CONNECTION *) Tls; in TlsWrite()
454 if (TlsConn == NULL || TlsConn->Ssl == NULL) { in TlsWrite()
461 return SSL_write (TlsConn->Ssl, Buffer, (UINT32) BufferSize); in TlsWrite()