From b9ecb9283e999a66f79e5689bf42968dde91a151 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 12 Mar 2026 14:39:23 +0100 Subject: [PATCH] pki_context: Allow using minimal RSA key size in new API Signed-off-by: Jakub Jelen Reviewed-by: Eshan Kelkar --- src/pki_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pki_context.c b/src/pki_context.c index 6cd78fbf..e2e78d9c 100644 --- a/src/pki_context.c +++ b/src/pki_context.c @@ -191,7 +191,7 @@ int ssh_pki_ctx_options_set(ssh_pki_ctx context, if (value == NULL) { SSH_LOG(SSH_LOG_WARN, "RSA key size pointer must not be NULL"); return SSH_ERROR; - } else if (*(int *)value != 0 && *(int *)value <= RSA_MIN_KEY_SIZE) { + } else if (*(int *)value != 0 && *(int *)value < RSA_MIN_KEY_SIZE) { SSH_LOG( SSH_LOG_WARN, "RSA key size must be greater than %d bits or 0 for default",