• B
    Add test corpus for PEM reading · e8cee557
    Benjamin Kaduk 提交于
    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: NRich Salz <rsalz@openssl.org>
    Reviewed-by: NRichard Levitte <levitte@openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/2756)
    e8cee557
dsa-onecolumn.pem 2.4 KB