Lines Matching refs:sdata
403 static void wolfssl_session_free(void *sdata, size_t slen) in wolfssl_session_free() argument
406 free(sdata); in wolfssl_session_free()
415 unsigned char *sdata = NULL; in wssl_cache_session() local
427 sdata = calloc(1, slen); in wssl_cache_session()
428 if(!sdata) { in wssl_cache_session()
433 slen = wolfSSL_i2d_SSL_SESSION(session, &sdata); in wssl_cache_session()
442 sdata, slen, wolfssl_session_free); in wssl_cache_session()
448 sdata = NULL; in wssl_cache_session()
452 free(sdata); in wssl_cache_session()
480 const unsigned char *sdata = NULL; in wssl_setup_session() local
487 sdata = psdata; in wssl_setup_session()
488 session = wolfSSL_d2i_SSL_SESSION(NULL, &sdata, (long)slen); in wssl_setup_session()