projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support for EC_KEY_METHOD.
[openssl.git]
/
crypto
/
ec
/
ec_key.c
diff --git
a/crypto/ec/ec_key.c
b/crypto/ec/ec_key.c
index d5706010ff15b85c63494257f4d7313dec7a44ba..4a086be09680a030d946bac19788230559b775cb 100644
(file)
--- a/
crypto/ec/ec_key.c
+++ b/
crypto/ec/ec_key.c
@@
-68,17
+68,7
@@
EC_KEY *EC_KEY_new(void)
{
EC_KEY *EC_KEY_new(void)
{
- EC_KEY *ret = OPENSSL_zalloc(sizeof(*ret));
-
- if (ret == NULL) {
- ECerr(EC_F_EC_KEY_NEW, ERR_R_MALLOC_FAILURE);
- return (NULL);
- }
-
- ret->version = 1;
- ret->conv_form = POINT_CONVERSION_UNCOMPRESSED;
- ret->references = 1;
- return (ret);
+ return EC_KEY_new_method(NULL);
}
EC_KEY *EC_KEY_new_by_curve_name(int nid)
}
EC_KEY *EC_KEY_new_by_curve_name(int nid)