mirror of https://github.com/openssl/openssl.git
Fix state name abbreviation
The TRSCV state abbrev was used for two states: * TLS_ST_CR_CERT_VRFY * TLS_ST_SW_CERT_VRFY The second one is wrong because it's a write operation. The state for TLS_ST_SW_CERT_VRFY should be "TWSCV" Reviewed-by: Ben Kaduk <kaduk@mit.edu> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16327)
This commit is contained in:
parent
d68820d956
commit
e0f69c3598
|
@ -13,10 +13,10 @@ SSL_state_string, SSL_state_string_long - get textual description of state of an
|
|||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
SSL_state_string() returns a 6 letter string indicating the current state
|
||||
of the SSL object B<ssl>.
|
||||
SSL_state_string() returns an abbreviated string indicating the current state
|
||||
of the SSL object B<ssl>. The returned NUL-terminated string contains 6 or fewer characters.
|
||||
|
||||
SSL_state_string_long() returns a string indicating the current state of
|
||||
SSL_state_string_long() returns a descriptive string indicating the current state of
|
||||
the SSL object B<ssl>.
|
||||
|
||||
=head1 NOTES
|
||||
|
@ -44,7 +44,7 @@ L<ssl(7)>, L<SSL_CTX_set_info_callback(3)>
|
|||
|
||||
=head1 COPYRIGHT
|
||||
|
||||
Copyright 2001-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
Copyright 2001-2021 The OpenSSL Project Authors. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
this file except in compliance with the License. You can obtain a copy
|
||||
|
|
|
@ -201,7 +201,7 @@ const char *SSL_state_string(const SSL *s)
|
|||
case TLS_ST_CR_CERT_VRFY:
|
||||
return "TRSCV";
|
||||
case TLS_ST_SW_CERT_VRFY:
|
||||
return "TRSCV";
|
||||
return "TWSCV";
|
||||
case TLS_ST_CR_HELLO_REQ:
|
||||
return "TRHR";
|
||||
case TLS_ST_SW_KEY_UPDATE:
|
||||
|
|
|
@ -6937,7 +6937,7 @@ static struct info_cb_states_st {
|
|||
{SSL_CB_HANDSHAKE_START, NULL}, {SSL_CB_LOOP, "PINIT"},
|
||||
{SSL_CB_LOOP, "PINIT"}, {SSL_CB_LOOP, "TRCH"}, {SSL_CB_LOOP, "TWSH"},
|
||||
{SSL_CB_LOOP, "TWCCS"}, {SSL_CB_LOOP, "TWEE"}, {SSL_CB_LOOP, "TWSC"},
|
||||
{SSL_CB_LOOP, "TRSCV"}, {SSL_CB_LOOP, "TWFIN"}, {SSL_CB_LOOP, "TED"},
|
||||
{SSL_CB_LOOP, "TWSCV"}, {SSL_CB_LOOP, "TWFIN"}, {SSL_CB_LOOP, "TED"},
|
||||
{SSL_CB_EXIT, NULL}, {SSL_CB_LOOP, "TED"}, {SSL_CB_LOOP, "TRFIN"},
|
||||
{SSL_CB_HANDSHAKE_DONE, NULL}, {SSL_CB_LOOP, "TWST"},
|
||||
{SSL_CB_LOOP, "TWST"}, {SSL_CB_EXIT, NULL}, {SSL_CB_ALERT, NULL},
|
||||
|
|
Loading…
Reference in New Issue