Changeset 4241f3c


Ignore:
Timestamp:
Dec 6, 2012 9:41:05 AM (11 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
84623c3
Parents:
f1302d1
Message:

Allow protocol setting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/util.py

    rf1302d1 r4241f3c  
    6868    Simple wrapper around an M2Crypto.SSL.Context to initialize it for fedd.
    6969    """
    70     def __init__(self, my_cert, trusted_certs=None, password=None):
     70    def __init__(self, my_cert, trusted_certs=None, password=None, protocol=None):
    7171        """
    7272        construct a fedd_ssl_context
     
    7575        @param trusted_certs: PEM file with trusted certs in it (optional)
    7676        """
    77         SSL.Context.__init__(self)
     77        if protocol: SSL.Context.__init__(self, protocol=protocol)
     78        else: SSL.Context.__init__(self)
    7879
    7980        # load_cert takes a callback to get a password, not a password, so if
Note: See TracChangeset for help on using the changeset viewer.