Skip to content

Commit

Permalink
QUIC: use SSL_IS_QUIC() in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
kaduk authored and xl32 committed Jun 6, 2024
1 parent 1ff9f3e commit 3f6209b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/man3/SSL_CTX_set_quic_method.pod
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ the client will send both extensions.
SSL_get_quic_transport_version() returns the value set by
SSL_set_quic_transport_version().

SSL_get_peer_quic_transport_version() returns the version the that was
SSL_get_peer_quic_transport_version() returns the version the that was
negotiated.

SSL_set_quic_early_data_enabled() enables QUIC early data if a nonzero
Expand Down
2 changes: 1 addition & 1 deletion ssl/statem/extensions_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1944,7 +1944,7 @@ int tls_parse_stoc_early_data(SSL *s, PACKET *pkt, unsigned int context,
* QUIC server must send 0xFFFFFFFF or it's a PROTOCOL_VIOLATION
* per RFC9001 S4.6.1
*/
if (s->quic_method != NULL && max_early_data != 0xFFFFFFFF) {
if (SSL_IS_QUIC(s) && max_early_data != 0xFFFFFFFF) {
SSLfatal(s, SSL_AD_ILLEGAL_PARAMETER, SSL_R_INVALID_MAX_EARLY_DATA);
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion ssl/statem/statem_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ int ossl_statem_client_construct_message(SSL *s, WPACKET *pkt,
case TLS_ST_CW_END_OF_EARLY_DATA:
#ifndef OPENSSL_NO_QUIC
/* QUIC does not send EndOfEarlyData, RFC9001 S8.3 */
if (s->quic_method != NULL) {
if (SSL_IS_QUIC(s)) {
*confunc = NULL;
*mt = SSL3_MT_DUMMY;
break;
Expand Down

0 comments on commit 3f6209b

Please sign in to comment.