Author: Richard Plangger <[email protected]>
Branch: py3.5
Changeset: r90229:6ac694bd3fc5
Date: 2017-02-20 14:09 +0100
http://bitbucket.org/pypy/pypy/changeset/6ac694bd3fc5/

Log:    openssl 1.1.x introduces i2t_ASN1_OBJECT, and the stdlib immedeatly
        uses it, instead of directly calling OBJ_obj2txt (an alias with 1
        extra parameter)

diff --git a/lib_pypy/_cffi_ssl/_stdssl/certificate.py 
b/lib_pypy/_cffi_ssl/_stdssl/certificate.py
--- a/lib_pypy/_cffi_ssl/_stdssl/certificate.py
+++ b/lib_pypy/_cffi_ssl/_stdssl/certificate.py
@@ -113,7 +113,7 @@
                 v = "Registered ID"
                 buf = ffi.new("char[2048]")
 
-                length = lib.i2t_ASN1_OBJECT(buf, 2047, name.d.rid);
+                length = lib.OBJ_obj2txt(buf, 2047, name.d.rid, 0)
                 if length < 0:
                     # TODO _setSSLError(NULL, 0, __FILE__, __LINE__);
                     raise NotImplementedError
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to