You are viewing information archived from Mozilla.org on 2014-10-02.
|
clear_session_cache()
You must call ssl.clear_session_cache() after you use one of the SSL
Export Policy Functions to change cipher suite policy settings or use
ssl.set_default_cipher_pref() to enable or disable any cipher
suite. |
|
|
|
config_mp_server_sid_cache(max_cache_entries=0,
ssl2_timeout=0,
ssl3_timeout=0,
directory=None)
This function sets up a Server Session ID (SID) cache that is safe for
access by multiple processes on the same system. |
|
|
|
config_server_session_id_cache(max_cache_entries=0,
ssl2_timeout=0,
ssl3_timeout=0,
directory=None)
If you are writing an application which will use SSL sockets to
handshake as a server, you must call config_server_session_id_cache()
to configure the session caches for server sessions. |
|
|
|
config_server_session_id_cache_with_opt(max_cache_entries=0,
max_cert_cache_entries=0,
max_server_name_cache_entries=0,
ssl2_timeout=0,
ssl3_timeout=0,
directory=None,
enable_mp_cache=False)
Configure a secure server's session-id cache. |
|
|
policy
|
|
enabled
|
get_default_cipher_pref(cipher)
Returns the application default preference for the specified SSL2,
SSL3, or TLS cipher. |
|
|
int
|
|
|
get_ssl_default_option(value)
Gets the default value of a specified SSL option for all
subsequently opened sockets as long as the current application program
is running. |
|
|
|
nss_init(cert_dir)
WARNING: nss_init() has been moved to the nss module, use nss.nss_init() instead of ssl.nss_init() |
|
|
|
nss_shutdown()
WARNING: nss_shutdown() has been moved to the nss module, use nss.nss_shutdown() instead of ssl.nss_shutdown() |
|
|
|
nssinit(cert_dir)
WARNING: nssinit() has been moved to the nss module, use nss.nss_init() instead of ssl.nssinit() |
|
|
|
set_cipher_policy(cipher,
enabled)
Tells the SSL library that the specified cipher suite is allowed by
the application's export license, or is not allowed by the
application's export license, or is allowed to be used only with a
Step-Up certificate. |
|
|
|
set_default_cipher_pref(cipher,
enabled)
Sets the application default preference for the specified SSL2, SSL3,
or TLS cipher. |
|
|
|
|
|
|
|
set_france_policy()
Configures the SSL cipher suites to conform with French import
regulations related to software products with encryption features. |
|
|
|
|
|
set_ssl_default_option(option,
value)
Changes the default value of a specified SSL option for all
subsequently opened sockets as long as the current application program
is running. |
|
|
|
shutdown_server_session_id_cache() |
|
|
|
SSL_ALLOWED = 1
|
|
SSL_BYPASS_PKCS11 = 16
|
|
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA = 17
|
|
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19
|
|
SSL_DHE_DSS_WITH_DES_CBC_SHA = 18
|
|
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA = 20
|
|
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22
|
|
SSL_DHE_RSA_WITH_DES_CBC_SHA = 21
|
|
SSL_DH_ANON_EXPORT_WITH_DES40_CBC_SHA = 25
|
|
SSL_DH_ANON_EXPORT_WITH_RC4_40_MD5 = 23
|
|
SSL_DH_ANON_WITH_3DES_EDE_CBC_SHA = 27
|
|
SSL_DH_ANON_WITH_DES_CBC_SHA = 26
|
|
SSL_DH_ANON_WITH_RC4_128_MD5 = 24
|
|
SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA = 11
|
|
SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13
|
|
SSL_DH_DSS_WITH_DES_CBC_SHA = 12
|
|
SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA = 14
|
|
SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16
|
|
SSL_DH_RSA_WITH_DES_CBC_SHA = 15
|
|
SSL_ENABLE_FDX = 11
|
|
SSL_ENABLE_SSL2 = 7
|
|
SSL_ENABLE_SSL3 = 8
|
|
SSL_ENABLE_TLS = 13
|
|
SSL_EN_DES_192_EDE3_CBC_WITH_MD5 = 65287
|
|
SSL_EN_DES_64_CBC_WITH_MD5 = 65286
|
|
SSL_EN_IDEA_128_CBC_WITH_MD5 = 65285
|
|
SSL_EN_RC2_128_CBC_EXPORT40_WITH_MD5 = 65284
|
|
SSL_EN_RC2_128_CBC_WITH_MD5 = 65283
|
|
SSL_EN_RC4_128_EXPORT40_WITH_MD5 = 65282
|
|
SSL_EN_RC4_128_WITH_MD5 = 65281
|
|
SSL_HANDSHAKE_AS_CLIENT = 5
|
|
SSL_HANDSHAKE_AS_SERVER = 6
|
|
SSL_NOT_ALLOWED = 0
|
|
SSL_NO_CACHE = 9
|
|
SSL_NO_LOCKS = 17
|
|
SSL_NO_STEP_DOWN = 15
|
|
SSL_NULL_WITH_NULL_NULL = 0
|
|
SSL_REQUEST_CERTIFICATE = 3
|
|
SSL_REQUIRE_ALWAYS = 1
|
|
SSL_REQUIRE_CERTIFICATE = 10
|
|
SSL_REQUIRE_FIRST_HANDSHAKE = 2
|
|
SSL_REQUIRE_NEVER = 0
|
|
SSL_REQUIRE_NO_ERROR = 3
|
|
SSL_RESTRICTED = 2
|
|
SSL_ROLLBACK_DETECTION = 14
|
|
SSL_RSA_EXPORT_WITH_DES40_CBC_SHA = 8
|
|
SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5 = 6
|
|
SSL_RSA_EXPORT_WITH_RC4_40_MD5 = 3
|
|
SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA = 65279
|
|
SSL_RSA_FIPS_WITH_DES_CBC_SHA = 65278
|
|
SSL_RSA_WITH_3DES_EDE_CBC_SHA = 10
|
|
SSL_RSA_WITH_DES_CBC_SHA = 9
|
|
SSL_RSA_WITH_IDEA_CBC_SHA = 7
|
|
SSL_RSA_WITH_NULL_MD5 = 1
|
|
SSL_RSA_WITH_NULL_SHA = 2
|
|
SSL_RSA_WITH_RC4_128_MD5 = 4
|
|
SSL_RSA_WITH_RC4_128_SHA = 5
|
|
SSL_SECURITY = 1
|
|
SSL_SECURITY_STATUS_NOOPT = -1
|
|
SSL_SECURITY_STATUS_OFF = 0
|
|
SSL_SECURITY_STATUS_ON_HIGH = 1
|
|
SSL_SECURITY_STATUS_ON_LOW = 2
|
|
SSL_SOCKS = 2
|
|
SSL_V2_COMPATIBLE_HELLO = 12
|
|
TLS_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA = 99
|
|
TLS_DHE_DSS_EXPORT1024_WITH_RC4_56_SHA = 101
|
|
TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 50
|
|
TLS_DHE_DSS_WITH_AES_256_CBC_SHA = 56
|
|
TLS_DHE_DSS_WITH_RC4_128_SHA = 102
|
|
TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 51
|
|
TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 57
|
|
TLS_DH_ANON_WITH_AES_128_CBC_SHA = 52
|
|
TLS_DH_ANON_WITH_AES_256_CBC_SHA = 58
|
|
TLS_DH_DSS_WITH_AES_128_CBC_SHA = 48
|
|
TLS_DH_DSS_WITH_AES_256_CBC_SHA = 54
|
|
TLS_DH_RSA_WITH_AES_128_CBC_SHA = 49
|
|
TLS_DH_RSA_WITH_AES_256_CBC_SHA = 55
|
|
TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA = 49160
|
|
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = 49161
|
|
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = 49162
|
|
TLS_ECDHE_ECDSA_WITH_NULL_SHA = 49158
|
|
TLS_ECDHE_ECDSA_WITH_RC4_128_SHA = 49159
|
|
TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA = 49170
|
|
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = 49171
|
|
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = 49172
|
|
TLS_ECDHE_RSA_WITH_NULL_SHA = 49168
|
|
TLS_ECDHE_RSA_WITH_RC4_128_SHA = 49169
|
|
TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA = 49155
|
|
TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA = 49156
|
|
TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA = 49157
|
|
TLS_ECDH_ECDSA_WITH_NULL_SHA = 49153
|
|
TLS_ECDH_ECDSA_WITH_RC4_128_SHA = 49154
|
|
TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA = 49165
|
|
TLS_ECDH_RSA_WITH_AES_128_CBC_SHA = 49166
|
|
TLS_ECDH_RSA_WITH_AES_256_CBC_SHA = 49167
|
|
TLS_ECDH_RSA_WITH_NULL_SHA = 49163
|
|
TLS_ECDH_RSA_WITH_RC4_128_SHA = 49164
|
|
TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA = 49175
|
|
TLS_ECDH_anon_WITH_AES_128_CBC_SHA = 49176
|
|
TLS_ECDH_anon_WITH_AES_256_CBC_SHA = 49177
|
|
TLS_ECDH_anon_WITH_NULL_SHA = 49173
|
|
TLS_ECDH_anon_WITH_RC4_128_SHA = 49174
|
|
TLS_RSA_EXPORT1024_WITH_DES_CBC_SHA = 98
|
|
TLS_RSA_EXPORT1024_WITH_RC4_56_SHA = 100
|
|
TLS_RSA_WITH_AES_128_CBC_SHA = 47
|
|
TLS_RSA_WITH_AES_256_CBC_SHA = 53
|
|
_C_API = <PyCObject object at 0x9ec2e00>
|
|
__package__ = None
|
|
ssl_implemented_ciphers = ( 49162, 49172, 136, 135, 57, 56, 491...
|