summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsslcertificate/more-certificates/malformed-just-begin.pem
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-01-20 20:06:32 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-01-21 13:14:22 (GMT)
commitc86ab3fcedd3bcfa195d42d45fb732cb8315319d (patch)
treea38b1498211288ef300c7ea04050c440fc960434 /tests/auto/qsslcertificate/more-certificates/malformed-just-begin.pem
parent0a9e29a58bd501af2e52f868386b27b29ebb1a72 (diff)
downloadQt-c86ab3fcedd3bcfa195d42d45fb732cb8315319d.zip
Qt-c86ab3fcedd3bcfa195d42d45fb732cb8315319d.tar.gz
Qt-c86ab3fcedd3bcfa195d42d45fb732cb8315319d.tar.bz2
SSL Certificate: don't crash when the END CERTIFICATE line ends without CRLF
If the file/data ends in the END CERTIFICATE line without a newline, the certificate is still valid. If it's followed by anything other than a newline, then it's no longer valid. Also add another test for the BEGIN CERTIFICATE ending without newline, to ensure we don't crash there either. Reviewed-By: Peter Hartmann
Diffstat (limited to 'tests/auto/qsslcertificate/more-certificates/malformed-just-begin.pem')
-rw-r--r--tests/auto/qsslcertificate/more-certificates/malformed-just-begin.pem1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qsslcertificate/more-certificates/malformed-just-begin.pem b/tests/auto/qsslcertificate/more-certificates/malformed-just-begin.pem
new file mode 100644
index 0000000..a71aecf
--- /dev/null
+++ b/tests/auto/qsslcertificate/more-certificates/malformed-just-begin.pem
@@ -0,0 +1 @@
+-----BEGIN CERTIFICATE-----