SCEP response parsing. More...
#include "scep/scep_client.h"#include "scep/scep_client_resp_parse.h"#include "scep/scep_client_misc.h"#include "scep/scep_debug.h"#include "pkcs7/pkcs7_parse.h"#include "pkcs7/pkcs7_decrypt.h"#include "pkcs7/pkcs7_sign_verify.h"#include "pkix/x509_cert_parse.h"#include "encoding/asn1.h"#include "encoding/oid.h"#include "str.h"#include "debug.h"Go to the source code of this file.
Macros | |
| #define | TRACE_LEVEL SCEP_TRACE_LEVEL |
Functions | |
| error_t | scepClientParseGetCaCapsResponse (ScepClientContext *context) |
| Parse GetCACaps response. More... | |
| error_t | scepClientParseGetCaCertResponse (ScepClientContext *context) |
| Parse GetCACert response. More... | |
| error_t | scepClientParseCertResponse (ScepClientContext *context) |
| Parse CertRep response. More... | |
| error_t | scepClientParsePkiMessage (ScepClientContext *context, const uint8_t *data, size_t length) |
| Parse PKI message. More... | |
| error_t | scepClientParsePkcsPkiEnvelope (ScepClientContext *context, uint_t messageType, const uint8_t *data, size_t length) |
| Parse pkcsPKIEnvelope structure. More... | |
| error_t | scepClientParseMessageData (ScepClientContext *context, uint_t messageType, const uint8_t *data, size_t length) |
| Parse messageData. More... | |
Detailed Description
SCEP response parsing.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2024-2025 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneSCEP 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.5.4
Definition in file scep_client_resp_parse.c.
Macro Definition Documentation
◆ TRACE_LEVEL
| #define TRACE_LEVEL SCEP_TRACE_LEVEL |
Definition at line 32 of file scep_client_resp_parse.c.
Function Documentation
◆ scepClientParseCertResponse()
| error_t scepClientParseCertResponse | ( | ScepClientContext * | context | ) |
Parse CertRep response.
- Parameters
-
[in] context Pointer to the SCEP client context
- Returns
- Error code
Definition at line 267 of file scep_client_resp_parse.c.
◆ scepClientParseGetCaCapsResponse()
| error_t scepClientParseGetCaCapsResponse | ( | ScepClientContext * | context | ) |
Parse GetCACaps response.
- Parameters
-
[in] context Pointer to the SCEP client context
- Returns
- Error code
Definition at line 58 of file scep_client_resp_parse.c.
◆ scepClientParseGetCaCertResponse()
| error_t scepClientParseGetCaCertResponse | ( | ScepClientContext * | context | ) |
Parse GetCACert response.
- Parameters
-
[in] context Pointer to the SCEP client context
- Returns
- Error code
Definition at line 160 of file scep_client_resp_parse.c.
◆ scepClientParseMessageData()
| error_t scepClientParseMessageData | ( | ScepClientContext * | context, |
| uint_t | messageType, | ||
| const uint8_t * | data, | ||
| size_t | length | ||
| ) |
Parse messageData.
- Parameters
-
[in] context Pointer to the SCEP client context [in] messageType SCEP message type [in] data Pointer to the pkcsPKIEnvelope structure to parse [in] length Length of the pkcsPKIEnvelope structure
- Returns
- Error code
Definition at line 645 of file scep_client_resp_parse.c.
◆ scepClientParsePkcsPkiEnvelope()
| error_t scepClientParsePkcsPkiEnvelope | ( | ScepClientContext * | context, |
| uint_t | messageType, | ||
| const uint8_t * | data, | ||
| size_t | length | ||
| ) |
Parse pkcsPKIEnvelope structure.
- Parameters
-
[in] context Pointer to the SCEP client context [in] messageType SCEP message type [in] data Pointer to the pkcsPKIEnvelope structure to parse [in] length Length of the pkcsPKIEnvelope structure
- Returns
- Error code
Definition at line 563 of file scep_client_resp_parse.c.
◆ scepClientParsePkiMessage()
| error_t scepClientParsePkiMessage | ( | ScepClientContext * | context, |
| const uint8_t * | data, | ||
| size_t | length | ||
| ) |
Parse PKI message.
- Parameters
-
[in] context Pointer to the SCEP client context [in] data Pointer to the PKI message to parse [in] length Length of the PKI message
- Returns
- Error code
Definition at line 318 of file scep_client_resp_parse.c.
