Home
last modified time | relevance | path

Searched refs:tlsContext (Results 1 – 5 of 5) sorted by relevance

/foundation/communication/netstack/frameworks/native/tls_socket/src/
Dtls_context.cpp34 auto tlsContext = std::make_unique<TLSContext>(); in CreateConfiguration() local
35 if (!InitTlsContext(tlsContext.get(), configuration)) { in CreateConfiguration()
39 return tlsContext; in CreateConfiguration()
49 bool TLSContext::SetCipherList(TLSContext *tlsContext, const TLSConfiguration &configuration) in SetCipherList() argument
51 if (!tlsContext) { in SetCipherList()
56 if (SSL_CTX_set_cipher_list(tlsContext->ctx_, configuration.GetCipherSuite().c_str()) <= 0) { in SetCipherList()
63 void TLSContext::GetCiphers(TLSContext *tlsContext) in GetCiphers() argument
65 if (!tlsContext) { in GetCiphers()
70 STACK_OF(SSL_CIPHER) *sk = SSL_CTX_get_ciphers(tlsContext->ctx_); in GetCiphers()
84 bool TLSContext::SetSignatureAlgorithms(TLSContext *tlsContext, const TLSConfiguration &configurati… in SetSignatureAlgorithms() argument
[all …]
Dtls_context_server.cpp34 auto tlsContext = std::make_unique<TLSContextServer>(); in CreateConfiguration() local
35 if (!InitTlsContext(tlsContext.get(), configuration)) { in CreateConfiguration()
39 return tlsContext; in CreateConfiguration()
49 bool TLSContextServer::SetCipherList(TLSContextServer *tlsContext, const TLSConfiguration &configur… in SetCipherList() argument
51 if (!tlsContext) { in SetCipherList()
56 if (SSL_CTX_set_cipher_list(tlsContext->ctx_, configuration.GetCipherSuite().c_str()) <= 0) { in SetCipherList()
63 void TLSContextServer::GetCiphers(TLSContextServer *tlsContext) in GetCiphers() argument
65 if (!tlsContext) { in GetCiphers()
70 STACK_OF(SSL_CIPHER) *sk = SSL_CTX_get_ciphers(tlsContext->ctx_); in GetCiphers()
84 bool TLSContextServer::SetSignatureAlgorithms(TLSContextServer *tlsContext, const TLSConfiguration … in SetSignatureAlgorithms() argument
[all …]
/foundation/communication/netstack/test/unittest/tlssocket/client/
DTlsContextTest.cpp152 std::unique_ptr<TLSContext> tlsContext = TLSContext::CreateConfiguration(configuration); variable
154 EXPECT_NE(tlsContext, nullptr);
155 tlsContext->CloseCtx();
171 std::unique_ptr<TLSContext> tlsContext = TLSContext::CreateConfiguration(configuration); variable
172 EXPECT_NE(tlsContext, nullptr);
173 TLSContext::SetMinAndMaxProtocol(tlsContext.get());
174 bool isInitTlsContext = TLSContext::InitTlsContext(tlsContext.get(), configuration);
176 bool isSetCipherList = TLSContext::SetCipherList(tlsContext.get(), configuration);
178 …bool isSetSignatureAlgorithms = TLSContext::SetSignatureAlgorithms(tlsContext.get(), configuration…
180 TLSContext::GetCiphers(tlsContext.get());
[all …]
/foundation/communication/netstack/frameworks/native/tls_socket/include/
Dtls_context.h37 static bool SetCipherList(TLSContext *tlsContext, const TLSConfiguration &configuration);
38 … static bool SetSignatureAlgorithms(TLSContext *tlsContext, const TLSConfiguration &configuration);
39 static void GetCiphers(TLSContext *tlsContext);
40 static void UseRemoteCipher(TLSContext *tlsContext);
41 static void SetMinAndMaxProtocol(TLSContext *tlsContext);
42 static bool SetCaAndVerify(TLSContext *tlsContext, const TLSConfiguration &configuration);
43 static bool SetLocalCertificate(TLSContext *tlsContext, const TLSConfiguration &configuration);
44 static bool SetKeyAndCheck(TLSContext *tlsContext, const TLSConfiguration &configuration);
45 static void SetVerify(TLSContext *tlsContext);
Dtls_context_server.h37 static bool SetCipherList(TLSContextServer *tlsContext, const TLSConfiguration &configuration);
38 …static bool SetSignatureAlgorithms(TLSContextServer *tlsContext, const TLSConfiguration &configura…
39 static void GetCiphers(TLSContextServer *tlsContext);
40 static void UseRemoteCipher(TLSContextServer *tlsContext);
41 static void SetMinAndMaxProtocol(TLSContextServer *tlsContext);
42 static bool SetCaAndVerify(TLSContextServer *tlsContext, const TLSConfiguration &configuration);
43 …static bool SetLocalCertificate(TLSContextServer *tlsContext, const TLSConfiguration &configuratio…
44 static bool SetKeyAndCheck(TLSContextServer *tlsContext, const TLSConfiguration &configuration);
45 static void SetVerify(TLSContextServer *tlsContext);