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()
285 int tls_client_hello_anon(const struct tls_handshake_args *args, gfp_t flags) in tls_client_hello_anon() argument
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()
311 int tls_client_hello_x509(const struct tls_handshake_args *args, gfp_t flags) in tls_client_hello_x509() argument
319 treq = tls_handshake_req_init(req, args); in tls_client_hello_x509()
322 treq->th_certificate = args->ta_my_cert; in tls_client_hello_x509()
323 treq->th_privkey = args->ta_my_privkey; in tls_client_hello_x509()
325 return handshake_req_submit(args->ta_sock, req, flags); in tls_client_hello_x509()
340 int tls_client_hello_psk(const struct tls_handshake_args *args, gfp_t flags) in tls_client_hello_psk() argument
346 if (!args->ta_num_peerids || in tls_client_hello_psk()
347 args->ta_num_peerids > ARRAY_SIZE(treq->th_peerid)) in tls_client_hello_psk()
353 treq = tls_handshake_req_init(req, args); in tls_client_hello_psk()
356 treq->th_num_peerids = args->ta_num_peerids; in tls_client_hello_psk()
357 for (i = 0; i < args->ta_num_peerids; i++) in tls_client_hello_psk()
358 treq->th_peerid[i] = args->ta_my_peerids[i]; in tls_client_hello_psk()
360 return handshake_req_submit(args->ta_sock, req, flags); in tls_client_hello_psk()
374 int tls_server_hello_x509(const struct tls_handshake_args *args, gfp_t flags) in tls_server_hello_x509() argument
382 treq = tls_handshake_req_init(req, args); in tls_server_hello_x509()
385 treq->th_certificate = args->ta_my_cert; in tls_server_hello_x509()
386 treq->th_privkey = args->ta_my_privkey; in tls_server_hello_x509()
388 return handshake_req_submit(args->ta_sock, req, flags); in tls_server_hello_x509()
402 int tls_server_hello_psk(const struct tls_handshake_args *args, gfp_t flags) in tls_server_hello_psk() argument
410 treq = tls_handshake_req_init(req, args); in tls_server_hello_psk()
414 treq->th_peerid[0] = args->ta_my_peerids[0]; in tls_server_hello_psk()
416 return handshake_req_submit(args->ta_sock, req, flags); in tls_server_hello_psk()