X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=ctypescrypto%2Foid.py;h=ff1684613ce5c948ae42925cdd1e469991ebe05a;hb=9394b769c7573617630484e7a932f6542068a8b6;hp=28e12baa0ee64118cce86296d2a8082615d6c882;hpb=287e8a5b1d7f5a8129619f733adbfc8b2de3e4c7;p=oss%2Fctypescrypto.git diff --git a/ctypescrypto/oid.py b/ctypescrypto/oid.py index 28e12ba..ff16846 100644 --- a/ctypescrypto/oid.py +++ b/ctypescrypto/oid.py @@ -42,7 +42,7 @@ class Oid(object): def __init__(self, value): """ - Object constuctor. Accepts string, integer, or another Oid + Object constructor. Accepts string, integer, or another Oid object. Integer should be OpenSSL numeric identifier (nid) as returned @@ -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)