pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security/py-tlslite



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Sun Jul 29 10:04:00 UTC 2018

Modified Files:
        pkgsrc/security/py-tlslite: distinfo
Added Files:
        pkgsrc/security/py-tlslite/patches: patch-tlslite_tlsconnection.py

Log Message:
Rename 'async' parameter (Python 3.7 keyword).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/security/py-tlslite/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/py-tlslite/patches/patch-tlslite_tlsconnection.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/py-tlslite/distinfo
diff -u pkgsrc/security/py-tlslite/distinfo:1.4 pkgsrc/security/py-tlslite/distinfo:1.5
--- pkgsrc/security/py-tlslite/distinfo:1.4     Sun Jul 23 22:30:03 2017
+++ pkgsrc/security/py-tlslite/distinfo Sun Jul 29 10:04:00 2018
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2017/07/23 22:30:03 schmonz Exp $
+$NetBSD: distinfo,v 1.5 2018/07/29 10:04:00 schmonz Exp $
 
 SHA1 (tlslite-0.4.9-cd82fadb6bb958522b7457c5ed95890283437a4f.tar.gz) = 8a9fbc90114fbaa468ada9860fe37581c8687a18
 RMD160 (tlslite-0.4.9-cd82fadb6bb958522b7457c5ed95890283437a4f.tar.gz) = 0cd0a71f9c4a8acacc87b1afe39a8cb8e744e2d8
@@ -7,3 +7,4 @@ Size (tlslite-0.4.9-cd82fadb6bb958522b74
 SHA1 (patch-setup.py) = fdb3ce8d0ce0bbee4e10ef76e768d83d3a180189
 SHA1 (patch-tests_httpsserver.sh) = e2f20d886acad8366938b3214bafd270a4560745
 SHA1 (patch-tests_tlstest.py) = abd577315a1f690fb280b9ed58f0e73e6ebbdf4d
+SHA1 (patch-tlslite_tlsconnection.py) = 71f492c8d9b7a62e78e49510469fbc2b030c7a93

Added files:

Index: pkgsrc/security/py-tlslite/patches/patch-tlslite_tlsconnection.py
diff -u /dev/null pkgsrc/security/py-tlslite/patches/patch-tlslite_tlsconnection.py:1.1
--- /dev/null   Sun Jul 29 10:04:00 2018
+++ pkgsrc/security/py-tlslite/patches/patch-tlslite_tlsconnection.py   Sun Jul 29 10:04:00 2018
@@ -0,0 +1,126 @@
+$NetBSD: patch-tlslite_tlsconnection.py,v 1.1 2018/07/29 10:04:00 schmonz Exp $
+
+Rename 'async' parameter (Python 3.7 keyword).
+
+--- tlslite/tlsconnection.py.orig      2015-08-12 05:54:36.000000000 +0000
++++ tlslite/tlsconnection.py
+@@ -68,7 +68,7 @@ class TLSConnection(TLSRecordLayer):
+ 
+     def handshakeClientAnonymous(self, session=None, settings=None, 
+                                 checker=None, serverName="",
+-                                async=False):
++                                tlslite_async=False):
+         """Perform an anonymous handshake in the role of client.
+ 
+         This function performs an SSL or TLS handshake using an
+@@ -102,8 +102,8 @@ class TLSConnection(TLSRecordLayer):
+         @type serverName: string
+         @param serverName: The ServerNameIndication TLS Extension.
+ 
+-        @type async: bool
+-        @param async: If False, this function will block until the
++        @type tlslite_async: bool
++        @param tlslite_async: If False, this function will block until the
+         handshake is completed.  If True, this function will return a
+         generator.  Successive invocations of the generator will
+         return 0 if it is waiting to read from the socket, 1 if it is
+@@ -111,7 +111,7 @@ class TLSConnection(TLSRecordLayer):
+         the handshake operation is completed.
+ 
+         @rtype: None or an iterable
+-        @return: If 'async' is True, a generator object will be
++        @return: If 'tlslite_async' is True, a generator object will be
+         returned.
+ 
+         @raise socket.error: If a socket error occurs.
+@@ -126,7 +126,7 @@ class TLSConnection(TLSRecordLayer):
+                                                 settings=settings,
+                                                 checker=checker,
+                                                 serverName=serverName)
+-        if async:
++        if tlslite_async:
+             return handshaker
+         for result in handshaker:
+             pass
+@@ -134,7 +134,7 @@ class TLSConnection(TLSRecordLayer):
+     def handshakeClientSRP(self, username, password, session=None,
+                            settings=None, checker=None, 
+                            reqTack=True, serverName="",
+-                           async=False):
++                           tlslite_async=False):
+         """Perform an SRP handshake in the role of client.
+ 
+         This function performs a TLS/SRP handshake.  SRP mutually
+@@ -179,8 +179,8 @@ class TLSConnection(TLSRecordLayer):
+         @type serverName: string
+         @param serverName: The ServerNameIndication TLS Extension.
+ 
+-        @type async: bool
+-        @param async: If False, this function will block until the
++        @type tlslite_async: bool
++        @param tlslite_async: If False, this function will block until the
+         handshake is completed.  If True, this function will return a
+         generator.  Successive invocations of the generator will
+         return 0 if it is waiting to read from the socket, 1 if it is
+@@ -188,7 +188,7 @@ class TLSConnection(TLSRecordLayer):
+         the handshake operation is completed.
+ 
+         @rtype: None or an iterable
+-        @return: If 'async' is True, a generator object will be
++        @return: If 'tlslite_async' is True, a generator object will be
+         returned.
+ 
+         @raise socket.error: If a socket error occurs.
+@@ -206,9 +206,9 @@ class TLSConnection(TLSRecordLayer):
+         # fashion, returning 1 when it is waiting to able to write, 0 when
+         # it is waiting to read.
+         #
+-        # If 'async' is True, the generator is returned to the caller, 
++        # If 'tlslite_async' is True, the generator is returned to the caller, 
+         # otherwise it is executed to completion here.  
+-        if async:
++        if tlslite_async:
+             return handshaker
+         for result in handshaker:
+             pass
+@@ -216,7 +216,7 @@ class TLSConnection(TLSRecordLayer):
+     def handshakeClientCert(self, certChain=None, privateKey=None,
+                             session=None, settings=None, checker=None,
+                             nextProtos=None, reqTack=True, serverName="",
+-                            async=False):
++                            tlslite_async=False):
+         """Perform a certificate-based handshake in the role of client.
+ 
+         This function performs an SSL or TLS handshake.  The server
+@@ -273,8 +273,8 @@ class TLSConnection(TLSRecordLayer):
+         @type serverName: string
+         @param serverName: The ServerNameIndication TLS Extension.
+ 
+-        @type async: bool
+-        @param async: If False, this function will block until the
++        @type tlslite_async: bool
++        @param tlslite_async: If False, this function will block until the
+         handshake is completed.  If True, this function will return a
+         generator.  Successive invocations of the generator will
+         return 0 if it is waiting to read from the socket, 1 if it is
+@@ -282,7 +282,7 @@ class TLSConnection(TLSRecordLayer):
+         the handshake operation is completed.
+ 
+         @rtype: None or an iterable
+-        @return: If 'async' is True, a generator object will be
++        @return: If 'tlslite_async' is True, a generator object will be
+         returned.
+ 
+         @raise socket.error: If a socket error occurs.
+@@ -301,9 +301,9 @@ class TLSConnection(TLSRecordLayer):
+         # fashion, returning 1 when it is waiting to able to write, 0 when
+         # it is waiting to read.
+         #
+-        # If 'async' is True, the generator is returned to the caller, 
++        # If 'tlslite_async' is True, the generator is returned to the caller, 
+         # otherwise it is executed to completion here.                        
+-        if async:
++        if tlslite_async:
+             return handshaker
+         for result in handshaker:
+             pass



Home | Main Index | Thread Index | Old Index