new function EC_GROUP_cmp() (used by EVP_PKEY_cmp())

Submitted by: Nils Larsch
This commit is contained in:
Bodo Möller
2003-07-21 13:43:28 +00:00
parent 2c789c82be
commit ada0e717fa
3 changed files with 87 additions and 0 deletions

View File

@@ -233,6 +233,15 @@ int EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b)
else
return(1);
}
#endif
#ifndef OPENSSL_NO_EC
if (a->type == EVP_PKEY_EC && b->type == EVP_PKEY_EC)
{
if (EC_GROUP_cmp(a->pkey.eckey->group, b->pkey.eckey->group, NULL))
return 0;
else
return 1;
}
#endif
return(-1);
}