Allow use of algorithm and cipher names for dgsts and enc utilities instead
of having to manually include each one.
diff --git a/apps/openssl.c b/apps/openssl.c
index 5d61d17..c9d9fe9 100644
--- a/apps/openssl.c
+++ b/apps/openssl.c
@@ -392,6 +392,21 @@
{ ret=0; goto end; }
f.name=argv[0];
fp=lh_FUNCTION_retrieve(prog,&f);
+ if (fp == NULL)
+ {
+ if (EVP_get_digestbyname(argv[0]))
+ {
+ f.type = FUNC_TYPE_MD;
+ f.func = dgst_main;
+ fp = &f;
+ }
+ else if (EVP_get_cipherbyname(argv[0]))
+ {
+ f.type = FUNC_TYPE_CIPHER;
+ f.func = enc_main;
+ fp = &f;
+ }
+ }
if (fp != NULL)
{
ret=fp->func(argc,argv);