mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-02 08:19:56 +00:00
pkwrite: fix return value in pk_get_type_ext()
Signed-off-by: Valerio Setti <[email protected]>
This commit is contained in:
+1
-1
@@ -527,7 +527,7 @@ static mbedtls_pk_type_t pk_get_type_ext(const mbedtls_pk_context *pk)
|
||||
} else if (PSA_KEY_TYPE_IS_RSA(opaque_key_type)) {
|
||||
return MBEDTLS_PK_RSA;
|
||||
} else {
|
||||
return MBEDTLS_ERR_PK_FEATURE_UNAVAILABLE;
|
||||
return MBEDTLS_PK_NONE;
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user