scep_common.c
Go to the documentation of this file.
1 /**
2  * @file scep_common.c
3  * @brief SCEP common definitions
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2025 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneCRYPTO Open.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26  *
27  * @author Oryx Embedded SARL (www.oryx-embedded.com)
28  * @version 2.5.2
29  **/
30 
31 //Switch to the appropriate trace level
32 #define TRACE_LEVEL SCEP_TRACE_LEVEL
33 
34 //Dependencies
35 #include "scep/scep_client.h"
36 #include "scep/scep_common.h"
37 
38 //Check crypto library configuration
39 #if (SCEP_CLIENT_SUPPORT == ENABLED)
40 
41 //Message Type OID (2.16.840.1.113733.1.9.2)
42 const uint8_t SCEP_MESSAGE_TYPE_OID[10] = {0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x09, 0x02};
43 //PKI Status OID (2.16.840.1.113733.1.9.3)
44 const uint8_t SCEP_PKI_STATUS_OID[10] = {0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x09, 0x03};
45 //Fail Info OID (2.16.840.1.113733.1.9.4)
46 const uint8_t SCEP_FAIL_INFO_OID[10] = {0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x09, 0x04};
47 //Sender Nonce OID (2.16.840.1.113733.1.9.5)
48 const uint8_t SCEP_SENDER_NONCE_OID[10] = {0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x09, 0x05};
49 //Recipient Nonce OID (2.16.840.1.113733.1.9.6)
50 const uint8_t SCEP_RECIPIENT_NONCE_OID[10] = {0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x09, 0x06};
51 //Transaction ID OID (2.16.840.1.113733.1.9.7)
52 const uint8_t SCEP_TRANSACTION_ID_OID[10] = {0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x09, 0x07};
53 //Fail Info Text OID (1.3.6.1.5.5.7.24.1)
54 const uint8_t SCEP_FAIL_INFO_TEXT_OID[8] = {0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x18, 0x01};
55 
56 #endif
SCEP common definitions.
const uint8_t SCEP_PKI_STATUS_OID[10]
Definition: scep_common.c:44
const uint8_t SCEP_RECIPIENT_NONCE_OID[10]
Definition: scep_common.c:50
const uint8_t SCEP_TRANSACTION_ID_OID[10]
Definition: scep_common.c:52
const uint8_t SCEP_MESSAGE_TYPE_OID[10]
Definition: scep_common.c:42
SCEP client.
const uint8_t SCEP_SENDER_NONCE_OID[10]
Definition: scep_common.c:48
const uint8_t SCEP_FAIL_INFO_TEXT_OID[8]
Definition: scep_common.c:54
const uint8_t SCEP_FAIL_INFO_OID[10]
Definition: scep_common.c:46