]> granicus.if.org Git - python/commitdiff
Merged revisions 80557 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 27 Apr 2010 22:08:08 +0000 (22:08 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 27 Apr 2010 22:08:08 +0000 (22:08 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

(the bug was already fixed in py3k, just merging in the tests)

........
  r80557 | antoine.pitrou | 2010-04-28 00:03:37 +0200 (mer., 28 avril 2010) | 4 lines

  Issue #8086: In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline
  before the certificate footer.  Patch by Kyle VanderBeek.
........

Lib/test/test_ssl.py
Misc/ACKS

index 5e659c24ea1ba1e7275046c0039eb9855b09d75d..012b8bf8fa45811de3985a9f7b16cc08633568ed 100644 (file)
@@ -95,6 +95,10 @@ class BasicTests(unittest.TestCase):
         p2 = ssl.DER_cert_to_PEM_cert(d1)
         d2 = ssl.PEM_cert_to_DER_cert(p2)
         self.assertEqual(d1, d2)
+        if not p2.startswith(ssl.PEM_HEADER + '\n'):
+            self.fail("DER-to-PEM didn't include correct header:\n%r\n" % p2)
+        if not p2.endswith('\n' + ssl.PEM_FOOTER + '\n'):
+            self.fail("DER-to-PEM didn't include correct footer:\n%r\n" % p2)
 
     def test_openssl_version(self):
         n = ssl.OPENSSL_VERSION_NUMBER
index 8755409bd2628e176b494351ce49b12f557925a9..830d582d2733a5d3982f5bac6695018106c76bf2 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -788,6 +788,7 @@ Michael Urman
 Hector Urtubia
 Andi Vajda
 Case Van Horsen
+Kyle VanderBeek
 Atul Varma
 Dmitry Vasiliev
 Alexandre Vassalotti