Changeset 4c340e9 for skype


Ignore:
Timestamp:
2008-04-30T22:17:55Z (17 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
b0d40f5
Parents:
140ffc8
Message:

modularize openssl code

  • so that later we may use gnutls as well (or other ssl implementations)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skyped.py

    r140ffc8 r4c340e9  
    3232import sha
    3333from ConfigParser import ConfigParser
    34 from OpenSSL import SSL
    3534from traceback import print_exception
    3635
     
    7675        global options
    7776
     77        from OpenSSL import SSL
    7878        ctx = SSL.Context(SSL.TLSv1_METHOD)
    7979        ctx.use_privatekey_file(options.config.sslkey)
    8080        ctx.use_certificate_file(options.config.sslcert)
    8181        sock = SSL.Connection(ctx, socket.socket())
     82
    8283        sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
    8384        sock.bind((host, port))
Note: See TracChangeset for help on using the changeset viewer.