glib/gio/tests/cert-tests
Fredrik Ternerot a437a50694 gtlscertificate: Allow any type of private key in PEM files
Allow any type of private key in PEM files by treating PEM guards ending
with "PRIVATE KEY-----" as a private key instead of looking for a
pre-defined set of PEM guards. This enables the possibility for custom
GTlsBackend to add support for new key types.

Test cases have been expanded to ensure PEM parsing works for private
key when either header or footer is missing.

Encrypted PKCS#8 is still rejected. Test case has been added for this to
ensure behaviour is the same before and after this change.
2018-12-18 11:43:08 +01:00
..
cert1.pem
cert2.pem
cert3.pem
cert-crlf.pem tests/tls-certificate: Add PEM files containing CRLF 2018-12-18 11:41:45 +01:00
cert-key.pem
cert-list.pem
key8.pem
key8enc.pem gtlscertificate: Allow any type of private key in PEM files 2018-12-18 11:43:08 +01:00
key_missing-footer.pem gtlscertificate: Allow any type of private key in PEM files 2018-12-18 11:43:08 +01:00
key_missing-header.pem gtlscertificate: Allow any type of private key in PEM files 2018-12-18 11:43:08 +01:00
key-cert.pem
key-crlf.pem tests/tls-certificate: Add PEM files containing CRLF 2018-12-18 11:41:45 +01:00
key.pem
nothing.pem