Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.6
Changeset: r69598:f9318d0034e1
Date: 2014-03-02 00:43 -0500
http://bitbucket.org/pypy/pypy/changeset/f9318d0034e1/
Log: try this method
diff --git a/pypy/module/_ssl/interp_ssl.py b/pypy/module/_ssl/interp_ssl.py
--- a/pypy/module/_ssl/interp_ssl.py
+++ b/pypy/module/_ssl/interp_ssl.py
@@ -597,7 +597,7 @@
v = space.wrap("URI")
else:
assert False
- as_ = name[0].c_d
+ as_ = rffi.cast(ASN1_STRING, name[0].c_d)
buf = libssl_ASN1_STRING_data(as_)
length = libssl_ASN1_STRING_length(as_)
w_t = space.newtuple([v,
diff --git a/rpython/rlib/ropenssl.py b/rpython/rlib/ropenssl.py
--- a/rpython/rlib/ropenssl.py
+++ b/rpython/rlib/ropenssl.py
@@ -137,7 +137,7 @@
GENERAL_NAME_st = rffi_platform.Struct(
'struct GENERAL_NAME_st',
[('type', rffi.INT),
- ('d', ASN1_STRING)])
+ ('d', rffi.VOIDP)])
EVP_MD_st = rffi_platform.Struct(
'EVP_MD',
[('md_size', rffi.INT),
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit