I just "upgraded" from M2Crypto 0.17 to M2Crypto 0.18, and I'm
running my regression tests. I'm seeing occasional cases where
M2Crypto raises the exception SSL.SSLError, and the associated
error is "(0, 'Error')", which is the bogus error you get if you feed 0 to
"perror". It failed once on "verisign.com"'s cert, then worked
on the next try.
This is on Windows, running Python 2.4 (which is what M2Crypto
supports on Windows.)
I'm trying to make this reproduceable. More later.
John Nagle 5 1240
John Nagle wrote:
I just "upgraded" from M2Crypto 0.17 to M2Crypto 0.18, and I'm
running my regression tests. I'm seeing occasional cases where
M2Crypto raises the exception SSL.SSLError, and the associated
error is "(0, 'Error')", which is the bogus error you get if you feed 0 to
"perror". It failed once on "verisign.com"'s cert, then worked
on the next try.
This is on Windows, running Python 2.4 (which is what M2Crypto
supports on Windows.)
I'm trying to make this reproduceable. More later.
John Nagle
Still trying to reproduce this. Every time except the first,
the regression test passed. More later. Might be an uninitialized
variable in a DLL, or something like that.
John Nagle
John Nagle wrote:
John Nagle wrote:
> I just "upgraded" from M2Crypto 0.17 to M2Crypto 0.18, and I'm running my regression tests. I'm seeing occasional cases where M2Crypto raises the exception SSL.SSLError, and the associated error is "(0, 'Error')", which is the bogus error you get if you feed 0 to "perror". It failed once on "verisign.com"'s cert, then worked on the next try.
This is on Windows, running Python 2.4 (which is what M2Crypto supports on Windows.)
I'm trying to make this reproduceable. More later.
John Nagle
Still trying to reproduce this. Every time except the first,
the regression test passed. More later. Might be an uninitialized
variable in a DLL, or something like that.
John Nagle
Still having trouble reproducing the problem. But somewhere,
something raised that bogus no-error exception three times.
Anything that returns "(0, 'Error')" as exception data is a bug.
John Nagle
John Nagle wrote:
Still having trouble reproducing the problem. But somewhere,
something raised that bogus no-error exception three times.
Anything that returns "(0, 'Error')" as exception data is a bug.
If you can, build python and m2crypto with debug symbols, and place
breakpoints in |case SSL_ERROR_SYSCALL| blocks (from _ssl.i). Then rerun
the tests. That would be my first guess as to where these might be
coming from.
--
Heikki Toivonen
Heikki Toivonen wrote:
John Nagle wrote:
> Still having trouble reproducing the problem. But somewhere, something raised that bogus no-error exception three times. Anything that returns "(0, 'Error')" as exception data is a bug.
If you can, build python and m2crypto with debug symbols, and place
breakpoints in |case SSL_ERROR_SYSCALL| blocks (from _ssl.i). Then rerun
the tests. That would be my first guess as to where these might be
coming from.
I don't have the right compiler to build it on Windows, and it
doesn't seem to be failing on Linux. It failed three times during
one test run and hasn't failed since. That makes me suspect an
uninitialized data problem in C code. I'll try to reproduce the
problem.
John Nagle
John Nagle wrote:
Heikki Toivonen wrote:
>John Nagle wrote:
>> Still having trouble reproducing the problem. But somewhere, something raised that bogus no-error exception three times. Anything that returns "(0, 'Error')" as exception data is a bug.
If you can, build python and m2crypto with debug symbols, and place breakpoints in |case SSL_ERROR_SYSCALL| blocks (from _ssl.i). Then rerun the tests. That would be my first guess as to where these might be coming from.
I don't have the right compiler to build it on Windows, and it
doesn't seem to be failing on Linux. It failed three times during
one test run and hasn't failed since. That makes me suspect an
uninitialized data problem in C code. I'll try to reproduce the
problem.
John Nagle
I'm unable to reproduce the problem at this time. Even re-installingM2Crypto
doesn't make it recur. I've been rerunning my regression test
over and over, and it's not repeatable.
I suspect that for some reason Windows networking was generating
a local error, and the Windows error status to UNIX-like error status
conversion is wrong somewhere.
John Nagle This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Carl Waldbieser |
last post by:
I tried to adapt the instructions for building the M2Crypto module
(http://sandbox.rulemaker.net/ngps/m2/INSTALL.html) to build a version
compatible with Python2.3, but I've had some mixed results....
|
by: jsmilan |
last post by:
Hi, all;
I'm strictly an amateur developer who has dabbled in a half dozen
languages on eight or nine systems over 20 years or so. I have never
devoted the time or energy to thoroughly learn...
|
by: morphex |
last post by:
Hi,
I get the following messages running the testall.py script with
m2crypto 0.13, can anyone tell me what's wrong?
.................................................................EEEEEE...
|
by: KW |
last post by:
I'm trying to convert some PHP code using OpenSSL to Python and I'm stuck
on openssl_sign() which uses an RSA private key to compute a signature.
Example PHP code:
$privkeyid =...
|
by: John Nagle |
last post by:
Here's a wierd problem:
I have a little test case for M2Crypto, which just opens up SSL connections to
web servers and reads their certificates. This works fine.
But if I execute
...
|
by: John Nagle |
last post by:
I've been running M2Crypto successfully using Python 2.4 on Windows 2000,
and now I'm trying to get it to work on Python 2.3.4 on Linux.
Attempting to initialize a context results in
Traceback...
|
by: John Nagle |
last post by:
Back in March, I posted this:
That was for M2Crypto 0.17.
It's still broken in M2Crypto 0.18.
And there's no RPM or Windows binary.
Nobody actually uses this stuff, do they?
|
by: Bojan Mihelac |
last post by:
Hi all!
I am trying to install M2Crypto to work on OSX10.5 apache
(mod_python). Error I receive:
Error was: dlopen(/Library/WebServer/eggs/M2Crypto-0.18.2-py2.5-...
|
by: Heikki Toivonen |
last post by:
I am happy to announce the M2Crypto 0.19 release!
M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA,
DSA, DH, HMACs, message digests, symmetric ciphers (including AES); SSL...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
| |