mercurial/sslutil.py
branchstable
changeset 29042 693b856a4d45
parent 28850 3819c349b194
child 29105 548e9c8c2841
child 29452 26a5d605b868
equal deleted inserted replaced
29041:b962ae0a0a05 29042:693b856a4d45
   118 
   118 
   119     * serverhostname - The expected hostname of the remote server. If the
   119     * serverhostname - The expected hostname of the remote server. If the
   120       server (and client) support SNI, this tells the server which certificate
   120       server (and client) support SNI, this tells the server which certificate
   121       to use.
   121       to use.
   122     """
   122     """
   123     if not serverhostname:
       
   124         raise error.Abort('serverhostname argument required')
       
   125 
       
   126     # Despite its name, PROTOCOL_SSLv23 selects the highest protocol
   123     # Despite its name, PROTOCOL_SSLv23 selects the highest protocol
   127     # that both ends support, including TLS protocols. On legacy stacks,
   124     # that both ends support, including TLS protocols. On legacy stacks,
   128     # the highest it likely goes in TLS 1.0. On modern stacks, it can
   125     # the highest it likely goes in TLS 1.0. On modern stacks, it can
   129     # support TLS 1.2.
   126     # support TLS 1.2.
   130     #
   127     #