This website requires JavaScript.
Explore
Help
Sign in
wbrawner
/
openssl
Watch
1
Star
0
Fork
You've already forked openssl
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
d90d853795
openssl
/
test
/
recipes
/
04-test_pem_data
/
wellknown
2 lines
10 B
Text
Raw
Normal View
History
Unescape
Escape
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)
2017-02-23 20:28:32 +00:00
wellknown
Reference in a new issue
Copy permalink