Lines Matching refs:req
45 tls_handshake_req_init(struct handshake_req *req, in tls_handshake_req_init() argument
48 struct tls_handshake_req *treq = handshake_req_private(req); in tls_handshake_req_init()
95 static void tls_handshake_done(struct handshake_req *req, in tls_handshake_done() argument
98 struct tls_handshake_req *treq = handshake_req_private(req); in tls_handshake_done()
105 set_bit(HANDSHAKE_F_REQ_SESSION, &req->hr_flags); in tls_handshake_done()
196 static int tls_handshake_accept(struct handshake_req *req, in tls_handshake_accept() argument
199 struct tls_handshake_req *treq = handshake_req_private(req); in tls_handshake_accept()
288 struct handshake_req *req; in tls_client_hello_anon() local
290 req = handshake_req_alloc(&tls_handshake_proto, flags); in tls_client_hello_anon()
291 if (!req) in tls_client_hello_anon()
293 treq = tls_handshake_req_init(req, args); in tls_client_hello_anon()
297 return handshake_req_submit(args->ta_sock, req, flags); in tls_client_hello_anon()
314 struct handshake_req *req; in tls_client_hello_x509() local
316 req = handshake_req_alloc(&tls_handshake_proto, flags); in tls_client_hello_x509()
317 if (!req) in tls_client_hello_x509()
319 treq = tls_handshake_req_init(req, args); in tls_client_hello_x509()
325 return handshake_req_submit(args->ta_sock, req, flags); in tls_client_hello_x509()
343 struct handshake_req *req; in tls_client_hello_psk() local
350 req = handshake_req_alloc(&tls_handshake_proto, flags); in tls_client_hello_psk()
351 if (!req) in tls_client_hello_psk()
353 treq = tls_handshake_req_init(req, args); in tls_client_hello_psk()
360 return handshake_req_submit(args->ta_sock, req, flags); in tls_client_hello_psk()
377 struct handshake_req *req; in tls_server_hello_x509() local
379 req = handshake_req_alloc(&tls_handshake_proto, flags); in tls_server_hello_x509()
380 if (!req) in tls_server_hello_x509()
382 treq = tls_handshake_req_init(req, args); in tls_server_hello_x509()
388 return handshake_req_submit(args->ta_sock, req, flags); in tls_server_hello_x509()
405 struct handshake_req *req; in tls_server_hello_psk() local
407 req = handshake_req_alloc(&tls_handshake_proto, flags); in tls_server_hello_psk()
408 if (!req) in tls_server_hello_psk()
410 treq = tls_handshake_req_init(req, args); in tls_server_hello_psk()
416 return handshake_req_submit(args->ta_sock, req, flags); in tls_server_hello_psk()
444 struct handshake_req *req; in tls_handshake_close() local
446 req = handshake_req_hash_lookup(sock->sk); in tls_handshake_close()
447 if (!req) in tls_handshake_close()
449 if (!test_and_clear_bit(HANDSHAKE_F_REQ_SESSION, &req->hr_flags)) in tls_handshake_close()