Lines Matching refs:args

46 		       const struct tls_handshake_args *args)  in tls_handshake_req_init()  argument
50 treq->th_timeout_ms = args->ta_timeout_ms; in tls_handshake_req_init()
51 treq->th_consumer_done = args->ta_done; in tls_handshake_req_init()
52 treq->th_consumer_data = args->ta_data; in tls_handshake_req_init()
53 treq->th_peername = args->ta_peername; in tls_handshake_req_init()
54 treq->th_keyring = args->ta_keyring; in tls_handshake_req_init()
279 int tls_client_hello_anon(const struct tls_handshake_args *args, gfp_t flags) in tls_client_hello_anon() argument
287 treq = tls_handshake_req_init(req, args); in tls_client_hello_anon()
291 return handshake_req_submit(args->ta_sock, req, flags); in tls_client_hello_anon()
305 int tls_client_hello_x509(const struct tls_handshake_args *args, gfp_t flags) in tls_client_hello_x509() argument
313 treq = tls_handshake_req_init(req, args); in tls_client_hello_x509()
316 treq->th_certificate = args->ta_my_cert; in tls_client_hello_x509()
317 treq->th_privkey = args->ta_my_privkey; in tls_client_hello_x509()
319 return handshake_req_submit(args->ta_sock, req, flags); in tls_client_hello_x509()
334 int tls_client_hello_psk(const struct tls_handshake_args *args, gfp_t flags) in tls_client_hello_psk() argument
340 if (!args->ta_num_peerids || in tls_client_hello_psk()
341 args->ta_num_peerids > ARRAY_SIZE(treq->th_peerid)) in tls_client_hello_psk()
347 treq = tls_handshake_req_init(req, args); in tls_client_hello_psk()
350 treq->th_num_peerids = args->ta_num_peerids; in tls_client_hello_psk()
351 for (i = 0; i < args->ta_num_peerids; i++) in tls_client_hello_psk()
352 treq->th_peerid[i] = args->ta_my_peerids[i]; in tls_client_hello_psk()
354 return handshake_req_submit(args->ta_sock, req, flags); in tls_client_hello_psk()
368 int tls_server_hello_x509(const struct tls_handshake_args *args, gfp_t flags) in tls_server_hello_x509() argument
376 treq = tls_handshake_req_init(req, args); in tls_server_hello_x509()
379 treq->th_certificate = args->ta_my_cert; in tls_server_hello_x509()
380 treq->th_privkey = args->ta_my_privkey; in tls_server_hello_x509()
382 return handshake_req_submit(args->ta_sock, req, flags); in tls_server_hello_x509()
396 int tls_server_hello_psk(const struct tls_handshake_args *args, gfp_t flags) in tls_server_hello_psk() argument
404 treq = tls_handshake_req_init(req, args); in tls_server_hello_psk()
408 treq->th_peerid[0] = args->ta_my_peerids[0]; in tls_server_hello_psk()
410 return handshake_req_submit(args->ta_sock, req, flags); in tls_server_hello_psk()