Lines Matching refs:client_context
1969 def server_params_test(client_context, server_context, indata=b"FOO\n", argument
1980 with closing(client_context.wrap_socket(socket.socket(),
2037 client_context = ssl.SSLContext(client_protocol)
2038 client_context.options |= client_options
2045 if client_context.protocol == ssl.PROTOCOL_SSLv23:
2046 client_context.set_ciphers("ALL")
2048 for ctx in (client_context, server_context):
2053 stats = server_params_test(client_context, server_context,
2943 client_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
2944 client_context.load_verify_locations(CERTFILE)
2948 stats = server_params_test(client_context, server_context,
2965 client_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
2966 client_context.load_cert_chain(CERTFILE)
2967 client_context.set_alpn_protocols(client_protocols)
2970 stats = server_params_test(client_context,
3015 client_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
3016 client_context.load_cert_chain(CERTFILE)
3017 client_context.set_npn_protocols(client_protocols)
3018 stats = server_params_test(client_context, server_context,
3036 client_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
3037 client_context.verify_mode = ssl.CERT_REQUIRED
3038 client_context.load_verify_locations(SIGNING_CA)
3039 return server_context, other_context, client_context
3048 server_context, other_context, client_context = self.sni_contexts()
3056 stats = server_params_test(client_context, server_context,
3067 stats = server_params_test(client_context, server_context,
3077 stats = server_params_test(client_context, server_context,
3087 server_context, other_context, client_context = self.sni_contexts()
3094 stats = server_params_test(client_context, server_context,
3102 server_context, other_context, client_context = self.sni_contexts()
3110 stats = server_params_test(client_context, server_context,
3120 server_context, other_context, client_context = self.sni_contexts()
3128 stats = server_params_test(client_context, server_context,