Lines Matching refs:sess
957 SSL_SESSION **sess) in tls_get_stateful_ticket() argument
980 *sess = tmpsess; in tls_get_stateful_ticket()
989 SSL_SESSION *sess = NULL; in tls_parse_ctos_psk() local
1021 &sess)) { in tls_parse_ctos_psk()
1027 if(sess == NULL in tls_parse_ctos_psk()
1059 sess = SSL_SESSION_new(); in tls_parse_ctos_psk()
1060 if (sess == NULL in tls_parse_ctos_psk()
1061 || !SSL_SESSION_set1_master_key(sess, pskdata, in tls_parse_ctos_psk()
1063 || !SSL_SESSION_set_cipher(sess, cipher) in tls_parse_ctos_psk()
1064 || !SSL_SESSION_set_protocol_version(sess, in tls_parse_ctos_psk()
1075 if (sess != NULL) { in tls_parse_ctos_psk()
1077 SSL_SESSION *sesstmp = ssl_session_dup(sess, 0); in tls_parse_ctos_psk()
1083 SSL_SESSION_free(sess); in tls_parse_ctos_psk()
1084 sess = sesstmp; in tls_parse_ctos_psk()
1090 memcpy(sess->sid_ctx, s->sid_ctx, s->sid_ctx_length); in tls_parse_ctos_psk()
1091 sess->sid_ctx_length = s->sid_ctx_length; in tls_parse_ctos_psk()
1108 ret = tls_get_stateful_ticket(s, &identity, &sess); in tls_parse_ctos_psk()
1112 &sess); in tls_parse_ctos_psk()
1130 && !SSL_CTX_remove_session(s->session_ctx, sess)) { in tls_parse_ctos_psk()
1131 SSL_SESSION_free(sess); in tls_parse_ctos_psk()
1132 sess = NULL; in tls_parse_ctos_psk()
1137 agesec = (uint32_t)(time(NULL) - sess->time); in tls_parse_ctos_psk()
1139 ticket_age -= sess->ext.tick_age_add; in tls_parse_ctos_psk()
1150 && sess->timeout >= (long)agesec in tls_parse_ctos_psk()
1162 md = ssl_md(s->ctx, sess->cipher->algorithm2); in tls_parse_ctos_psk()
1171 SSL_SESSION_free(sess); in tls_parse_ctos_psk()
1172 sess = NULL; in tls_parse_ctos_psk()
1180 if (sess == NULL) in tls_parse_ctos_psk()
1203 binderoffset, PACKET_data(&binder), NULL, sess, 0, in tls_parse_ctos_psk()
1212 s->session = sess; in tls_parse_ctos_psk()
1215 SSL_SESSION_free(sess); in tls_parse_ctos_psk()