aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/ocsp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-21 21:37:45 -0500
committerJack Lloyd <[email protected]>2016-11-23 08:31:08 -0500
commitab0172b9babc0f5552f35a7dbd27076deba48c18 (patch)
treed9e77e2306748132a7d730236d7207a09258dbcc /src/tests/data/ocsp
parent54ea7886c6099a2fde17b4c1261c6e2f2b9469f1 (diff)
Add some simple OCSP tests
Nothing much but better than nothing. Also add a useful arg check to OCSP::Request constructor.
Diffstat (limited to 'src/tests/data/ocsp')
-rw-r--r--src/tests/data/ocsp/gmail.pem27
-rw-r--r--src/tests/data/ocsp/google_g2.pem24
-rw-r--r--src/tests/data/ocsp/resp1.derbin0 -> 1595 bytes
-rw-r--r--src/tests/data/ocsp/resp2.derbin0 -> 463 bytes
-rw-r--r--src/tests/data/ocsp/resp3.derbin0 -> 472 bytes
5 files changed, 51 insertions, 0 deletions
diff --git a/src/tests/data/ocsp/gmail.pem b/src/tests/data/ocsp/gmail.pem
new file mode 100644
index 000000000..f96928a64
--- /dev/null
+++ b/src/tests/data/ocsp/gmail.pem
@@ -0,0 +1,27 @@
+-----BEGIN CERTIFICATE-----
+MIIEnTCCA4WgAwIBAgIIQkg+DF+RYMYwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UE
+BhMCVVMxEzARBgNVBAoTCkdvb2dsZSBJbmMxJTAjBgNVBAMTHEdvb2dsZSBJbnRl
+cm5ldCBBdXRob3JpdHkgRzIwHhcNMTYxMTEwMTUzMDAwWhcNMTcwMjAyMTUzMDAw
+WjBjMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwN
+TW91bnRhaW4gVmlldzETMBEGA1UECgwKR29vZ2xlIEluYzESMBAGA1UEAwwJZ21h
+aWwuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuw15ghutT7Ne
+eTd1u+TXCoyDK0/XwotRrr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De39rtbCPunC9VQtlMDas4FIOjQrSTIz
+tV/xNJMR9ka57B4YLfzoTHq7w7zw+fqeebpyKa4MqOzK9kgrfASYe1YpWEy0SBBT
+4zfVLXqyr5eDeaJJjpRJEcSopc0nIN9qBCLc2K7GI54v
+-----END CERTIFICATE-----
diff --git a/src/tests/data/ocsp/google_g2.pem b/src/tests/data/ocsp/google_g2.pem
new file mode 100644
index 000000000..b663266fc
--- /dev/null
+++ b/src/tests/data/ocsp/google_g2.pem
@@ -0,0 +1,24 @@
+-----BEGIN CERTIFICATE-----
+MIID8DCCAtigAwIBAgIDAjqSMA0GCSqGSIb3DQEBCwUAMEIxCzAJBgNVBAYTAlVT
+MRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMRswGQYDVQQDExJHZW9UcnVzdCBHbG9i
+YWwgQ0EwHhcNMTUwNDAxMDAwMDAwWhcNMTcxMjMxMjM1OTU5WjBJMQswCQYDVQQG
+EwJVUzETMBEGA1UEChMKR29vZ2xlIEluYzElMCMGA1UEAxMcR29vZ2xlIEludGVy
+bmV0IEF1dGhvcml0eSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
+AJwqBHdc2FCROgajguDYUEi8iT/xGXAaiEZ+4I/F8YnOIe5a/mENtzJEiaB0C1NP
+VaTOgmKV7utZX8bhBYASxF6UP7xbSDj0U/ck5vuR6RXEz/RTDfRK/J9U3n2+oGtv
+h8DQUB8oMANA2ghzUWx//zo8pzcGjr1LEQTrfSTe5vn8MXH7lNVg8y5Kr0LSy+rE
+ahqyzFPdFUuLH8gZYR/Nnag+YyuENWllhMgZxUYi+FOVvuOAShDGKuy6lyARxzmZ
+EASg8GF6lSWMTlJ14rbtCMoU/M4iarNOz0YDl5cDfsCx3nuvRTPPuj5xt970JSXC
+DTWJnZ37DhF5iR43xa+OcmkCAwEAAaOB5zCB5DAfBgNVHSMEGDAWgBTAephojYn7
+qwVkDBF9qn1luMrMTjAdBgNVHQ4EFgQUSt0GFhu89mi1dvWBtrtiGrpagS8wDgYD
+VR0PAQH/BAQDAgEGMC4GCCsGAQUFBwEBBCIwIDAeBggrBgEFBQcwAYYSaHR0cDov
+L2cuc3ltY2QuY29tMBIGA1UdEwEB/wQIMAYBAf8CAQAwNQYDVR0fBC4wLDAqoCig
+JoYkaHR0cDovL2cuc3ltY2IuY29tL2NybHMvZ3RnbG9iYWwuY3JsMBcGA1UdIAQQ
+MA4wDAYKKwYBBAHWeQIFATANBgkqhkiG9w0BAQsFAAOCAQEACE4Ep4B/EBZDXgKt
+10KA9LCO0q6z6xF9kIQYfeeQFftJf6iZBZG7esnWPDcYCZq2x5IgBzUzCeQoY3IN
+tOAynIeYxBt2iWfBUFiwE6oTGhsypb7qEZVMSGNJ6ZldIDfM/ippURaVS6neSYLA
+EHD0LPPsvCQk0E6spdleHm2SwaesSDWB+eXknGVpzYekQVA/LlelkVESWA6MCaGs
+eqQSpSfzmhCXfVUDBvdmWF9fZOGrXW2lOUh1mEwpWjqN0yvKnFUEv/TmFNWArCbt
+F4mmk2xcpMy48GaOZON9muIAs0nH5Aqq3VuDx3CQRk6+0NtZlmwu9RY23nHMAcIS
+wSHGFg==
+-----END CERTIFICATE-----
diff --git a/src/tests/data/ocsp/resp1.der b/src/tests/data/ocsp/resp1.der
new file mode 100644
index 000000000..dd5420378
--- /dev/null
+++ b/src/tests/data/ocsp/resp1.der
Binary files differ
diff --git a/src/tests/data/ocsp/resp2.der b/src/tests/data/ocsp/resp2.der
new file mode 100644
index 000000000..ea993bf5d
--- /dev/null
+++ b/src/tests/data/ocsp/resp2.der
Binary files differ
diff --git a/src/tests/data/ocsp/resp3.der b/src/tests/data/ocsp/resp3.der
new file mode 100644
index 000000000..416678cae
--- /dev/null
+++ b/src/tests/data/ocsp/resp3.der
Binary files differ