Sha256: e7f596f6c3fb3a7495bec0e268b2d91eb52294f280942b08d7822ed2095adcf3

Contents?: true

Size: 677 Bytes

Versions: 30

Compression:

Stored size: 677 Bytes

Contents

# Test just the SSL support in the socket module, in a moderately bogus way.

import test_support

# Optionally test SSL support.  This currently requires the 'network' resource
# as given on the regrtest command line.  If not available, nothing after this
# line will be executed.
test_support.requires('network')

import socket
if not hasattr(socket, "ssl"):
    raise test_support.TestSkipped("socket module has no ssl support")

import urllib

socket.RAND_status()
try:
    socket.RAND_egd(1)
except TypeError:
    pass
else:
    print "didn't raise TypeError"
socket.RAND_add("this is a random string", 75.0)

f = urllib.urlopen('https://sf.net')
buf = f.read()
f.close()

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rubyfox-server-2.19.2.0 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.17.3.2 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.17.3.1 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.17.3.0 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.16.3.2 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.16.3.1 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.16.0.4 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.16.0.3 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.16.0.2 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.16.0.1 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.16.0.0 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.13.7.3 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.13.6.2 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.13.6.1 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.13.5.1 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.13.4.1 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.13.3.1 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.12.5.1 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.12.5.0 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py
rubyfox-server-2.12.4.0 lib/rubyfox/server/data/lib/Lib/test/test_socket_ssl.py