[PATCH] verify certificate of https server

Martin Geisler mg at lazybytes.net
Wed Apr 8 02:23:08 CDT 2009


Dimitris Glynos <dimitris at census-labs.com> writes:


> -has_https = hasattr(urllib2, 'HTTPSHandler')
> +try:
> +    from OpenSSL import SSL
> +    has_https = True
> +except ImportError:
> +    has_https = False

Will this mean that SSL support now requires pyOpenSSL, or was this
already a requirement for urllib2 to have SSL support?

> +        def __init__(self, ui):
> +            trustedcerts = {}
> +            requiresigs = False or ui.configbool("https", "requiresigs")

Is this not the same as just

  requiresigs = ui.configbool("https", "requiresigs")

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090408/51eed0d6/attachment.pgp 


More information about the Mercurial-devel mailing list