Author: mattip <[email protected]>
Branch: stdlib-2.7.9
Changeset: r75833:4b28f7d27709
Date: 2015-02-12 01:29 +0200
http://bitbucket.org/pypy/pypy/changeset/4b28f7d27709/

Log:    None is illegal in a llexternal call

diff --git a/pypy/module/_ssl/interp_win32.py b/pypy/module/_ssl/interp_win32.py
--- a/pypy/module/_ssl/interp_win32.py
+++ b/pypy/module/_ssl/interp_win32.py
@@ -74,7 +74,8 @@
 
 def w_parseKeyUsage(space, pCertCtx, flags):
     with lltype.scoped_alloc(rwin32.LPDWORD.TO, 1) as size_ptr:
-        if not CertGetEnhancedKeyUsage(pCertCtx, flags, None, size_ptr):
+        if not CertGetEnhancedKeyUsage(pCertCtx, flags, 
+                             lltype.nullptr(CERT_ENHKEY_USAGE), size_ptr):
             last_error = rwin32.lastSavedWindowsError()
             if last_error.winerror == CRYPT_E_NOT_FOUND:
                 return space.w_True
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to