x509_csr_parse.h File Reference

CSR (Certificate Signing Request) parsing. More...

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

Go to the source code of this file.

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-2019 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
1.9.6

Definition in file x509_csr_parse.h.

Function Documentation

◆ x509ParseAttribute()

error_t x509ParseAttribute ( const uint8_t *  data,
size_t  length,
size_t *  totalLength,
X509Attribute attribute 
)

Parse CSR attribute.

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]attributeInformation resulting from the parsing process
Returns
Error code

Definition at line 303 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]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]totalLengthNumber of bytes that have been parsed
[out]attributesInformation resulting from the parsing process
Returns
Error code

Definition at line 214 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]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]totalLengthNumber of bytes that have been parsed
[out]certReqInfoInformation resulting from the parsing process
Returns
Error code

Definition at line 131 of file x509_csr_parse.c.

◆ x509ParseChallengePassword()

error_t x509ParseChallengePassword ( const uint8_t *  data,
size_t  length,
X509ChallengePassword challengePwd 
)

Parse ChallengePassword attribute.

Parameters
[in]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]challengePwdInformation resulting from the parsing process
Returns
Error code

Definition at line 365 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]dataPointer to the CSR to parse
[in]lengthLength of the CSR
[out]csrInfoInformation resulting from the parsing process
Returns
Error code

Definition at line 55 of file x509_csr_parse.c.

◆ x509ParseExtensionRequest()

error_t x509ParseExtensionRequest ( const uint8_t *  data,
size_t  length,
X509Extensions extensionReq 
)

Parse ExtensionRequest attribute.

Parameters
[in]dataPointer to the ASN.1 structure to parse
[in]lengthLength of the ASN.1 structure
[out]extensionReqInformation resulting from the parsing process
Returns
Error code

Definition at line 397 of file x509_csr_parse.c.