Skip to content

Commit

Permalink
fix use OBJ_txt2nid replace OBJ_sn2nid
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozg committed May 29, 2019
1 parent 9d2db23 commit 3045e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ EC_GROUP* openssl_get_ec_group(lua_State* L, int ec_name_idx, int param_enc_idx,
else if (lua_isstring(L, ec_name_idx))
{
const char* name = luaL_checkstring(L, ec_name_idx);
nid = OBJ_sn2nid(name);
nid = OBJ_txt2nid(name);
}
else if (lua_isuserdata(L, ec_name_idx))
{
Expand Down

0 comments on commit 3045e7e

Please sign in to comment.