Add a TODO regarding the verification of the cert. - anticapum - Handle Università Politecnica delle Marche captive portal
 (HTM) hg clone https://bitbucket.org/iamleot/anticapum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) changeset 7416f3f46b656a7dd2881e15f9fa2c6951a0d909
 (DIR) parent 8592f71cf80b2ff69f646dfe36ccf87f9c2ae3ed
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Mon,  1 Jan 2018 01:02:11 
       
       Add a TODO regarding the verification of the cert.
       
       ATM the self-signed certificate is not verified and this is bad(TM).
       
       Diffstat:
        anticapum.py |  2 ++
        1 files changed, 2 insertions(+), 0 deletions(-)
       ---
       diff -r 8592f71cf80b -r 7416f3f46b65 anticapum.py
       --- a/anticapum.py      Mon Jan 01 01:00:00 2018 +0100
       +++ b/anticapum.py      Mon Jan 01 01:02:11 2018 +0100
       @@ -29,6 +29,8 @@
            """
            auth = parse.urlencode({ 'username': username, 'password': password })
            auth = auth.encode('utf-8')
       +
       +    # TODO: Find a way to verify the cert!
            sc = ssl.SSLContext()
            sc.verify_mode = ssl.CERT_NONE
            with request.urlopen(ANTICAPUM_URI, data=auth, context=sc) as f: