Add SSL_OP_ALLOW_CLIENT_RENEGOTIATION
authorRich Salz <rsalz@akamai.com>
Thu, 6 May 2021 16:56:35 +0000 (12:56 -0400)
committerTomas Mraz <tomas@openssl.org>
Mon, 17 May 2021 08:53:30 +0000 (10:53 +0200)
commit55373bfd419ca010a15aac18c88c94827e2f3a92
tree803860f6eae08da5688ae7c4b68e195e52851a23
parentd7970dd963134534340ad00fa62cb1180daf5cb0
Add SSL_OP_ALLOW_CLIENT_RENEGOTIATION

Add -client_renegotiation flag support.  The -client_renegotiation flag is
equivalent to SSL_OP_ALLOW_CLIENT_RENEGOTIATION. Add support to the app,
the config code, and the documentation.

Add SSL_OP_ALLOW_CLIENT_RENEGOTIATION to the SSL tests. We don't need to
always enable it, but there are so many tests so this is the easiest thing
to do.

Add a test where client tries to renegotiate and it fails as expected. Add
a test where server tries to renegotiate and it succeeds. The second test
is supported by a new flag, -immediate_renegotiation, which is ignored on
the client.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15184)
14 files changed:
CHANGES.md
apps/include/opt.h
apps/lib/s_cb.c
apps/s_client.c
apps/s_server.c
doc/man3/SSL_CONF_cmd.pod
doc/perlvars.pm
ssl/ssl_conf.c
ssl/ssl_lib.c
ssl/statem/statem_srvr.c
test/helpers/ssltestlib.c
test/recipes/70-test_renegotiation.t
test/recipes/70-test_sslmessages.t
test/ssl_test.c