Lines Matching refs:crypto

93 BaseObjectPtr<crypto::SecureContext> InitializeSecureContext(
95 auto context = crypto::SecureContext::Create(env);
105 return BaseObjectPtr<crypto::SecureContext>();
135 return BaseObjectPtr<crypto::SecureContext>();
152 return BaseObjectPtr<crypto::SecureContext>();
156 return BaseObjectPtr<crypto::SecureContext>();
162 crypto::ClearErrorOnReturn clear_error_on_return;
163 crypto::BIOPointer bio = crypto::NodeBIO::NewFixed(ca.base, ca.len);
170 crypto::ClearErrorOnReturn clear_error_on_return;
177 return BaseObjectPtr<crypto::SecureContext>();
187 crypto::ClearErrorOnReturn clear_error_on_return;
188 crypto::BIOPointer bio = crypto::NodeBIO::NewFixed(cert.base, cert.len);
196 return BaseObjectPtr<crypto::SecureContext>();
203 crypto::ClearErrorOnReturn clear_error_on_return;
210 return BaseObjectPtr<crypto::SecureContext>();
217 crypto::ClearErrorOnReturn clear_error_on_return;
218 crypto::BIOPointer bio = crypto::NodeBIO::NewFixed(crl.base, crl.len);
225 return BaseObjectPtr<crypto::SecureContext>();
231 return BaseObjectPtr<crypto::SecureContext>(context);
234 void EnableTrace(Environment* env, crypto::BIOPointer* bio, SSL* ssl) {
254 crypto::MarkPopErrorOnReturn mark_pop_error_on_return;
281 if constexpr (std::is_same<T, std::shared_ptr<crypto::KeyObjectData>>::
283 if (crypto::KeyObjectHandle::HasInstance(env, item)) {
284 crypto::KeyObjectHandle* handle;
302 std::shared_ptr<crypto::KeyObjectData>>::value) {
303 if (crypto::KeyObjectHandle::HasInstance(env, value)) {
304 crypto::KeyObjectHandle* handle;
359 SSL_set_verify(ssl_.get(), SSL_VERIFY_NONE, crypto::VerifyCallback);
383 SSL_set_verify(ssl_.get(), verify_mode, crypto::VerifyCallback);
446 if (size > 0 && size < crypto::SecureContext::kMaxSessionSize) {
470 return crypto::VerifyPeerCertificate(ssl_);
481 crypto::SSLSessionPointer ticket = crypto::GetTLSSession(
488 if (crypto::SetTLSSession(ssl_, ticket)) {
500 return crypto::X509Certificate::GetCert(env, ssl_);
504 crypto::X509Certificate::GetPeerCertificateFlag flag =
506 ? crypto::X509Certificate::GetPeerCertificateFlag::SERVER
507 : crypto::X509Certificate::GetPeerCertificateFlag::NONE;
508 return crypto::X509Certificate::GetPeerCert(env, ssl_, flag);
512 return crypto::GetCurrentCipherName(env, ssl_);
516 return crypto::GetCurrentCipherVersion(env, ssl_);
520 return crypto::GetEphemeralKey(env, ssl_);
524 const char* servername = crypto::GetServerName(ssl_.get());
577 !SET_VECTOR(std::shared_ptr<crypto::KeyObjectData>, keys) ||