summaryrefslogtreecommitdiff
path: root/test/recipes/04-test_pem_data/dsa-257line.pem
diff options
context:
space:
mode:
authorBenjamin Kaduk <bkaduk@akamai.com>2017-02-23 14:28:32 -0600
committerRichard Levitte <levitte@openssl.org>2017-02-28 21:23:26 +0100
commite8cee55718bb9cb957f449fbe7145a77f252bb73 (patch)
treea62a7b048051a3df2dc363293032b84310b55650 /test/recipes/04-test_pem_data/dsa-257line.pem
parent5ea564f154ebe8bda2a0e091a312e2058edf437f (diff)
downloadopenssl-new-e8cee55718bb9cb957f449fbe7145a77f252bb73.tar.gz
Add test corpus for PEM reading
Generate a fresh certificate and DSA private key in their respective PEM files. Modify the resulting ASCII in various ways so as to produce input files that might be generated by non-openssl programs (openssl always generates "standard" PEM files, with base64 data in 64-character lines except for a possible shorter last line). Exercise various combinations of line lengths, leading/trailing whitespace, non-base64 characters, comments, and padding, for both unencrypted and encrypted files. (We do not have any other test coverage that uses encrypted files, as far as I can see, and the parser enforces different rules for the body of encrypted files.) Add a recipe to parse these test files and verify that they contain the expected string or are rejected, according to the expected status. Some of the current behavior is perhaps suboptimal and could be revisited. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2756)
Diffstat (limited to 'test/recipes/04-test_pem_data/dsa-257line.pem')
-rw-r--r--test/recipes/04-test_pem_data/dsa-257line.pem20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/recipes/04-test_pem_data/dsa-257line.pem b/test/recipes/04-test_pem_data/dsa-257line.pem
new file mode 100644
index 0000000000..a73d70054d
--- /dev/null
+++ b/test/recipes/04-test_pem_data/dsa-257line.pem
@@ -0,0 +1,20 @@
+-----BEGIN DSA PRIVATE KEY-----
+Proc-Type: 4,ENCRYPTED
+DEK-Info: AES-256-CBC,A2A7FA3E5E454B59C8777564E7AF3CD6
+
+EBDWX0Qfarl+QNsHgCUudLyb6DkC4zyaDU/vUqWyHX0m+8W2bbmT5TexlL3hsM5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