[pywin32-checkins] pywin32/win32/Lib sspi.py,1.4,1.5
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2009-01-07 06:03:35
|
Update of /cvsroot/pywin32/pywin32/win32/Lib In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4367/win32/Lib Modified Files: sspi.py Log Message: Move most tests and demos to using pywin32_testutil helpers, particularly for tests involving bytes and buffers. Some tests raise TestSkipped when appropriate and other minor test fixes. Index: sspi.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Lib/sspi.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** sspi.py 14 Nov 2008 00:22:25 -0000 1.4 --- sspi.py 7 Jan 2009 06:03:29 -0000 1.5 *************** *** 218,225 **** if err==0: break ! sig = sspiclient.sign("hello") ! sspiserver.verify("hello", sig) ! data, key = sspiclient.encrypt("hello") ! assert sspiserver.decrypt(data, key) == "hello" print "cool!" --- 218,226 ---- if err==0: break ! data = "hello".encode("ascii") # py3k-friendly ! sig = sspiclient.sign(data) ! sspiserver.verify(data, sig) ! data, key = sspiclient.encrypt(data) ! assert sspiserver.decrypt(data, key) == data print "cool!" |