Skip to content

Commit

Permalink
Resolves some magic values that has a hello_retry_request enum type.
Browse files Browse the repository at this point in the history
CLA: trivial

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #21636)

(cherry picked from commit 5ac7ee4)
  • Loading branch information
fwh-dc authored and paulidale committed Aug 4, 2023
1 parent c6b2058 commit 8d23e35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ssl/ssl_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ int SSL_clear(SSL *s)
OPENSSL_free(s->psksession_id);
s->psksession_id = NULL;
s->psksession_id_len = 0;
s->hello_retry_request = 0;
s->hello_retry_request = SSL_HRR_NONE;
s->sent_tickets = 0;

s->error = 0;
Expand Down
2 changes: 1 addition & 1 deletion ssl/statem/extensions_srvr.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ int tls_parse_ctos_cookie(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
}

/* Act as if this ClientHello came after a HelloRetryRequest */
s->hello_retry_request = 1;
s->hello_retry_request = SSL_HRR_PENDING;

s->ext.cookieok = 1;
#endif
Expand Down

0 comments on commit 8d23e35

Please sign in to comment.