Skip to content

Commit d891e9c

Browse files
authored
Merge pull request #132 from lxin/ticket-fix
tlshd: use gnutls_handshake_write() for Session Ticket processing in quic
2 parents 1fee064 + f03f10b commit d891e9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tlshd/quic.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,10 @@ static void tlshd_quic_recv_session_ticket(struct tlshd_quic_conn *conn)
697697
return;
698698

699699
/* process new session ticket msg and get the generated session data */
700-
if (quic_handshake_crypto_data(conn, QUIC_CRYPTO_APP, conn->ticket, len)) {
700+
ret = gnutls_handshake_write(session, GNUTLS_ENCRYPTION_LEVEL_APPLICATION,
701+
conn->ticket, len);
702+
if (ret && gnutls_error_is_fatal(ret)) {
703+
tlshd_log_gnutls_error(ret);
701704
conn->errcode = EACCES;
702705
return;
703706
}

0 commit comments

Comments
 (0)