diff options
author | 2016-10-30 19:51:15 +1100 | |
---|---|---|
committer | 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) { return (src)? ecg_dup(L, src) : (lua_pushnil(L), (EC_GROUP *)0); } /* ecg_dup_nil() */ -static EC_GROUP *ecg_new_by_nid(int nid) { - EC_GROUP *group; - - if (!(group = EC_GROUP_new_by_curve_name(nid))) - return NULL; - - /* flag as named for benefit of __tostring */ - EC_GROUP_set_asn1_flag(group, OPENSSL_EC_NAMED_CURVE); - - /* compressed points may be patented */ - EC_GROUP_set_point_conversion_form(group, POINT_CONVERSION_UNCOMPRESSED); - - return group; -} /* ecg_new_by_nid() */ - static EC_GROUP *ecg_push_by_nid(lua_State *L, int nid) { EC_GROUP **group = prepsimple(L, EC_GROUP_CLASS); |