Searched refs:TlsConn (Results 1 – 8 of 8) sorted by relevance
/device/linaro/bootloader/edk2/CryptoPkg/Library/TlsLib/ |
D | TlsInit.c | 153 TLS_CONNECTION *TlsConn; in TlsFree() local 155 TlsConn = (TLS_CONNECTION *) Tls; in TlsFree() 156 if (TlsConn == NULL) { in TlsFree() 163 if (TlsConn->Ssl != NULL) { in TlsFree() 164 SSL_free (TlsConn->Ssl); in TlsFree() 167 if (TlsConn->InBio != NULL) { in TlsFree() 168 BIO_free (TlsConn->InBio); in TlsFree() 171 if (TlsConn->OutBio != NULL) { in TlsFree() 172 BIO_free (TlsConn->OutBio); in TlsFree() 197 TLS_CONNECTION *TlsConn; in TlsNew() local [all …]
|
D | TlsProcess.c | 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() [all …]
|
D | TlsConfig.c | 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() [all …]
|
/device/linaro/bootloader/edk2/NetworkPkg/TlsDxe/ |
D | TlsProtocol.c | 92 …Status = TlsSetVersion (Instance->TlsConn, ((EFI_TLS_VERSION *) Data)->Major, ((EFI_TLS_VERSION *)… in TlsSetSessionData() 100 Status = TlsSetConnectionEnd (Instance->TlsConn, *((EFI_TLS_CONNECTION_END *) Data)); in TlsSetSessionData() 113 Status = TlsSetCipherList (Instance->TlsConn, CipherId, DataSize / sizeof (EFI_TLS_CIPHER)); in TlsSetSessionData() 145 TlsSetVerify (Instance->TlsConn, *((UINT32 *) Data)); in TlsSetSessionData() 154 Instance->TlsConn, in TlsSetSessionData() 253 *((UINT16 *) Data) = HTONS (TlsGetVersion (Instance->TlsConn)); in TlsGetSessionData() 262 *((UINT8 *) Data) = TlsGetConnectionEnd (Instance->TlsConn); in TlsGetSessionData() 274 Status = TlsGetCurrentCipher (Instance->TlsConn, (UINT16 *) Data); in TlsGetSessionData() 287 Status = TlsGetCurrentCompressionId (Instance->TlsConn, (UINT8 *) Data); in TlsGetSessionData() 299 *((UINT32 *) Data) = TlsGetVerify (Instance->TlsConn); in TlsGetSessionData() [all …]
|
D | TlsConfigProtocol.c | 68 Status = TlsSetCaCertificate (Instance->TlsConn, Data, DataSize); in TlsConfigurationSetData() 71 Status = TlsSetHostPublicCert (Instance->TlsConn, Data, DataSize); in TlsConfigurationSetData() 74 Status = TlsSetHostPrivateKey (Instance->TlsConn, Data, DataSize); in TlsConfigurationSetData() 135 Status = TlsGetCaCertificate (Instance->TlsConn, Data, DataSize); in TlsConfigurationGetData() 138 Status = TlsGetHostPublicCert (Instance->TlsConn, Data, DataSize); in TlsConfigurationGetData() 141 Status = TlsGetHostPrivateKey (Instance->TlsConn, Data, DataSize); in TlsConfigurationGetData()
|
D | TlsDriver.c | 35 if (Instance->TlsConn != NULL) { in TlsCleanInstance() 36 TlsFree (Instance->TlsConn); in TlsCleanInstance() 342 TlsInstance->TlsConn = TlsNew (TlsService->TlsCtx); in TlsServiceBindingCreateChild() 343 if (TlsInstance->TlsConn == NULL) { in TlsServiceBindingCreateChild() 351 Status = TlsSetConnectionEnd (TlsInstance->TlsConn, EfiTlsClient); in TlsServiceBindingCreateChild()
|
D | TlsImpl.c | 115 TlsWrite (TlsInstance->TlsConn, (UINT8 *) (RecordHeaderIn + 1), ThisPlainMessageSize); in TlsEncryptPacket() 117 …Ret = TlsCtrlTrafficOut (TlsInstance->TlsConn, (UINT8 *)(TempRecordHeader), MAX_BUFFER_SIZE - Buff… in TlsEncryptPacket() 266 …Ret = TlsCtrlTrafficIn (TlsInstance->TlsConn, (UINT8 *) (RecordHeaderIn), RECORD_HEADER_LEN + This… in TlsDecryptPacket() 274 …Ret = TlsRead (TlsInstance->TlsConn, (UINT8 *) (TempRecordHeader + 1), MAX_BUFFER_SIZE - BufferOut… in TlsDecryptPacket()
|
D | TlsDriver.h | 85 VOID *TlsConn; member
|