diff options
| author | daurnimator <quae@daurnimator.com> | 2016-10-30 19:51:15 +1100 |
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2016-10-30 19:51:15 +1100 |
| commit | 94307e3b49ec0519baa1704917cb0d3a4cd374b9 (patch) | |
| tree | 363e5ef5102523366371bfc7d8ab8445097fe5ed /src | |
| parent | 0eb79753c2acb611f612a35774c162426fc2ef43 (diff) | |
| download | luaossl-94307e3b49ec0519baa1704917cb0d3a4cd374b9.tar.gz luaossl-94307e3b49ec0519baa1704917cb0d3a4cd374b9.tar.bz2 luaossl-94307e3b49ec0519baa1704917cb0d3a4cd374b9.zip | |
Remove unused ecg_new_by_nid
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 | ||
