add reset_unknow() in enc.c to resolve 'enc: Multiple cipher or unknown options' (#24)

Reviewed-on: http://13.234.246.121:3000/Neominds/ossl35vx69/pulls/24
Co-authored-by: siddhant <siddhant.singh@neominds.in>
Co-committed-by: siddhant <siddhant.singh@neominds.in>
This commit is contained in:
2026-07-30 19:34:51 +05:30
committed by neelimap
parent 58f112682b
commit 06e66c8a25
@@ -158,6 +158,8 @@ int enc_main(int argc, char **argv)
const char *skeymgmt = NULL; const char *skeymgmt = NULL;
EVP_SKEY *skey = NULL; EVP_SKEY *skey = NULL;
EVP_SKEYMGMT *mgmt = NULL; EVP_SKEYMGMT *mgmt = NULL;
reset_unknown();
/* first check the command name */ /* first check the command name */
if (strcmp(argv[0], "base64") == 0) if (strcmp(argv[0], "base64") == 0)