Ensure that we consume all the data when decoding an SPKI
authorMatt Caswell <matt@openssl.org>
Thu, 27 May 2021 15:47:14 +0000 (16:47 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 8 Jun 2021 17:53:28 +0000 (18:53 +0100)
commitf8da1d800580fb521b450b51f9e07ad1c3c1798d
treeffb09db68942986716f1411a6e7703720e37c181
parent2b049e933a8d017fa667e69b5b0ec4437eb8d68c
Ensure that we consume all the data when decoding an SPKI

If we are decoding a SubjectPublicKeyInfo structure then we must use all
of the data and must not have bytes "left over".

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15504)
crypto/x509/x_pubkey.c