Home
last modified time | relevance | path

Searched refs:sdata_len (Results 1 – 7 of 7) sorted by relevance

/curl/lib/vtls/
H A Dvtls_scache.h120 size_t sdata_len; /* number of bytes in sdata */ member
145 Curl_ssl_session_create(unsigned char *sdata, size_t sdata_len,
154 Curl_ssl_session_create2(unsigned char *sdata, size_t sdata_len,
H A Dvtls_scache.c105 s->sdata_len = 0; in cf_ssl_scache_clear_session()
125 Curl_ssl_session_create(unsigned char *sdata, size_t sdata_len, in Curl_ssl_session_create() argument
131 return Curl_ssl_session_create2(sdata, sdata_len, ietf_tls_id, alpn, in Curl_ssl_session_create()
137 Curl_ssl_session_create2(unsigned char *sdata, size_t sdata_len, in Curl_ssl_session_create2() argument
146 if(!sdata || !sdata_len) { in Curl_ssl_session_create2()
172 s->sdata_len = sdata_len; in Curl_ssl_session_create2()
H A Dwolfssl.c409 unsigned int sdata_len; in Curl_wssl_cache_session() local
414 sdata_len = wolfSSL_i2d_SSL_SESSION(session, NULL); in Curl_wssl_cache_session()
415 if(sdata_len <= 0) { in Curl_wssl_cache_session()
416 CURL_TRC_CF(data, cf, "fail to assess session length: %u", sdata_len); in Curl_wssl_cache_session()
420 sdata = calloc(1, sdata_len); in Curl_wssl_cache_session()
426 sdata_len = wolfSSL_i2d_SSL_SESSION(session, &sdata); in Curl_wssl_cache_session()
427 if(sdata_len <= 0) { in Curl_wssl_cache_session()
428 CURL_TRC_CF(data, cf, "fail to serialize session: %u", sdata_len); in Curl_wssl_cache_session()
433 result = Curl_ssl_session_create(sdata, sdata_len, in Curl_wssl_cache_session()
477 if(!result && sc_session && sc_session->sdata && sc_session->sdata_len) { in Curl_wssl_setup_session()
[all …]
H A Dgtls.c731 size_t sdata_len = 0; in Curl_gtls_cache_session() local
744 gnutls_session_get_data(session, NULL, &sdata_len); in Curl_gtls_cache_session()
745 if(!sdata_len) /* gnutls does this for some version combinations */ in Curl_gtls_cache_session()
748 sdata = malloc(sdata_len); /* get a buffer for it */ in Curl_gtls_cache_session()
753 gnutls_session_get_data(session, sdata, &sdata_len); in Curl_gtls_cache_session()
756 sdata_len, alpn ? alpn : "-"); in Curl_gtls_cache_session()
766 result = Curl_ssl_session_create2(sdata, sdata_len, in Curl_gtls_cache_session()
1154 if(scs && scs->sdata && scs->sdata_len) { in Curl_gtls_ctx_init()
1162 rc = gnutls_session_set_data(gctx->session, scs->sdata, scs->sdata_len); in Curl_gtls_ctx_init()
H A Dmbedtls.c884 if(!result && sc_session && sc_session->sdata && sc_session->sdata_len) {
889 sc_session->sdata_len);
H A Dbearssl.c618 if(!ret && sc_session && sc_session->sdata && sc_session->sdata_len) { in bearssl_connect_step1()
H A Dopenssl.c3966 if(!result && sc_session && sc_session->sdata && sc_session->sdata_len) { in Curl_ossl_ctx_init()
3968 size_t der_sessionid_size = sc_session->sdata_len; in Curl_ossl_ctx_init()

Completed in 43 milliseconds