aboutsummaryrefslogtreecommitdiff
path: root/crypto/evp/p_lib.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-04-07 10:15:32 +0000
committerRichard Levitte <levitte@openssl.org>2003-04-07 10:15:32 +0000
commit7b36590b1778c26ad96a36002b55b17fa3e41bf6 (patch)
tree71895bbc438a6fd97ee1971648ff33da31b664c0 /crypto/evp/p_lib.c
parenta8b728445c6d2d3f1d3ef568b8bff2b651aa0b52 (diff)
downloadopenssl-7b36590b1778c26ad96a36002b55b17fa3e41bf6.zip
openssl-7b36590b1778c26ad96a36002b55b17fa3e41bf6.tar.gz
openssl-7b36590b1778c26ad96a36002b55b17fa3e41bf6.tar.bz2
What was I smoking? EVP_PKEY_cmp() should return with 0 if
EVP_PKEY_cmp_parameters() returned 0, otherwise it should go on processing the public key component. Thia has nothing to do with the proper handling of EC parameters or not.
Diffstat (limited to 'crypto/evp/p_lib.c')
-rw-r--r--crypto/evp/p_lib.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c
index 2760d7b..730ef4d 100644
--- a/crypto/evp/p_lib.c
+++ b/crypto/evp/p_lib.c
@@ -242,14 +242,8 @@ 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;
+ if (EVP_PKEY_cmp_parameters(a, b) == 0)
+ return 0;
switch (a->type)
{