1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Fix warnings (enum value missing from switch/case)

This commit is contained in:
Manuel Pégourié-Gonnard
2013-07-10 12:29:57 +02:00
committed by Paul Bakker
parent 72ef0b775d
commit 7c5819eb1e
2 changed files with 19 additions and 2 deletions

View File

@@ -637,7 +637,9 @@ static int x509_get_pubkey( unsigned char **p,
switch( pk_alg )
{
case POLARSSL_PK_NONE:
ret = POLARSSL_ERR_X509_UNKNOWN_PK_ALG;
case POLARSSL_PK_ECDSA:
/* Should never happen */
ret = POLARSSL_ERR_X509_CERT_INVALID_ALG;
break;
case POLARSSL_PK_RSA: