EST response parsing. More...
#include "est/est_client.h"
#include "est/est_client_resp_parse.h"
#include "est/est_client_misc.h"
#include "pkcs7/pkcs7_parse.h"
#include "pkcs7/pkcs7_decrypt.h"
#include "pkcs7/pkcs7_sign_verify.h"
#include "pkix/x509_cert_parse.h"
#include "pkix/pem_export.h"
#include "encoding/base64.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 EST_TRACE_LEVEL |
Functions | |
error_t | estClientParseGetCaCertsResponse (EstClientContext *context) |
Parse "cacerts" response. More... | |
error_t | estClientParseSimpleEnrollResponse (EstClientContext *context) |
Parse "simpleenroll" or "simplereenroll" response. More... | |
error_t | estClientParsePkiResponse (EstClientContext *context, uint8_t *data, size_t length) |
Parse PKI message. More... | |
Detailed Description
EST 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 CycloneEST 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 est_client_resp_parse.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL EST_TRACE_LEVEL |
Definition at line 32 of file est_client_resp_parse.c.
Function Documentation
◆ estClientParseGetCaCertsResponse()
error_t estClientParseGetCaCertsResponse | ( | EstClientContext * | context | ) |
Parse "cacerts" response.
- Parameters
-
[in] context Pointer to the EST client context
- Returns
- Error code
Definition at line 59 of file est_client_resp_parse.c.
◆ estClientParsePkiResponse()
error_t estClientParsePkiResponse | ( | EstClientContext * | context, |
uint8_t * | data, | ||
size_t | length | ||
) |
Parse PKI message.
- Parameters
-
[in] context Pointer to the EST client context [in] data Pointer to the PKI message to parse [in] length Length of the PKI message
- Returns
- Error code
Definition at line 242 of file est_client_resp_parse.c.
◆ estClientParseSimpleEnrollResponse()
error_t estClientParseSimpleEnrollResponse | ( | EstClientContext * | context | ) |
Parse "simpleenroll" or "simplereenroll" response.
- Parameters
-
[in] context Pointer to the EST client context
- Returns
- Error code
Definition at line 191 of file est_client_resp_parse.c.