X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=ctypescrypto%2Foid.py;h=569739e6b7360c8c411580957847afd4117143e2;hb=6f4f45464e73a5dbfcba8403491be39644f33c5e;hp=28e12baa0ee64118cce86296d2a8082615d6c882;hpb=287e8a5b1d7f5a8129619f733adbfc8b2de3e4c7;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)