apps/engine: add EC to list of capabilities
authorMartin Oliveira <martin.oliveira@eideticom.com>
Fri, 9 Feb 2024 21:31:27 +0000 (14:31 -0700)
committerTomas Mraz <tomas@openssl.org>
Sun, 25 Feb 2024 08:10:13 +0000 (09:10 +0100)
openssl engine -c wasn't showing if an engine implemented EC

cla: trivial

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23538)

apps/engine.c

index 35d0368b3a055690e73eac9e115e124d4d2d2027..67f23c7e005667463d0bf8f442a742c032b80f0b 100644 (file)
@@ -405,6 +405,9 @@ int engine_main(int argc, char **argv)
                 if (ENGINE_get_RSA(e) != NULL
                     && !append_buf(&cap_buf, &cap_size, "RSA"))
                     goto end;
+                if (ENGINE_get_EC(e) != NULL
+                    && !append_buf(&cap_buf, &cap_size, "EC"))
+                    goto end;
                 if (ENGINE_get_DSA(e) != NULL
                     && !append_buf(&cap_buf, &cap_size, "DSA"))
                     goto end;