Accept a trailing space at end of PEM lines

With certs being copy-pasted from webmails and all, this will probably become
more and more common.

closes #226
This commit is contained in:
Manuel Pégourié-Gonnard
2015-07-31 11:09:59 +02:00
parent e96ce08a21
commit 052d10c9d5
4 changed files with 55 additions and 0 deletions

View File

@@ -1368,3 +1368,7 @@ x509parse_crt_file:"data_files/server7_pem_space.crt":1
X509 File parse (all certificates fail)
depends_on:MBEDTLS_ECP_C
x509parse_crt_file:"data_files/server7_all_space.crt":MBEDTLS_ERR_PEM_INVALID_DATA + MBEDTLS_ERR_BASE64_INVALID_CHARACTER
X509 File parse (trailing spaces, OK)
depends_on:MBEDTLS_ECP_C:MBEDTLS_ECP_DP_SECP256R1_ENABLED
x509parse_crt_file:"data_files/server7_trailing_space.crt":0