From a724f7ae178c9a6024bbc27352e2e5c2e6c79081 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Fri, 20 May 2022 09:28:12 +0200 Subject: [PATCH] Document mbedtls_pk_can_do_ext() return for non-allowed algorithms and usage flags Signed-off-by: Neil Armstrong --- include/mbedtls/pk.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/mbedtls/pk.h b/include/mbedtls/pk.h index 6289e8ee0..6c4ca385d 100644 --- a/include/mbedtls/pk.h +++ b/include/mbedtls/pk.h @@ -430,7 +430,8 @@ int mbedtls_pk_can_do( const mbedtls_pk_context *ctx, mbedtls_pk_type_t type ); * * \return 1 if the context can do operations on the given type. * \return 0 if the context cannot do the operations on the given - * type. This is always the case for a context that has + * type, or for non-allowed algorithms and usage flags. + * This is always the case for a context that has * been initialized but not set up, or that has been * cleared with mbedtls_pk_free(). */