mirror of
https://github.com/openssl/openssl.git
synced 2025-02-23 14:42:15 +08:00
QUIC: Forbid NPN
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20061)
This commit is contained in:
parent
09d56d20a2
commit
68dbff4c04
@ -111,6 +111,9 @@ the client can request any protocol it chooses. The value returned from
|
||||
this function need not be a member of the list of supported protocols
|
||||
provided by the callback.
|
||||
|
||||
NPN functionality cannot be used with QUIC SSL objects. Use of ALPN is mandatory
|
||||
when using QUIC SSL objects.
|
||||
|
||||
=head1 NOTES
|
||||
|
||||
The protocol-lists must be in wire-format, which is defined as a vector of
|
||||
|
@ -3548,6 +3548,10 @@ void SSL_CTX_set_npn_advertised_cb(SSL_CTX *ctx,
|
||||
SSL_CTX_npn_advertised_cb_func cb,
|
||||
void *arg)
|
||||
{
|
||||
if (IS_QUIC_CTX(ctx))
|
||||
/* NPN not allowed for QUIC */
|
||||
return;
|
||||
|
||||
ctx->ext.npn_advertised_cb = cb;
|
||||
ctx->ext.npn_advertised_cb_arg = arg;
|
||||
}
|
||||
@ -3566,6 +3570,10 @@ void SSL_CTX_set_npn_select_cb(SSL_CTX *ctx,
|
||||
SSL_CTX_npn_select_cb_func cb,
|
||||
void *arg)
|
||||
{
|
||||
if (IS_QUIC_CTX(ctx))
|
||||
/* NPN not allowed for QUIC */
|
||||
return;
|
||||
|
||||
ctx->ext.npn_select_cb = cb;
|
||||
ctx->ext.npn_select_cb_arg = arg;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user