mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
- Information about missing or non-verified client certificate is not provided as well.
This commit is contained in:
parent
9fc4659b30
commit
cdf07e9979
2 changed files with 11 additions and 6 deletions
|
|
@ -1280,6 +1280,7 @@ int ssl_parse_certificate( ssl_context *ssl )
|
|||
if( ssl->endpoint == SSL_IS_SERVER &&
|
||||
ssl->authmode == SSL_VERIFY_NONE )
|
||||
{
|
||||
ssl->verify_result = BADCERT_SKIP_VERIFY;
|
||||
SSL_DEBUG_MSG( 2, ( "<= skip parse certificate" ) );
|
||||
ssl->state++;
|
||||
return( 0 );
|
||||
|
|
@ -1306,6 +1307,7 @@ int ssl_parse_certificate( ssl_context *ssl )
|
|||
{
|
||||
SSL_DEBUG_MSG( 1, ( "SSLv3 client has no certificate" ) );
|
||||
|
||||
ssl->verify_result = BADCERT_MISSING;
|
||||
if( ssl->authmode == SSL_VERIFY_OPTIONAL )
|
||||
return( 0 );
|
||||
else
|
||||
|
|
@ -1323,6 +1325,7 @@ int ssl_parse_certificate( ssl_context *ssl )
|
|||
{
|
||||
SSL_DEBUG_MSG( 1, ( "TLSv1 client has no certificate" ) );
|
||||
|
||||
ssl->verify_result = BADCERT_MISSING;
|
||||
if( ssl->authmode == SSL_VERIFY_REQUIRED )
|
||||
return( POLARSSL_ERR_SSL_NO_CLIENT_CERTIFICATE );
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue