x509_crl_parse.h File Reference

CRL (Certificate Revocation List) parsing. More...

#include "core/crypto.h"
#include "pkix/x509_common.h"

Go to the source code of this file.

Functions

error_t x509ParseCrl (const uint8_t *data, size_t length, X509CrlInfo *crlInfo)
 Parse a CRL (Certificate Revocation List) More...
 
error_t x509ParseTbsCertList (const uint8_t *data, size_t length, size_t *totalLength, X509TbsCertList *tbsCertList)
 Parse TBSCertList structure. More...
 
error_t x509ParseCrlVersion (const uint8_t *data, size_t length, size_t *totalLength, X509Version *version)
 Parse Version field. More...
 
error_t x509ParseRevokedCertificates (const uint8_t *data, size_t length, size_t *totalLength, X509TbsCertList *tbsCertList)
 Parse RevokedCertificates field. More...
 
error_t x509ParseRevokedCertificate (const uint8_t *data, size_t length, size_t *totalLength, X509RevokedCertificate *revokedCertificate)
 Parse RevokedCertificate field. More...
 

Detailed Description

CRL (Certificate Revocation List) parsing.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneCRYPTO Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.0

Definition in file x509_crl_parse.h.

Function Documentation

◆ x509ParseCrl()

error_t x509ParseCrl ( const uint8_t *  data,
size_t  length,
X509CrlInfo crlInfo 
)

Parse a CRL (Certificate Revocation List)

Parameters
[in]dataPointer to the CRL to parse
[in]lengthLength of the CRL
[out]crlInfoInformation resulting from the parsing process
Returns
Error code

Definition at line 56 of file x509_crl_parse.c.

◆ x509ParseCrlVersion()

error_t x509ParseCrlVersion ( const uint8_t *  data,
size_t  length,
size_t *  totalLength,
X509Version version 
)

Parse Version field.

Parameters
[in]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]totalLengthNumber of bytes that have been parsed
[out]versionInformation resulting from the parsing process
Returns
Error code

Definition at line 251 of file x509_crl_parse.c.

◆ x509ParseRevokedCertificate()

error_t x509ParseRevokedCertificate ( const uint8_t *  data,
size_t  length,
size_t *  totalLength,
X509RevokedCertificate revokedCertificate 
)

Parse RevokedCertificate field.

Parameters
[in]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]totalLengthNumber of bytes that have been parsed
[out]revokedCertificateInformation resulting from the parsing process
Returns
Error code

Definition at line 384 of file x509_crl_parse.c.

◆ x509ParseRevokedCertificates()

error_t x509ParseRevokedCertificates ( const uint8_t *  data,
size_t  length,
size_t *  totalLength,
X509TbsCertList tbsCertList 
)

Parse RevokedCertificates field.

Parameters
[in]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]totalLengthNumber of bytes that have been parsed
[out]tbsCertListInformation resulting from the parsing process
Returns
Error code

Definition at line 307 of file x509_crl_parse.c.

◆ x509ParseTbsCertList()

error_t x509ParseTbsCertList ( const uint8_t *  data,
size_t  length,
size_t *  totalLength,
X509TbsCertList tbsCertList 
)

Parse TBSCertList structure.

Parameters
[in]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]totalLengthNumber of bytes that have been parsed
[out]tbsCertListInformation resulting from the parsing process
Returns
Error code

Definition at line 134 of file x509_crl_parse.c.