Order object management. More...
#include "acme/acme_client.h"
#include "acme/acme_client_order.h"
#include "acme/acme_client_jose.h"
#include "acme/acme_client_misc.h"
#include "encoding/base64url.h"
#include "jansson.h"
#include "jansson_private.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL ACME_TRACE_LEVEL |
Detailed Description
Order object management.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2019-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneACME 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 acme_client_order.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL ACME_TRACE_LEVEL |
Definition at line 32 of file acme_client_order.c.
Function Documentation
◆ acmeClientCheckOrderParams()
error_t acmeClientCheckOrderParams | ( | const AcmeOrderParams * | params | ) |
Check certificate order information.
- Parameters
-
[in] params Certificate order information
- Returns
- Error code
Definition at line 54 of file acme_client_order.c.
◆ acmeClientFormatFinalizeOrderRequest()
error_t acmeClientFormatFinalizeOrderRequest | ( | AcmeClientContext * | context | ) |
Format HTTP request body (order's finalize URL)
- Parameters
-
[in] context Pointer to the ACME client context
- Returns
- Error code
Definition at line 865 of file acme_client_order.c.
◆ acmeClientFormatNewOrderRequest()
error_t acmeClientFormatNewOrderRequest | ( | AcmeClientContext * | context, |
const AcmeOrderParams * | params | ||
) |
Format HTTP request body (newOrder URL)
- Parameters
-
[in] context Pointer to the ACME client context [in] params Certificate order information
- Returns
- Error code
Definition at line 271 of file acme_client_order.c.
◆ acmeClientFormatOrderStatusRequest()
error_t acmeClientFormatOrderStatusRequest | ( | AcmeClientContext * | context | ) |
Format HTTP request body (order URL)
- Parameters
-
[in] context Pointer to the ACME client context
- Returns
- Error code
Definition at line 647 of file acme_client_order.c.
◆ acmeClientInitOrder()
error_t acmeClientInitOrder | ( | AcmeClientContext * | context, |
const AcmeOrderParams * | params | ||
) |
Initialize order object.
- Parameters
-
[in] context Pointer to the ACME client context [in] params Certificate order information
- Returns
- Error code
Definition at line 131 of file acme_client_order.c.
◆ acmeClientParseFinalizeOrderResponse()
error_t acmeClientParseFinalizeOrderResponse | ( | AcmeClientContext * | context | ) |
Parse HTTP response (order's finalize URL)
- Parameters
-
[in] context Pointer to the ACME client context
- Returns
- Error code
Definition at line 955 of file acme_client_order.c.
◆ acmeClientParseNewOrderResponse()
error_t acmeClientParseNewOrderResponse | ( | AcmeClientContext * | context | ) |
Parse HTTP response (newOrder URL)
- Parameters
-
[in] context Pointer to the ACME client context
- Returns
- Error code
Definition at line 399 of file acme_client_order.c.
◆ acmeClientParseOrderStatus()
AcmeOrderStatus acmeClientParseOrderStatus | ( | const char_t * | label | ) |
Parse order status field.
- Parameters
-
[in] label Textual representation of the status
- Returns
- Order status code
Definition at line 976 of file acme_client_order.c.
◆ acmeClientParseOrderStatusResponse()
error_t acmeClientParseOrderStatusResponse | ( | AcmeClientContext * | context | ) |
Parse HTTP response (order URL)
- Parameters
-
[in] context Pointer to the ACME client context
- Returns
- Error code
Definition at line 684 of file acme_client_order.c.
◆ acmeClientSendFinalizeOrderRequest()
error_t acmeClientSendFinalizeOrderRequest | ( | AcmeClientContext * | context | ) |
Send HTTP request (order's finalize URL)
- Parameters
-
[in] context Pointer to the ACME client context
- Returns
- Error code
Definition at line 778 of file acme_client_order.c.
◆ acmeClientSendNewOrderRequest()
error_t acmeClientSendNewOrderRequest | ( | AcmeClientContext * | context, |
const AcmeOrderParams * | params | ||
) |
Send HTTP request (newOrder URL)
- Parameters
-
[in] context Pointer to the ACME client context [in] params Certificate order information
- Returns
- Error code
Definition at line 182 of file acme_client_order.c.
◆ acmeClientSendOrderStatusRequest()
error_t acmeClientSendOrderStatusRequest | ( | AcmeClientContext * | context | ) |
Send HTTP request (order URL)
- Parameters
-
[in] context Pointer to the ACME client context
- Returns
- Error code
Definition at line 561 of file acme_client_order.c.