Lines Matching refs:sess

997                                                  SSL_SESSION **sess)  in tls_get_stateful_ticket()  argument
1020 *sess = tmpsess; in tls_get_stateful_ticket()
1030 SSL_SESSION *sess = NULL; in tls_parse_ctos_psk() local
1064 &sess)) { in tls_parse_ctos_psk()
1070 if (sess == NULL in tls_parse_ctos_psk()
1102 sess = SSL_SESSION_new(); in tls_parse_ctos_psk()
1103 if (sess == NULL in tls_parse_ctos_psk()
1104 || !SSL_SESSION_set1_master_key(sess, pskdata, in tls_parse_ctos_psk()
1106 || !SSL_SESSION_set_cipher(sess, cipher) in tls_parse_ctos_psk()
1107 || !SSL_SESSION_set_protocol_version(sess, in tls_parse_ctos_psk()
1118 if (sess != NULL) { in tls_parse_ctos_psk()
1120 SSL_SESSION *sesstmp = ssl_session_dup(sess, 0); in tls_parse_ctos_psk()
1126 SSL_SESSION_free(sess); in tls_parse_ctos_psk()
1127 sess = sesstmp; in tls_parse_ctos_psk()
1133 memcpy(sess->sid_ctx, s->sid_ctx, s->sid_ctx_length); in tls_parse_ctos_psk()
1134 sess->sid_ctx_length = s->sid_ctx_length; in tls_parse_ctos_psk()
1151 ret = tls_get_stateful_ticket(s, &identity, &sess); in tls_parse_ctos_psk()
1155 &sess); in tls_parse_ctos_psk()
1173 && !SSL_CTX_remove_session(s->session_ctx, sess)) { in tls_parse_ctos_psk()
1174 SSL_SESSION_free(sess); in tls_parse_ctos_psk()
1175 sess = NULL; in tls_parse_ctos_psk()
1180 ossl_ms2time(sess->ext.tick_age_add)); in tls_parse_ctos_psk()
1181 t = ossl_time_subtract(ossl_time_now(), sess->time); in tls_parse_ctos_psk()
1195 && ossl_time_compare(sess->timeout, t) >= 0 in tls_parse_ctos_psk()
1207 md = ssl_md(sctx, sess->cipher->algorithm2); in tls_parse_ctos_psk()
1216 SSL_SESSION_free(sess); in tls_parse_ctos_psk()
1217 sess = NULL; in tls_parse_ctos_psk()
1225 if (sess == NULL) in tls_parse_ctos_psk()
1250 binderoffset, PACKET_data(&binder), NULL, sess, 0, in tls_parse_ctos_psk()
1259 s->session = sess; in tls_parse_ctos_psk()
1262 SSL_SESSION_free(sess); in tls_parse_ctos_psk()