Lines Matching refs:handle_
64 : handle_(0)
80 handle_ = ::SSL_CTX_new(::SSLv2_method());
83 handle_ = ::SSL_CTX_new(::SSLv2_client_method());
86 handle_ = ::SSL_CTX_new(::SSLv2_server_method());
93 handle_ = ::SSL_CTX_new(::TLS_method());
94 if (handle_)
96 SSL_CTX_set_min_proto_version(handle_, SSL3_VERSION);
97 SSL_CTX_set_max_proto_version(handle_, SSL3_VERSION);
101 handle_ = ::SSL_CTX_new(::TLS_client_method());
102 if (handle_)
104 SSL_CTX_set_min_proto_version(handle_, SSL3_VERSION);
105 SSL_CTX_set_max_proto_version(handle_, SSL3_VERSION);
109 handle_ = ::SSL_CTX_new(::TLS_server_method());
110 if (handle_)
112 SSL_CTX_set_min_proto_version(handle_, SSL3_VERSION);
113 SSL_CTX_set_max_proto_version(handle_, SSL3_VERSION);
125 handle_ = ::SSL_CTX_new(::SSLv3_method());
128 handle_ = ::SSL_CTX_new(::SSLv3_client_method());
131 handle_ = ::SSL_CTX_new(::SSLv3_server_method());
138 handle_ = ::SSL_CTX_new(::TLS_method());
139 if (handle_)
141 SSL_CTX_set_min_proto_version(handle_, TLS1_VERSION);
142 SSL_CTX_set_max_proto_version(handle_, TLS1_VERSION);
146 handle_ = ::SSL_CTX_new(::TLS_client_method());
147 if (handle_)
149 SSL_CTX_set_min_proto_version(handle_, TLS1_VERSION);
150 SSL_CTX_set_max_proto_version(handle_, TLS1_VERSION);
154 handle_ = ::SSL_CTX_new(::TLS_server_method());
155 if (handle_)
157 SSL_CTX_set_min_proto_version(handle_, TLS1_VERSION);
158 SSL_CTX_set_max_proto_version(handle_, TLS1_VERSION);
163 handle_ = ::SSL_CTX_new(::TLSv1_method());
166 handle_ = ::SSL_CTX_new(::TLSv1_client_method());
169 handle_ = ::SSL_CTX_new(::TLSv1_server_method());
183 handle_ = ::SSL_CTX_new(::TLS_method());
184 if (handle_)
186 SSL_CTX_set_min_proto_version(handle_, TLS1_1_VERSION);
187 SSL_CTX_set_max_proto_version(handle_, TLS1_1_VERSION);
191 handle_ = ::SSL_CTX_new(::TLS_client_method());
192 if (handle_)
194 SSL_CTX_set_min_proto_version(handle_, TLS1_1_VERSION);
195 SSL_CTX_set_max_proto_version(handle_, TLS1_1_VERSION);
199 handle_ = ::SSL_CTX_new(::TLS_server_method());
200 if (handle_)
202 SSL_CTX_set_min_proto_version(handle_, TLS1_1_VERSION);
203 SSL_CTX_set_max_proto_version(handle_, TLS1_1_VERSION);
208 handle_ = ::SSL_CTX_new(::TLSv1_1_method());
211 handle_ = ::SSL_CTX_new(::TLSv1_1_client_method());
214 handle_ = ::SSL_CTX_new(::TLSv1_1_server_method());
228 handle_ = ::SSL_CTX_new(::TLS_method());
229 if (handle_)
231 SSL_CTX_set_min_proto_version(handle_, TLS1_2_VERSION);
232 SSL_CTX_set_max_proto_version(handle_, TLS1_2_VERSION);
236 handle_ = ::SSL_CTX_new(::TLS_client_method());
237 if (handle_)
239 SSL_CTX_set_min_proto_version(handle_, TLS1_2_VERSION);
240 SSL_CTX_set_max_proto_version(handle_, TLS1_2_VERSION);
244 handle_ = ::SSL_CTX_new(::TLS_server_method());
245 if (handle_)
247 SSL_CTX_set_min_proto_version(handle_, TLS1_2_VERSION);
248 SSL_CTX_set_max_proto_version(handle_, TLS1_2_VERSION);
253 handle_ = ::SSL_CTX_new(::TLSv1_2_method());
256 handle_ = ::SSL_CTX_new(::TLSv1_2_client_method());
259 handle_ = ::SSL_CTX_new(::TLSv1_2_server_method());
274 handle_ = ::SSL_CTX_new(::TLS_method());
275 if (handle_)
277 SSL_CTX_set_min_proto_version(handle_, TLS1_3_VERSION);
278 SSL_CTX_set_max_proto_version(handle_, TLS1_3_VERSION);
282 handle_ = ::SSL_CTX_new(::TLS_client_method());
283 if (handle_)
285 SSL_CTX_set_min_proto_version(handle_, TLS1_3_VERSION);
286 SSL_CTX_set_max_proto_version(handle_, TLS1_3_VERSION);
290 handle_ = ::SSL_CTX_new(::TLS_server_method());
291 if (handle_)
293 SSL_CTX_set_min_proto_version(handle_, TLS1_3_VERSION);
294 SSL_CTX_set_max_proto_version(handle_, TLS1_3_VERSION);
310 handle_ = ::SSL_CTX_new(::SSLv23_method());
313 handle_ = ::SSL_CTX_new(::SSLv23_client_method());
316 handle_ = ::SSL_CTX_new(::SSLv23_server_method());
322 handle_ = ::SSL_CTX_new(::TLS_method());
323 if (handle_)
324 SSL_CTX_set_min_proto_version(handle_, TLS1_VERSION);
327 handle_ = ::SSL_CTX_new(::TLS_client_method());
328 if (handle_)
329 SSL_CTX_set_min_proto_version(handle_, TLS1_VERSION);
332 handle_ = ::SSL_CTX_new(::TLS_server_method());
333 if (handle_)
334 SSL_CTX_set_min_proto_version(handle_, TLS1_VERSION);
338 handle_ = ::SSL_CTX_new(::SSLv23_method());
339 if (handle_)
340 SSL_CTX_set_options(handle_, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
343 handle_ = ::SSL_CTX_new(::SSLv23_client_method());
344 if (handle_)
345 SSL_CTX_set_options(handle_, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
348 handle_ = ::SSL_CTX_new(::SSLv23_server_method());
349 if (handle_)
350 SSL_CTX_set_options(handle_, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
355 handle_ = ::SSL_CTX_new(0);
359 if (handle_ == 0)
371 : handle_(native_handle)
373 if (!handle_)
383 handle_ = other.handle_;
384 other.handle_ = 0;
390 handle_ = other.handle_;
391 other.handle_ = 0;
398 if (handle_)
403 void* cb_userdata = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
405 void* cb_userdata = handle_->default_passwd_callback_userdata;
416 ::SSL_CTX_set_default_passwd_cb_userdata(handle_, 0);
418 handle_->default_passwd_callback_userdata = 0;
422 if (SSL_CTX_get_app_data(handle_))
426 SSL_CTX_get_app_data(handle_));
428 SSL_CTX_set_app_data(handle_, 0);
431 ::SSL_CTX_free(handle_);
437 return handle_;
456 handle_->comp_methods = SSL_COMP_get_compression_methods();
462 ::SSL_CTX_clear_options(handle_, o);
488 handle_->comp_methods =
495 ::SSL_CTX_set_options(handle_, o);
511 ::SSL_CTX_set_verify(handle_, v, ::SSL_CTX_get_verify_callback(handle_));
527 ::SSL_CTX_set_verify_depth(handle_, depth);
545 if (::SSL_CTX_load_verify_locations(handle_, filename.c_str(), 0) != 1)
572 if (X509_STORE* store = ::SSL_CTX_get_cert_store(handle_))
617 if (::SSL_CTX_set_default_verify_paths(handle_) != 1)
641 if (::SSL_CTX_load_verify_locations(handle_, 0, path.c_str()) != 1)
669 if (::SSL_CTX_use_certificate_ASN1(handle_,
685 if (::SSL_CTX_use_certificate(handle_, cert.p) == 1)
735 if (::SSL_CTX_use_certificate_file(handle_, filename.c_str(), file_type) != 1)
765 pem_password_cb* callback = ::SSL_CTX_get_default_passwd_cb(handle_);
766 void* cb_userdata = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
768 pem_password_cb* callback = handle_->default_passwd_callback;
769 void* cb_userdata = handle_->default_passwd_callback_userdata;
782 int result = ::SSL_CTX_use_certificate(handle_, cert.p);
794 ::SSL_CTX_clear_chain_certs(handle_);
796 if (handle_->extra_certs)
798 ::sk_X509_pop_free(handle_->extra_certs, X509_free);
799 handle_->extra_certs = 0;
807 if (!::SSL_CTX_add_extra_chain_cert(handle_, cacert))
844 if (::SSL_CTX_use_certificate_chain_file(handle_, filename.c_str()) != 1)
873 pem_password_cb* callback = ::SSL_CTX_get_default_passwd_cb(handle_);
874 void* cb_userdata = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
876 pem_password_cb* callback = handle_->default_passwd_callback;
877 void* cb_userdata = handle_->default_passwd_callback_userdata;
903 if (::SSL_CTX_use_PrivateKey(handle_, evp_private_key.p) == 1)
942 pem_password_cb* callback = ::SSL_CTX_get_default_passwd_cb(handle_);
943 void* cb_userdata = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
945 pem_password_cb* callback = handle_->default_passwd_callback;
946 void* cb_userdata = handle_->default_passwd_callback_userdata;
972 if (::SSL_CTX_use_RSAPrivateKey(handle_, rsa_private_key.p) == 1)
1008 if (::SSL_CTX_use_PrivateKey_file(handle_, filename.c_str(), file_type) != 1)
1051 handle_, filename.c_str(), file_type) != 1)
1119 if (::SSL_CTX_set_tmp_dh(handle_, dh.p) == 1)
1135 if (SSL_CTX_get_app_data(handle_))
1138 SSL_CTX_get_app_data(handle_));
1141 SSL_CTX_set_app_data(handle_, callback);
1143 ::SSL_CTX_set_verify(handle_,
1144 ::SSL_CTX_get_verify_mode(handle_),
1183 void* old_callback = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
1184 ::SSL_CTX_set_default_passwd_cb_userdata(handle_, callback);
1186 void* old_callback = handle_->default_passwd_callback_userdata;
1187 handle_->default_passwd_callback_userdata = callback;
1194 SSL_CTX_set_default_passwd_cb(handle_, &context::password_callback_function);