Files
mbedtls/include
Andres Amaya Garcia 98dc01ba67 Parse CertStatus in OCSP response
Populate the function x509_ocsp_get_cert_status() with code that parses
the following ASN.1 structure:

   CertStatus ::= CHOICE {
       good        [0]     IMPLICIT NULL,
       revoked     [1]     IMPLICIT RevokedInfo,
       unknown     [2]     IMPLICIT UnknownInfo }

x509_ocsp_get_cert_status() parses the top level CHOICE and IMPLICIT
components. In the case of status good and unknown, their value is both
expected to be NULL because according to RFC 6960 Section 4.2:

   UnknownInfo ::= NULL

Therefore, no further parsing is needed here. In the case of status
revoked, the parsing of Revoked info is delegated to a helper function.
2017-11-11 12:49:19 +00:00
..
2017-11-11 12:49:19 +00:00
2015-03-10 11:23:56 +00:00