Skip to content

Commit

Permalink
BUILD: quic: fix build error when using the compatibility layer
Browse files Browse the repository at this point in the history
Commit f783dd9 ("MINOR: quic: Enable early data at SSL session level
(aws-lc)") introduced a build error when using the openssl compat layer
because it references unknown function SSL_set_quic_early_data_context()
in qc_set_quic_early_data_context() that is not used in this case.

No backport is needed.
  • Loading branch information
wtarreau committed Jan 24, 2024
1 parent e41638a commit 59e9b6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/quic_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,8 @@ static int qc_ssl_sess_init(struct quic_conn *qc, SSL_CTX *ssl_ctx, SSL **ssl)
return ret;
}

#ifndef USE_QUIC_OPENSSL_COMPAT

/* Enable early data for <ssl> QUIC TLS session.
* Return 1 if succeeded, 0 if not.
*/
Expand Down Expand Up @@ -768,6 +770,7 @@ static int qc_set_quic_early_data_enabled(struct quic_conn *qc, SSL *ssl)

return 1;
}
#endif // USE_QUIC_OPENSSL_COMPAT

/* Allocate the ssl_sock_ctx from connection <qc>. This creates the tasklet
* used to process <qc> received packets. The allocated context is stored in
Expand Down

0 comments on commit 59e9b6c

Please sign in to comment.