mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
SSL_conf_cmd: add support for IgnoreUnexpectedEOF
CLA: trivial Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20089)
This commit is contained in:
parent
d79bb5316e
commit
51cf034433
@ -569,6 +569,11 @@ B<SSL_OP_ENABLE_KTLS_TX_ZEROCOPY_SENDFILE>. This option only applies to Linux.
|
|||||||
KTLS sendfile on FreeBSD doesn't offer an option to disable zerocopy and
|
KTLS sendfile on FreeBSD doesn't offer an option to disable zerocopy and
|
||||||
always runs in this mode.
|
always runs in this mode.
|
||||||
|
|
||||||
|
B<IgnoreUnexpectedEOF>: Equivalent to B<SSL_OP_IGNORE_UNEXPECTED_EOF>.
|
||||||
|
You should only enable this option if the protocol running over TLS can detect
|
||||||
|
a truncation attack itself, and that the application is checking for that
|
||||||
|
truncation attack.
|
||||||
|
|
||||||
=item B<VerifyMode>
|
=item B<VerifyMode>
|
||||||
|
|
||||||
The B<value> argument is a comma separated list of flags to set.
|
The B<value> argument is a comma separated list of flags to set.
|
||||||
|
@ -401,6 +401,7 @@ static int cmd_Options(SSL_CONF_CTX *cctx, const char *value)
|
|||||||
SSL_FLAG_TBL_INV("TxCertificateCompression", SSL_OP_NO_TX_CERTIFICATE_COMPRESSION),
|
SSL_FLAG_TBL_INV("TxCertificateCompression", SSL_OP_NO_TX_CERTIFICATE_COMPRESSION),
|
||||||
SSL_FLAG_TBL_INV("RxCertificateCompression", SSL_OP_NO_RX_CERTIFICATE_COMPRESSION),
|
SSL_FLAG_TBL_INV("RxCertificateCompression", SSL_OP_NO_RX_CERTIFICATE_COMPRESSION),
|
||||||
SSL_FLAG_TBL("KTLSTxZerocopySendfile", SSL_OP_ENABLE_KTLS_TX_ZEROCOPY_SENDFILE),
|
SSL_FLAG_TBL("KTLSTxZerocopySendfile", SSL_OP_ENABLE_KTLS_TX_ZEROCOPY_SENDFILE),
|
||||||
|
SSL_FLAG_TBL("IgnoreUnexpectedEOF", SSL_OP_IGNORE_UNEXPECTED_EOF),
|
||||||
};
|
};
|
||||||
if (value == NULL)
|
if (value == NULL)
|
||||||
return -3;
|
return -3;
|
||||||
|
Loading…
Reference in New Issue
Block a user