Lines Matching refs:sdata_len
409 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()
422 failf(data, "unable to allocate session buffer of %u bytes", 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()
482 (long)sc_session->sdata_len); in Curl_wssl_setup_session()