Lines Matching refs:server_context
1969 def server_params_test(client_context, server_context, indata=b"FOO\n", argument
1976 server = ThreadedEchoServer(context=server_context,
2039 server_context = ssl.SSLContext(server_protocol)
2040 server_context.options |= server_options
2048 for ctx in (client_context, server_context):
2053 stats = server_params_test(client_context, server_context,
2132 server_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
2133 server_context.load_cert_chain(SIGNED_CERTFILE)
2142 server = ThreadedEchoServer(context=server_context, chatty=True)
2152 server = ThreadedEchoServer(context=server_context, chatty=True)
2162 server = ThreadedEchoServer(context=server_context, chatty=True)
2173 server_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
2174 server_context.load_cert_chain(SIGNED_CERTFILE)
2182 server = ThreadedEchoServer(context=server_context, chatty=True)
2191 server = ThreadedEchoServer(context=server_context, chatty=True)
2200 server = ThreadedEchoServer(context=server_context, chatty=True)
2945 server_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
2946 server_context.load_cert_chain(CERTFILE)
2947 server_context.set_alpn_protocols(['foo', 'bar'])
2948 stats = server_params_test(client_context, server_context,
2962 server_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
2963 server_context.load_cert_chain(CERTFILE)
2964 server_context.set_alpn_protocols(server_protocols)
2971 server_context,
3012 server_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
3013 server_context.load_cert_chain(CERTFILE)
3014 server_context.set_npn_protocols(server_protocols)
3018 stats = server_params_test(client_context, server_context,
3032 server_context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
3033 server_context.load_cert_chain(SIGNED_CERTFILE)
3039 return server_context, other_context, client_context
3048 server_context, other_context, client_context = self.sni_contexts()
3054 server_context.set_servername_callback(servername_cb)
3056 stats = server_params_test(client_context, server_context,
3061 self.assertEqual(calls, [("supermessage", server_context)])
3067 stats = server_params_test(client_context, server_context,
3070 self.assertEqual(calls, [(None, server_context)])
3075 server_context.set_servername_callback(None)
3077 stats = server_params_test(client_context, server_context,
3087 server_context, other_context, client_context = self.sni_contexts()
3091 server_context.set_servername_callback(cb_returning_alert)
3094 stats = server_params_test(client_context, server_context,
3102 server_context, other_context, client_context = self.sni_contexts()
3106 server_context.set_servername_callback(cb_raising)
3110 stats = server_params_test(client_context, server_context,
3120 server_context, other_context, client_context = self.sni_contexts()
3124 server_context.set_servername_callback(cb_wrong_return_type)
3128 stats = server_params_test(client_context, server_context,