summaryrefslogtreecommitdiffstats
path: root/crypto/evp/p_lib.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-04-07 10:09:44 +0000
committerRichard Levitte <levitte@openssl.org>2003-04-07 10:09:44 +0000
commita8b728445c6d2d3f1d3ef568b8bff2b651aa0b52 (patch)
tree4e73b2a6e501fe8979e75a3f67691c7b572700ef /crypto/evp/p_lib.c
parentaf0f0f3e8fce83cf65c7f306eef88fa2d7516e5f (diff)
Correct a typo.
Have EVP_PKEY_cmp() call EVP_PKEY_cmp_parameters(), and make a note about the lack of parameter comparison for EC.
Diffstat (limited to 'crypto/evp/p_lib.c')
-rw-r--r--crypto/evp/p_lib.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c
index 74a007e29d..2760d7b1ed 100644
--- a/crypto/evp/p_lib.c
+++ b/crypto/evp/p_lib.c
@@ -150,7 +150,7 @@ int EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode)
return(0);
}
-int EVP_PKEY_copy_parameters(EVP_PKEY *to, cpnst EVP_PKEY *from)
+int EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from)
{
if (to->type != from->type)
{
@@ -242,6 +242,15 @@ int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b)
if (a->type != b->type)
return -1;
+ /* XXXXX
+ We should really check for != 0, but cmp_paramters doesn't compare EC
+ groups, and I'm currently unsure how to handle that case... Except for
+ adding such functionality to cmp_parameters, but that would require
+ things like EC_GROUP_cmp(), which I'm not currently ready to write.
+ -- Richard Levitte */
+ if (EVP_PKEY_cmp_parameters(a, b) == 1)
+ return 1;
+
switch (a->type)
{
#ifndef OPENSSL_NO_RSA