Annotation of embedaddon/php/ext/openssl/tests/cve-2013-6420.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: CVE-2013-6420
                      3: --SKIPIF--
                      4: <?php 
                      5: if (!extension_loaded("openssl")) die("skip"); 
                      6: ?>
                      7: --FILE--
                      8: <?php
                      9: $crt = substr(__FILE__, 0, -4).'.crt';
                     10: $info = openssl_x509_parse("file://$crt");
                     11: var_dump($info['issuer']['emailAddress'], $info["validFrom_time_t"]);
                     12: ?>
                     13: Done
                     14: --EXPECTF--
                     15: %s openssl_x509_parse(): illegal ASN1 data type for timestamp in %s%ecve-2013-6420.php on line 3
                     16: string(27) "stefan.esser@sektioneins.de"
                     17: int(-1)
                     18: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>