can't find socket.ssl() on win32

D

ds

i'm running under win2k trying to implement an ssl socket, and keep
getting the error
File "C:\Code\Python\ssl\NewsSrc.py", line 67, in connect
ssl = socket.ssl(sock, None, None)
AttributeError: 'module' object has no attribute 'ssl'
i'm running this under ActiveState version 2.2.2, but i have also tried
under ActiveState version 2.3 anyone have any ideas?

thanks in advance.
 
H

Heiko Wundram

ds said:
i'm running under win2k trying to implement an ssl socket, and keep
getting the error
File "C:\Code\Python\ssl\NewsSrc.py", line 67, in connect
ssl = socket.ssl(sock, None, None)
AttributeError: 'module' object has no attribute 'ssl'
i'm running this under ActiveState version 2.2.2, but i have also tried
under ActiveState version 2.3 anyone have any ideas?

IIRC socket.ssl wasn't available under Windows (because of it relying on the
OpenSSL libraries), but I can't seem to find any reference to documentation
at the moment... You can always use m2crypto which implements SSL sockets
under Unix and under Windows.

http://sandbox.rulemaker.net/ngps/m2/

HTH!

--- Heiko.
 
R

Richard Brodie

i'm running this under ActiveState version 2.2.2, but i have also tried
under ActiveState version 2.3 anyone have any ideas?

ActiveState don't ship crypto stuff because they don't want to jump
through the legal hoops. You can add it in or use a regular build.
 
T

Trent Mick

i'm running this under ActiveState version 2.2.2, but i have also tried
[Richard Brodie wrote]
ActiveState don't ship crypto stuff because they don't want to jump
through the legal hoops. You can add it in or use a regular build.

Slight modification there: ...because we are currently jumping through
the legal hoops...

But, yes, you are correct that ActivePython does not currently include
the _ssl extension because of crypto export restriction legal rules.
We've had a breakthrough here though (yeah!) and I'm hopeful that in the
not too distant future I'll be able to include SSL in ActivePython (and
other products I work on here at ActiveState).

Trent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,274
Messages
2,571,365
Members
48,049
Latest member
robinsonkoff

Latest Threads

Top