X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=ctypescrypto%2Foid.py;h=569739e6b7360c8c411580957847afd4117143e2;hb=0b71a493c4661ee64d8ec27c364c01af11e80737;hp=28e12baa0ee64118cce86296d2a8082615d6c882;hpb=13e7cc155149cf6e7c3789955e2d48be0a42cc26;p=oss%2Fctypescrypto.git diff --git a/ctypescrypto/oid.py b/ctypescrypto/oid.py index 28e12ba..569739e 100644 --- a/ctypescrypto/oid.py +++ b/ctypescrypto/oid.py @@ -139,6 +139,8 @@ def cleanup(): libcrypto.OBJ_nid2sn.restype = c_char_p libcrypto.OBJ_nid2ln.restype = c_char_p libcrypto.OBJ_nid2obj.restype = c_void_p +libcrypto.OBJ_obj2nid.restype = c_int libcrypto.OBJ_obj2txt.argtypes = (c_char_p, c_int, c_void_p, c_int) libcrypto.OBJ_txt2nid.argtupes = (c_char_p, ) +libcrypto.OBJ_obj2nid.argtupes = (c_void_p, ) libcrypto.OBJ_create.argtypes = (c_char_p, c_char_p, c_char_p)