original_docstring: Return proton.SSLDomain from command line options or None if no SSL options specified.
              @param opts: Parsed optoins including connection_options()
          
docstring: Return proton.SSLDomain from command line options or None if no SSL options specified.
docstring_tokens: Return proton . SSLDomain from command line options or None if no SSL options specified .
code: def create_ssl_domain(self, ssl_options_dict, mode=SSLDomain.MODE_CLIENT):
          """Return proton.SSLDomain from command line options or None if no SSL options specified.
              @param opts: Parsed optoins including connection_options()
          """
          certificate, key, trustfile, password = ssl_options_dict.get('ssl-certificate'), \
              ssl_options_dict.get('ssl-key'), \
              ssl_options_dict.get('ssl-trustfile'), \
              ssl_options_dict.get('ssl-password')
  
          if not (certificate or trustfile):
              return None
          domain = SSLDomain(mode)
          if trustfile:
              domain.set_trusted_ca_db(str(trustfile))
          domain.set_peer_authentication(SSLDomain.VERIFY_PEER, None)
          if certificate:
              domain.set_credentials(str(certificate), str(key), str(password))
  
          return domain
code_tokens: def create_ssl_domain ( self , ssl_options_dict , mode = SSLDomain . MODE_CLIENT ) : certificate , key , trustfile , password = ssl_options_dict . get ( 'ssl-certificate' ) , ssl_options_dict . get ( 'ssl-key' ) , ssl_options_dict . get ( 'ssl-trustfile' ) , ssl_options_dict . get ( 'ssl-password' ) if not ( certificate or trustfile ) : return None domain = SSLDomain ( mode ) if trustfile : domain . set_trusted_ca_db ( str ( trustfile ) ) domain . set_peer_authentication ( SSLDomain . VERIFY_PEER , None ) if certificate : domain . set_credentials ( str ( certificate ) , str ( key ) , str ( password ) ) return domain
short_docstring: Return proton.SSLDomain from command line options or None if no SSL options specified.
short_docstring_tokens: Return proton . SSLDomain from command line options or None if no SSL options specified .
comment: """Return proton.SSLDomain from command line options or None if no SSL options specified.
              @param opts: Parsed optoins including connection_options()
          """