Lines Matching refs:_context
647 self._context = context
692 self._context, cafile, capath
731 self._context, self._passphrase_callback
755 set_result = _lib.SSL_CTX_set_default_verify_paths(self._context)
826 self._context, certfile
848 self._context, certfile, filetype
863 use_result = _lib.SSL_CTX_use_certificate(self._context, cert._x509)
878 add_result = _lib.SSL_CTX_add_extra_chain_cert(self._context, copy)
909 self._context, keyfile, filetype
924 use_result = _lib.SSL_CTX_use_PrivateKey(self._context, pkey._pkey)
935 if not _lib.SSL_CTX_check_private_key(self._context):
951 _lib.SSL_CTX_set_client_CA_list(self._context, ca_list)
966 _lib.SSL_CTX_set_session_id_context(self._context, buf, len(buf))
985 return _lib.SSL_CTX_set_session_cache_mode(self._context, mode)
995 return _lib.SSL_CTX_get_session_cache_mode(self._context)
1023 _lib.SSL_CTX_set_verify(self._context, mode, _ffi.NULL)
1030 _lib.SSL_CTX_set_verify(self._context, mode, self._verify_callback)
1043 _lib.SSL_CTX_set_verify_depth(self._context, depth)
1052 return _lib.SSL_CTX_get_verify_mode(self._context)
1061 return _lib.SSL_CTX_get_verify_depth(self._context)
1081 res = _lib.SSL_CTX_set_tmp_dh(self._context, dh)
1094 _lib.SSL_CTX_set_tmp_ecdh(self._context, curve._to_EC_KEY())
1112 _lib.SSL_CTX_set_cipher_list(self._context, cipher_list) == 1
1168 _lib.SSL_CTX_set_client_CA_list(self._context, name_stack)
1187 self._context, certificate_authority._x509
1203 return _lib.SSL_CTX_set_timeout(self._context, timeout)
1212 return _lib.SSL_CTX_get_timeout(self._context)
1234 _lib.SSL_CTX_set_info_callback(self._context, self._info_callback)
1259 _lib.SSL_CTX_set_keylog_callback(self._context, self._keylog_callback)
1286 store = _lib.SSL_CTX_get_cert_store(self._context)
1306 return _lib.SSL_CTX_set_options(self._context, options)
1319 return _lib.SSL_CTX_set_mode(self._context, mode)
1341 self._context, self._tlsext_servername_callback
1356 _lib.SSL_CTX_set_tlsext_use_srtp(self._context, profiles) == 0
1379 _lib.SSL_CTX_set_alpn_protos(self._context, input_str, len(protostr))
1399 self._context, self._alpn_select_callback, _ffi.NULL
1416 self._context, self._ocsp_callback
1419 rc = _lib.SSL_CTX_set_tlsext_status_arg(self._context, self._ocsp_data)
1475 ssl = _lib.SSL_new(context._context)
1482 self._context = context
1532 if self._context._verify_helper is not None:
1533 self._context._verify_helper.raise_if_problem()
1534 if self._context._alpn_select_helper is not None:
1535 self._context._alpn_select_helper.raise_if_problem()
1536 if self._context._ocsp_helper is not None:
1537 self._context._ocsp_helper.raise_if_problem()
1573 return self._context
1585 _lib.SSL_set_SSL_CTX(self._ssl, context._context)
1586 self._context = context
1886 conn = Connection(self._context, client)