Lines Matching refs:session
111 gnutls_transport_set_errno(backend->gtls.session, in gtls_push()
132 gnutls_transport_set_errno(backend->gtls.session, EINVAL); in gtls_pull()
143 gnutls_transport_set_errno(backend->gtls.session, in gtls_pull()
250 gnutls_session_t session; in handshake() local
254 session = backend->gtls.session; in handshake()
300 rc = gnutls_handshake(session); in handshake()
312 gnutls_record_get_direction(session) ? in handshake()
320 gnutls_alert_description_t alert = gnutls_alert_get(session); in handshake()
337 gnutls_alert_description_t alert = gnutls_alert_get(session); in handshake()
698 rc = gnutls_credentials_set(gtls->session, GNUTLS_CRD_CERTIFICATE, in Curl_gtls_client_trust_setup()
725 gnutls_session_t session, in Curl_gtls_update_session_id() argument
743 gnutls_session_get_data(session, NULL, &connect_idsize); in Curl_gtls_update_session_id()
752 gnutls_session_get_data(session, connect_sessionid, &connect_idsize); in Curl_gtls_update_session_id()
767 gnutls_session_t session) in cf_gtls_update_session_id() argument
770 return Curl_gtls_update_session_id(cf, data, session, &connssl->peer, in cf_gtls_update_session_id()
774 static int gtls_handshake_cb(gnutls_session_t session, unsigned int htype, in gtls_handshake_cb() argument
778 struct Curl_cfilter *cf = gnutls_session_get_ptr(session); in gtls_handshake_cb()
789 cf_gtls_update_session_id(cf, data, session); in gtls_handshake_cb()
877 rc = gnutls_init(>ls->session, init_flags); in gtls_client_init()
884 if(gnutls_server_name_set(gtls->session, GNUTLS_NAME_DNS, in gtls_client_init()
892 rc = gnutls_set_default_priority(gtls->session); in gtls_client_init()
929 rc = gnutls_priority_set_direct(gtls->session, prioritysrp, &err); in gtls_client_init()
939 rc = gnutls_priority_set_direct(gtls->session, prioritylist, &err); in gtls_client_init()
1004 rc = gnutls_credentials_set(gtls->session, GNUTLS_CRD_SRP, in gtls_client_init()
1014 rc = gnutls_credentials_set(gtls->session, GNUTLS_CRD_CERTIFICATE, in gtls_client_init()
1023 rc = gnutls_ocsp_status_request_enable_client(gtls->session, in gtls_client_init()
1034 static int keylog_callback(gnutls_session_t session, const char *label, in keylog_callback() argument
1040 gnutls_session_get_random(session, &crandom, &srandom); in keylog_callback()
1071 gnutls_session_set_ptr(gctx->session, ssl_user_data); in Curl_gtls_ctx_init()
1082 gnutls_session_set_keylog_function(gctx->session, keylog_callback); in Curl_gtls_ctx_init()
1097 rc = gnutls_session_set_data(gctx->session, ssl_sessionid, ssl_idsize); in Curl_gtls_ctx_init()
1109 (gnutls_protocol_get_version(gctx->session) == GNUTLS_TLS1_3) && in Curl_gtls_ctx_init()
1112 gnutls_record_get_max_early_data_size(gctx->session); in Curl_gtls_ctx_init()
1163 gnutls_alpn_set_protocols(gctx->session, in Curl_gtls_ctx_init()
1209 gnutls_handshake_set_hook_function(backend->gtls.session, in gtls_connect_step1()
1214 gnutls_transport_set_ptr(backend->gtls.session, cf); in gtls_connect_step1()
1215 gnutls_transport_set_push_function(backend->gtls.session, gtls_push); in gtls_connect_step1()
1216 gnutls_transport_set_pull_function(backend->gtls.session, gtls_pull); in gtls_connect_step1()
1281 gnutls_session_t session, in Curl_gtls_verifyserver() argument
1302 gnutls_protocol_t version = gnutls_protocol_get_version(session); in Curl_gtls_verifyserver()
1308 ptr = gnutls_cipher_suite_get_name(gnutls_kx_get(session), in Curl_gtls_verifyserver()
1309 gnutls_cipher_get(session), in Curl_gtls_verifyserver()
1310 gnutls_mac_get(session)); in Curl_gtls_verifyserver()
1322 chainp = gnutls_certificate_get_peers(session, &cert_list_size); in Curl_gtls_verifyserver()
1329 gnutls_cipher_get(session)) { in Curl_gtls_verifyserver()
1370 rc = gnutls_certificate_verify_peers2(session, &verify_status); in Curl_gtls_verifyserver()
1413 rc = gnutls_ocsp_status_request_get(session, &status_request); in Curl_gtls_verifyserver()
1724 gnutls_session_t session) in gtls_verifyserver() argument
1738 result = Curl_gtls_verifyserver(data, session, conn_config, ssl_config, in gtls_verifyserver()
1745 if(gnutls_protocol_get_version(session) < GNUTLS_TLS1_3) in gtls_verifyserver()
1746 result = cf_gtls_update_session_id(cf, data, session); in gtls_verifyserver()
1790 n = gnutls_record_send_early_data(backend->gtls.session, buf, blen); in gtls_send_earlydata()
1870 result = gtls_verifyserver(cf, data, backend->gtls.session); in gtls_connect_common()
1877 rc = gnutls_alpn_get_selected_protocol(backend->gtls.session, &proto); in gtls_connect_common()
1889 if(gnutls_session_get_flags(backend->gtls.session) & in gtls_connect_common()
1972 if(backend->gtls.session && in gtls_data_pending()
1973 0 != gnutls_record_check_pending(backend->gtls.session)) in gtls_data_pending()
2024 rc = gnutls_record_send(backend->gtls.session, buf, blen); in gtls_send()
2069 if(!backend->gtls.session || cf->shutdown || in gtls_shutdown()
2082 int ret = gnutls_bye(backend->gtls.session, GNUTLS_SHUT_RDWR); in gtls_shutdown()
2085 connssl->io_need = gnutls_record_get_direction(backend->gtls.session) ? in gtls_shutdown()
2103 nread = gnutls_record_recv(backend->gtls.session, buf, sizeof(buf)); in gtls_shutdown()
2115 connssl->io_need = gnutls_record_get_direction(backend->gtls.session) ? in gtls_shutdown()
2139 if(backend->gtls.session) { in gtls_close()
2140 gnutls_deinit(backend->gtls.session); in gtls_close()
2141 backend->gtls.session = NULL; in gtls_close()
2183 ret = gnutls_record_recv(backend->gtls.session, buf, buffersize); in gtls_recv()
2255 return backend->gtls.session; in gtls_get_internals()