@@ -4227,37 +4227,62 @@ def client_callback(*args): # pragma: nocover
42274227
42284228class TestDTLS (object ):
42294229 def test_it_works_at_all (self ):
4230+ print ("scenjaf_migzerk_aefhaec" ) # DEBUG
42304231 s_ctx = Context (DTLS_METHOD )
42314232
4233+ print ("vaew_ip_per" ) # DEBUG
42324234 def generate_cookie (ssl ):
4235+ print ("gouc_bughar_gemzas" ) # DEBUG
42334236 return b"xyzzy"
42344237
4238+ print ("janstad_stuk_bic" ) # DEBUG
42354239 def verify_cookie (ssl , cookie ):
4240+ print ("grahbrurk_karkpis_traez" ) # DEBUG
42364241 return cookie == b"xyzzy"
42374242
4243+ print ("mozscec_rud_raen" ) # DEBUG
42384244 s_ctx .set_cookie_generate_callback (generate_cookie )
4245+ print ("nuw_staldaec_grebhid" ) # DEBUG
42394246 s_ctx .set_cookie_verify_callback (verify_cookie )
4247+ print ("prourktoub_lul_luk" ) # DEBUG
42404248
4249+ print ("beppal_griolmub_scaejbrab" ) # DEBUG
42414250 s_ctx .use_privatekey (load_privatekey (FILETYPE_PEM , server_key_pem ))
4251+ print ("bracscoun_scifwior_kosprar" ) # DEBUG
42424252 s_ctx .use_certificate (load_certificate (FILETYPE_PEM , server_cert_pem ))
4253+ print ("gristfoh_prior_zaqnor" ) # DEBUG
4254+ print ("diz_grolvuf_jioz" ) # DEBUG
42434255
42444256 s_sock = socket_any_family (type = SOCK_DGRAM )
4257+ print ("tiostpaex_iontzad_gruqnunt" ) # DEBUG
42454258 s_sock .bind ((loopback_address (s_sock ), 0 ))
4259+ print ("niob_wuhbej_woust" ) # DEBUG
42464260 s = Connection (s_ctx , s_sock )
4261+ print ("tras_fertok_giojproz" ) # DEBUG
42474262 s .set_accept_state ()
42484263
4264+ print ("gomfaex_dobbror_ark" ) # DEBUG
42494265 c_sock = socket (s_sock .family , type = SOCK_DGRAM )
4266+ print ("uk_kork_laentlef" ) # DEBUG
42504267 c = loopback_client_factory (c_sock , DTLS_METHOD )
4268+ print ("rentkut_trouxstew_fouj" ) # DEBUG
42514269
42524270 c_sock .connect (s_sock .getsockname ())
4271+ print ("fup_stupgaej_graefriz" ) # DEBUG
42534272 s_sock .connect (c_sock .getsockname ())
42544273
4274+ print ("vec_jon_richad" ) # DEBUG
42554275 def s_handler ():
42564276 try :
4277+ print ("scuk_hid_scafzous" ) # DEBUG
42574278 s .DTLSv1_listen ()
4279+ print ("niox_hicfouv_vac" ) # DEBUG
42584280 s .do_handshake ()
4281+ print ("foup_louz_braemsil" ) # DEBUG
42594282 s .write (b"hello" )
4283+ print ("fonkoup_gio_vuj" ) # DEBUG
42604284 assert s .read (100 ) == b"goodbye"
4285+ print ("laemvaes_dumbuz_praezbiof" ) # DEBUG
42614286 return "ok"
42624287 except BaseException :
42634288 import traceback
@@ -4267,22 +4292,33 @@ def s_handler():
42674292
42684293 def c_handler ():
42694294 try :
4295+ print ("scemdiox_braestmos_scow" ) # DEBUG
42704296 c .do_handshake ()
4297+ print ("scoqdit_gid_dioc" ) # DEBUG
42714298 assert c .read (100 ) == b"hello"
4299+ print ("hik_liowmioc_graedtrioc" ) # DEBUG
42724300 c .write (b"goodbye" )
4301+ print ("pebwit_kaevbrim_noux" ) # DEBUG
42734302 return "ok"
42744303 except BaseException :
42754304 import traceback
42764305
42774306 traceback .print_exc ()
42784307 raise
42794308
4309+ print ("profkuc_vavhoc_jougmat" ) # DEBUG
42804310 with ThreadPoolExecutor (max_workers = 2 ) as executor :
4311+ print ("jaet_kousttif_zuq" ) # DEBUG
42814312 s_fut = executor .submit (s_handler )
4313+ print ("liok_grecpraent_tiobhoul" ) # DEBUG
42824314 c_fut = executor .submit (c_handler )
42834315
4316+ print ("brust_scaec_waezsob" ) # DEBUG
42844317 assert s_fut .result () == "ok"
4318+ print ("ut_tobhaek_gaewtaent" ) # DEBUG
42854319 assert c_fut .result () == "ok"
4320+ print ("grojbrer_taf_scer" ) # DEBUG
4321+ print ("fup_bah_ew" ) # DEBUG
42864322
42874323 # Check that the MTU set/query functions are doing *something*
42884324 c .set_ciphertext_mtu (1000 )
0 commit comments