From Robert.Cheung at csiro.au Wed Sep 28 03:51:22 2005 From: Robert.Cheung at csiro.au (Robert.Cheung at csiro.au) Date: Wed, 28 Sep 2005 09:51:22 +0800 Subject: [pyOpenSSL] Error in source for Win32 build for version 0.6 Message-ID: <2A2B2F12CF99EA4A898E2D4729441B41016455BA@exwa2-per.wa.csiro.au> Hi, I have been trying to build - * pyOpenSSL (0.6) * WinXP * Visual C v7.0 * Python 2.3.5 * OpenSSL 0.9.8 and encountered the following error - --- C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -I..\openssl-0.9.8\inc32 -IC:\repositories\python2.3.5\pybuild\Python-2.3.5\include -IC:\repositories\python2.3.5\pybuild\Python-2.3.5\PC/Tcsrc/ssl/context. c /Fobuild\temp.win32-2.3\Release\src/ssl/context.obj context.c c:\repositories\python2.3.5\pybuild\pyOpenSSL-0.6\src\crypto\x509name.h( 27) : er ror C2059: syntax error : '(' c:\repositories\python2.3.5\pybuild\pyOpenSSL-0.6\src\crypto\x509name.h( 30) : er ror C2059: syntax error : '}' ... ... --- Basically on line 27 of src\crypto\x509name.h, the typedef X509_NAME has been overridden by a #define in wincrypt.h. To Fix this problem we need to add the following lines to x509name.h (anywhere after the #include and before the crypto_X509NameObj structure) - --- #ifdef OPENSSL_SYS_WIN32 #undef X509_NAME /* Wincrypt.h overrides this */ #endif --- I hope this helps. Regards Robert Cheung From mdusi at libero.it Thu Sep 29 15:28:05 2005 From: mdusi at libero.it (mdusi at libero.it) Date: Thu, 29 Sep 2005 15:28:05 +0200 Subject: [pyOpenSSL] pickling x509 objet Message-ID: I've installed python 2.2.3 on winxp and successfully imported pyOpenSSL library. I need to send by socket a certificate '.pem' but, after I loaded it using crypto.load_certificate() function, I can't pickle this x509 object. How can I send it using a socket? Are there other methods? By the way, I've also a Mandriva OS, but I can't import pyOpenSSL library...can you explain me what exactly should I do? How can I compile it? [setup.py build/install doesn't work and causes error-exit]I'm not a expert about linux system and C language, so please be redundant... Thank you very much for assistance Cordially, Maurizio From sascha_sauren at arcor.de Thu Sep 29 20:41:06 2005 From: sascha_sauren at arcor.de (Sascha) Date: Thu, 29 Sep 2005 20:41:06 +0200 Subject: [pyOpenSSL] install pyopenssl when python 2.4 was installed with installer and visual studio not available? Message-ID: <433C3542.1080104@arcor.de> Hi i have a lil big problem. i installed python 2.4 with the installer on a windows XP pro system i need to install pyopenssl but when i try to install with the setup.py an error message prompts in dos mode, that the same compiler (ms visual studio 7.2) is needed to compile it i dont have visual studio! and there is no installer for python version 2.4! can someone tell me how i should do that? Greetz