From 0ccd68bec6e609cce36f6fef5b1c75826b73bdbc Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 16 Apr 2022 17:49:19 -0400 Subject: calcurse-caldav: fix InsecureSSL Pass disable_ssl_certificate_validation as keyword argument to httplib2.Http(). Fixes a regression introduced in 1e1d615 (Refactor calcurse-caldav to use httplib2, 2017-09-06). Fixes GitHub issue #420. Signed-off-by: Lukas Fleischer --- contrib/caldav/calcurse-caldav.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'contrib/caldav') diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py index 3f57fdf..99e2e6a 100755 --- a/contrib/caldav/calcurse-caldav.py +++ b/contrib/caldav/calcurse-caldav.py @@ -733,9 +733,7 @@ try: # Connect to the server. if verbose: print('Connecting to ' + hostname + '...') - conn = httplib2.Http() - if insecure_ssl: - conn.disable_ssl_certificate_validation = True + conn = httplib2.Http(disable_ssl_certificate_validation=insecure_ssl) if authmethod == 'oauth2': # Authenticate with OAuth2 and authorize HTTP object -- cgit v1.2.3-70-g09d2