diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/openssl.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/openssl.c b/src/openssl.c index 8c02981..ee51386 100644 --- a/src/openssl.c +++ b/src/openssl.c | |||
| @@ -3980,21 +3980,6 @@ static EC_GROUP *ecg_dup_nil(lua_State *L, const EC_GROUP *src) { | |||
| 3980 | return (src)? ecg_dup(L, src) : (lua_pushnil(L), (EC_GROUP *)0); | 3980 | return (src)? ecg_dup(L, src) : (lua_pushnil(L), (EC_GROUP *)0); |
| 3981 | } /* ecg_dup_nil() */ | 3981 | } /* ecg_dup_nil() */ |
| 3982 | 3982 | ||
| 3983 | static EC_GROUP *ecg_new_by_nid(int nid) { | ||
| 3984 | EC_GROUP *group; | ||
| 3985 | |||
| 3986 | if (!(group = EC_GROUP_new_by_curve_name(nid))) | ||
| 3987 | return NULL; | ||
| 3988 | |||
| 3989 | /* flag as named for benefit of __tostring */ | ||
| 3990 | EC_GROUP_set_asn1_flag(group, OPENSSL_EC_NAMED_CURVE); | ||
| 3991 | |||
| 3992 | /* compressed points may be patented */ | ||
| 3993 | EC_GROUP_set_point_conversion_form(group, POINT_CONVERSION_UNCOMPRESSED); | ||
| 3994 | |||
| 3995 | return group; | ||
| 3996 | } /* ecg_new_by_nid() */ | ||
| 3997 | |||
| 3998 | static EC_GROUP *ecg_push_by_nid(lua_State *L, int nid) { | 3983 | static EC_GROUP *ecg_push_by_nid(lua_State *L, int nid) { |
| 3999 | EC_GROUP **group = prepsimple(L, EC_GROUP_CLASS); | 3984 | EC_GROUP **group = prepsimple(L, EC_GROUP_CLASS); |
| 4000 | 3985 | ||
