summaryrefslogtreecommitdiff
path: root/crypto/engine/eng_fat.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-06-02 13:09:59 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-06-02 13:09:59 +0000
commit1892c8bf979ebb759ca8c1f3e454cb659eb75ae5 (patch)
tree313cecf30f31e03a7903896c4c8006240c80f319 /crypto/engine/eng_fat.c
parent5e428e7d0d53522e82a1eb6e418de8b7138e4cda (diff)
downloadopenssl-new-1892c8bf979ebb759ca8c1f3e454cb659eb75ae5.tar.gz
Extend default method string to include public key methods.
Add missing prototypes. Fix engine method lookup.
Diffstat (limited to 'crypto/engine/eng_fat.c')
-rw-r--r--crypto/engine/eng_fat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/engine/eng_fat.c b/crypto/engine/eng_fat.c
index 80cc4f0073..41d511a033 100644
--- a/crypto/engine/eng_fat.c
+++ b/crypto/engine/eng_fat.c
@@ -89,6 +89,8 @@ int ENGINE_set_default(ENGINE *e, unsigned int flags)
#endif
if((flags & ENGINE_METHOD_RAND) && !ENGINE_set_default_RAND(e))
return 0;
+ if((flags & ENGINE_METHOD_PKEY_METHS) && !ENGINE_set_default_pkey_meths(e))
+ return 0;
return 1;
}
@@ -115,6 +117,8 @@ static int int_def_cb(const char *alg, int len, void *arg)
*pflags |= ENGINE_METHOD_CIPHERS;
else if (!strncmp(alg, "DIGESTS", len))
*pflags |= ENGINE_METHOD_DIGESTS;
+ else if (!strncmp(alg, "PKEY", len))
+ *pflags |= ENGINE_METHOD_PKEY_METHS;
else
return 0;
return 1;