CSR (Certificate Signing Request) parsing. More...
#include "core/crypto.h"
#include "pkix/x509_cert_parse.h"
#include "pkix/x509_cert_ext_parse.h"
#include "pkix/x509_csr_parse.h"
#include "pkix/x509_key_parse.h"
#include "pkix/x509_sign_parse.h"
#include "encoding/asn1.h"
#include "encoding/oid.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL CRYPTO_TRACE_LEVEL |
Functions | |
error_t | x509ParseCsr (const uint8_t *data, size_t length, X509CsrInfo *csrInfo) |
Parse a CSR (Certificate Signing Request) More... | |
error_t | x509ParseCertRequestInfo (const uint8_t *data, size_t length, size_t *totalLength, X509CertRequestInfo *certReqInfo) |
Parse CertificationRequestInfo structure. More... | |
error_t | x509ParseAttributes (const uint8_t *data, size_t length, size_t *totalLength, X509Attributes *attributes) |
Parse CSR attributes. More... | |
error_t | x509ParseAttribute (const uint8_t *data, size_t length, size_t *totalLength, X509Attribute *attribute) |
Parse CSR attribute. More... | |
error_t | x509ParseChallengePassword (const uint8_t *data, size_t length, X509ChallengePassword *challengePwd) |
Parse ChallengePassword attribute. More... | |
error_t | x509ParseExtensionRequest (const uint8_t *data, size_t length, X509Extensions *extensionReq) |
Parse ExtensionRequest attribute. More... | |
Detailed Description
CSR (Certificate Signing Request) 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.
- Version
- 2.4.4
Definition in file x509_csr_parse.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL CRYPTO_TRACE_LEVEL |
Definition at line 32 of file x509_csr_parse.c.
Function Documentation
◆ x509ParseAttribute()
error_t x509ParseAttribute | ( | const uint8_t * | data, |
size_t | length, | ||
size_t * | totalLength, | ||
X509Attribute * | attribute | ||
) |
Parse CSR attribute.
- Parameters
-
[in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure [out] totalLength Number of bytes that have been parsed [out] attribute Information resulting from the parsing process
- Returns
- Error code
Definition at line 305 of file x509_csr_parse.c.
◆ x509ParseAttributes()
error_t x509ParseAttributes | ( | const uint8_t * | data, |
size_t | length, | ||
size_t * | totalLength, | ||
X509Attributes * | attributes | ||
) |
Parse CSR attributes.
- Parameters
-
[in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure [out] totalLength Number of bytes that have been parsed [out] attributes Information resulting from the parsing process
- Returns
- Error code
Definition at line 216 of file x509_csr_parse.c.
◆ x509ParseCertRequestInfo()
error_t x509ParseCertRequestInfo | ( | const uint8_t * | data, |
size_t | length, | ||
size_t * | totalLength, | ||
X509CertRequestInfo * | certReqInfo | ||
) |
Parse CertificationRequestInfo structure.
- Parameters
-
[in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure [out] totalLength Number of bytes that have been parsed [out] certReqInfo Information resulting from the parsing process
- Returns
- Error code
Definition at line 133 of file x509_csr_parse.c.
◆ x509ParseChallengePassword()
error_t x509ParseChallengePassword | ( | const uint8_t * | data, |
size_t | length, | ||
X509ChallengePassword * | challengePwd | ||
) |
Parse ChallengePassword attribute.
- Parameters
-
[in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure [out] challengePwd Information resulting from the parsing process
- Returns
- Error code
Definition at line 367 of file x509_csr_parse.c.
◆ x509ParseCsr()
error_t x509ParseCsr | ( | const uint8_t * | data, |
size_t | length, | ||
X509CsrInfo * | csrInfo | ||
) |
Parse a CSR (Certificate Signing Request)
- Parameters
-
[in] data Pointer to the CSR to parse [in] length Length of the CSR [out] csrInfo Information resulting from the parsing process
- Returns
- Error code
Definition at line 57 of file x509_csr_parse.c.
◆ x509ParseExtensionRequest()
error_t x509ParseExtensionRequest | ( | const uint8_t * | data, |
size_t | length, | ||
X509Extensions * | extensionReq | ||
) |
Parse ExtensionRequest attribute.
- Parameters
-
[in] data Pointer to the ASN.1 structure to parse [in] length Length of the ASN.1 structure [out] extensionReq Information resulting from the parsing process
- Returns
- Error code
Definition at line 399 of file x509_csr_parse.c.