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
142 Curl_ssl_session_create(unsigned char *sdata, size_t sdata_len,
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 Dvtls_scache.c105 s->sdata_len = 0; in cf_ssl_scache_clear_session()
120 Curl_ssl_session_create(unsigned char *sdata, size_t sdata_len, in Curl_ssl_session_create() argument
127 if(!sdata || !sdata_len) { in Curl_ssl_session_create()
151 s->sdata_len = sdata_len; in Curl_ssl_session_create()
H A Dgtls.c728 size_t sdata_len = 0; in Curl_gtls_cache_session() local
740 gnutls_session_get_data(session, NULL, &sdata_len); in Curl_gtls_cache_session()
741 if(!sdata_len) /* gnutls does this for some version combinations */ in Curl_gtls_cache_session()
744 sdata = malloc(sdata_len); /* get a buffer for it */ in Curl_gtls_cache_session()
749 gnutls_session_get_data(session, sdata, &sdata_len); in Curl_gtls_cache_session()
752 sdata_len, alpn ? alpn : "-"); in Curl_gtls_cache_session()
753 result = Curl_ssl_session_create(sdata, sdata_len, in Curl_gtls_cache_session()
1113 if(scs && scs->sdata && scs->sdata_len) { in Curl_gtls_ctx_init()
1115 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 79 milliseconds