Lines Matching refs:slen
403 static void wolfssl_session_free(void *sdata, size_t slen) in wolfssl_session_free() argument
405 (void)slen; in wolfssl_session_free()
416 unsigned int slen; in wssl_cache_session() local
421 slen = wolfSSL_i2d_SSL_SESSION(session, NULL); in wssl_cache_session()
422 if(slen <= 0) { in wssl_cache_session()
423 CURL_TRC_CF(data, cf, "fail to assess session length: %u", slen); in wssl_cache_session()
427 sdata = calloc(1, slen); in wssl_cache_session()
429 failf(data, "unable to allocate session buffer of %u bytes", slen); in wssl_cache_session()
433 slen = wolfSSL_i2d_SSL_SESSION(session, &sdata); in wssl_cache_session()
434 if(slen <= 0) { in wssl_cache_session()
435 CURL_TRC_CF(data, cf, "fail to serialize session: %u", slen); in wssl_cache_session()
442 sdata, slen, wolfssl_session_free); in wssl_cache_session()
481 size_t slen = 0; in wssl_setup_session() local
485 if(!Curl_ssl_getsessionid(cf, data, peer, &psdata, &slen, NULL)) { in wssl_setup_session()
488 session = wolfSSL_d2i_SSL_SESSION(NULL, &sdata, (long)slen); in wssl_setup_session()