Merge pull request #2327 from kennethsoerensen/pkparse-warning

Remove compiler warning if only MBEDTLS_PK_PARSE_C is defined
This commit is contained in:
Gilles Peskine 2021-09-01 16:53:45 +02:00 committed by GitHub
commit 6f015a8798
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1370,8 +1370,8 @@ int mbedtls_pk_parse_key( mbedtls_pk_context *pk,
} }
#endif /* MBEDTLS_PKCS12_C || MBEDTLS_PKCS5_C */ #endif /* MBEDTLS_PKCS12_C || MBEDTLS_PKCS5_C */
if( ( ret = pk_parse_key_pkcs8_unencrypted_der( ret = pk_parse_key_pkcs8_unencrypted_der( pk, key, keylen, f_rng, p_rng );
pk, key, keylen, f_rng, p_rng ) ) == 0 ) if( ret == 0 )
{ {
return( 0 ); return( 0 );
} }