mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 02:46:16 +01:00
a437a50694
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. |
||
---|---|---|
.. | ||
cert1.pem | ||
cert2.pem | ||
cert3.pem | ||
cert-crlf.pem | ||
cert-key.pem | ||
cert-list.pem | ||
key8.pem | ||
key8enc.pem | ||
key_missing-footer.pem | ||
key_missing-header.pem | ||
key-cert.pem | ||
key-crlf.pem | ||
key.pem | ||
nothing.pem |