| From 00456fded43eadd4bb94bf675ae4ea5d158a764f Mon Sep 17 00:00:00 2001 |
| From: "Dr. Stephen Henson" <steve@openssl.org> |
| Date: Wed, 4 Nov 2015 13:30:03 +0000 |
| Subject: [PATCH] Add test for CVE-2015-3194 |
| |
| Reviewed-by: Richard Levitte <levitte@openssl.org> |
| |
| Upstream-Status: Backport |
| |
| This patch was imported from |
| https://git.openssl.org/?p=openssl.git;a=commit;h=00456fded43eadd4bb94bf675ae4ea5d158a764f |
| Signed-off-by: Armin Kuster <akuster@mvista.com> |
| |
| --- |
| test/certs/pss1.pem | 21 +++++++++++++++++++++ |
| test/tx509 | 7 +++++++ |
| 2 files changed, 28 insertions(+) |
| create mode 100644 test/certs/pss1.pem |
| |
| diff --git a/test/certs/pss1.pem b/test/certs/pss1.pem |
| new file mode 100644 |
| index 0000000..29da71d |
| --- /dev/null |
| +++ b/test/certs/pss1.pem |
| @@ -0,0 +1,21 @@ |
| +-----BEGIN CERTIFICATE----- |
| +MIIDdjCCAjqgAwIBAgIJANcwZLyfEv7DMD4GCSqGSIb3DQEBCjAxoA0wCwYJYIZI |
| +AWUDBAIBoRowGAYJKoZIhvcNAQEIMAsGCWCGSAFlAwQCAaIEAgIA3jAnMSUwIwYD |
| +VQQDDBxUZXN0IEludmFsaWQgUFNTIGNlcnRpZmljYXRlMB4XDTE1MTEwNDE2MDIz |
| +NVoXDTE1MTIwNDE2MDIzNVowJzElMCMGA1UEAwwcVGVzdCBJbnZhbGlkIFBTUyBj |
| +ZXJ0aWZpY2F0ZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMTaM7WH |
| +qVCAGAIA+zL1KWvvASTrhlq+1ePdO7wsrWX2KiYoTYrJYTnxhLnn0wrHqApt79nL |
| +IBG7cfShyZqFHOY/IzlYPMVt+gPo293gw96Fds5JBsjhjkyGnOyr9OUntFqvxDbT |
| +IIFU7o9IdxD4edaqjRv+fegVE+B79pDk4s0ujsk6dULtCg9Rst0ucGFo19mr+b7k |
| +dbfn8pZ72ZNDJPueVdrUAWw9oll61UcYfk75XdrLk6JlL41GrYHc8KlfXf43gGQq |
| +QfrpHkg4Ih2cI6Wt2nhFGAzrlcorzLliQIUJRIhM8h4IgDfpBpaPdVQLqS2pFbXa |
| +5eQjqiyJwak2vJ8CAwEAAaNQME4wHQYDVR0OBBYEFCt180N4oGUt5LbzBwQ4Ia+2 |
| +4V97MB8GA1UdIwQYMBaAFCt180N4oGUt5LbzBwQ4Ia+24V97MAwGA1UdEwQFMAMB |
| +Af8wMQYJKoZIhvcNAQEKMCSgDTALBglghkgBZQMEAgGhDTALBgkqhkiG9w0BAQii |
| +BAICAN4DggEBAAjBtm90lGxgddjc4Xu/nbXXFHVs2zVcHv/mqOZoQkGB9r/BVgLb |
| +xhHrFZ2pHGElbUYPfifdS9ztB73e1d4J+P29o0yBqfd4/wGAc/JA8qgn6AAEO/Xn |
| +plhFeTRJQtLZVl75CkHXgUGUd3h+ADvKtcBuW9dSUncaUrgNKR8u/h/2sMG38RWY |
| +DzBddC/66YTa3r7KkVUfW7yqRQfELiGKdcm+bjlTEMsvS+EhHup9CzbpoCx2Fx9p |
| +NPtFY3yEObQhmL1JyoCRWqBE75GzFPbRaiux5UpEkns+i3trkGssZzsOuVqHNTNZ |
| +lC9+9hPHIoc9UMmAQNo1vGIW3NWVoeGbaJ8= |
| +-----END CERTIFICATE----- |
| diff --git a/test/tx509 b/test/tx509 |
| index 0ce3b52..77f5cac 100644 |
| --- a/test/tx509 |
| +++ b/test/tx509 |
| @@ -74,5 +74,12 @@ if [ $? != 0 ]; then exit 1; fi |
| cmp x509-f.p x509-ff.p3 |
| if [ $? != 0 ]; then exit 1; fi |
| |
| +echo "Parsing test certificates" |
| + |
| +$cmd -in certs/pss1.pem -text -noout >/dev/null |
| +if [ $? != 0 ]; then exit 1; fi |
| + |
| +echo OK |
| + |
| /bin/rm -f x509-f.* x509-ff.* x509-fff.* |
| exit 0 |
| -- |
| 2.3.5 |
| |