]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(auth): only accept v3 X.509 certificates
authorDemi Marie Obenour <demiobenour@gmail.com>
Thu, 8 Dec 2022 20:23:50 +0000 (15:23 -0500)
committerDemi Marie Obenour <demiobenour@gmail.com>
Thu, 29 Dec 2022 23:41:10 +0000 (18:41 -0500)
commite9e4a2a6fd33d8fc21b00cfc9816a3dd3fef47fe
treea66ab3a4cf31ed9ab80ee8e2df7e1de903b3508d
parentaf467fc3d3429f2cbf62dbfe4be60a64f7fcf7df
fix(auth): only accept v3 X.509 certificates

v1 and v2 are forbidden as at least one extension is required.  Instead
of actually parsing the version number, just compare it with a
hard-coded string.

Change-Id: Ib8fd34304a0049787db77ec8c2359d0930cd4ba1
Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
drivers/auth/mbedtls/mbedtls_x509_parser.c