When we have support for KeyUpdate we might consider doing that instead.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2259)
int SSL_renegotiate(SSL *s)
{
- /* Do nothing in TLS1.3 */
+ /*
+ * TODO(TLS1.3): Return an error for now. Perhaps we should do a KeyUpdate
+ * instead when we support that?
+ */
if (SSL_IS_TLS13(s))
- return 1;
+ return 0;
if (s->renegotiate == 0)
s->renegotiate = 1;
int SSL_renegotiate_abbreviated(SSL *s)
{
- /* Do nothing in TLS1.3 */
+ /*
+ * TODO(TLS1.3): Return an error for now. Perhaps we should do a KeyUpdate
+ * instead when we support that?
+ */
if (SSL_IS_TLS13(s))
- return 1;
+ return 0;
if (s->renegotiate == 0)
s->renegotiate = 1;