• Home
  • Raw
  • Download

Lines Matching refs:sess

192                                size_t identity_len, SSL_SESSION **sess)  in psk_find_session_cb()  argument
201 *sess = NULL; in psk_find_session_cb()
207 *sess = psksess; in psk_find_session_cb()
236 *sess = tmpsess; in psk_find_session_cb()
3694 simple_ssl_session *sess = app_malloc(sizeof(*sess), "get session"); in add_session() local
3697 SSL_SESSION_get_id(session, &sess->idlen); in add_session()
3698 sess->derlen = i2d_SSL_SESSION(session, NULL); in add_session()
3699 if (sess->derlen < 0) { in add_session()
3701 OPENSSL_free(sess); in add_session()
3705 sess->id = OPENSSL_memdup(SSL_SESSION_get_id(session, NULL), sess->idlen); in add_session()
3706 sess->der = app_malloc(sess->derlen, "get session buffer"); in add_session()
3707 if (!sess->id) { in add_session()
3709 OPENSSL_free(sess->id); in add_session()
3710 OPENSSL_free(sess->der); in add_session()
3711 OPENSSL_free(sess); in add_session()
3714 p = sess->der; in add_session()
3717 if (i2d_SSL_SESSION(session, &p) != sess->derlen) { in add_session()
3719 OPENSSL_free(sess->id); in add_session()
3720 OPENSSL_free(sess->der); in add_session()
3721 OPENSSL_free(sess); in add_session()
3725 sess->next = first; in add_session()
3726 first = sess; in add_session()
3734 simple_ssl_session *sess; in get_session() local
3736 for (sess = first; sess; sess = sess->next) { in get_session()
3737 if (idlen == (int)sess->idlen && !memcmp(sess->id, id, idlen)) { in get_session()
3738 const unsigned char *p = sess->der; in get_session()
3740 return d2i_SSL_SESSION(NULL, &p, sess->derlen); in get_session()
3749 simple_ssl_session *sess, *prev = NULL; in del_session() local
3753 for (sess = first; sess; sess = sess->next) { in del_session()
3754 if (idlen == sess->idlen && !memcmp(sess->id, id, idlen)) { in del_session()
3756 prev->next = sess->next; in del_session()
3758 first = sess->next; in del_session()
3759 OPENSSL_free(sess->id); in del_session()
3760 OPENSSL_free(sess->der); in del_session()
3761 OPENSSL_free(sess); in del_session()
3764 prev = sess; in del_session()
3780 simple_ssl_session *sess, *tsess; in free_sessions() local
3781 for (sess = first; sess;) { in free_sessions()
3782 OPENSSL_free(sess->id); in free_sessions()
3783 OPENSSL_free(sess->der); in free_sessions()
3784 tsess = sess; in free_sessions()
3785 sess = sess->next; in free_sessions()