scep_common.h File Reference

SCEP common definitions. More...

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

Go to the source code of this file.

Data Structures

struct  ScepIssuerAndSubject
 Issuer and subject. More...
 

Macros

#define SCEP_NONCE_SIZE   16
 

Enumerations

enum  ScepMessageType {
  SCEP_MSG_TYPE_RESERVED = 0, SCEP_MSG_TYPE_CERT_REP = 3, SCEP_MSG_TYPE_RENEWAL_REQ = 17, SCEP_MSG_TYPE_PKCS_REQ = 19,
  SCEP_MSG_TYPE_CERT_POLL = 20, SCEP_MSG_TYPE_GET_CERT = 21, SCEP_MSG_TYPE_GET_CRL = 22
}
 SCEP message types. More...
 
enum  ScepPkiStatus { SCEP_PKI_STATUS_SUCCESS = 0, SCEP_PKI_STATUS_FAILURE = 2, SCEP_PKI_STATUS_PENDING = 3 }
 PKI status. More...
 
enum  ScepFailInfo {
  SCEP_FAIL_INFO_BAD_ALG = 0, SCEP_FAIL_INFO_BAD_MESSAGE_CHECK = 1, SCEP_FAIL_INFO_BAD_REQUEST = 2, SCEP_FAIL_INFO_BAD_TIME = 3,
  SCEP_FAIL_INFO_BAD_CERT_ID = 4
}
 Fail info. More...
 
enum  ScepCaCaps {
  SCEP_CA_CAPS_NONE = 0x00, SCEP_CA_CAPS_AES = 0x01, SCEP_CA_CAPS_DES3 = 0x02, SCEP_CA_CAPS_GET_NEXT_CA_CERT = 0x04,
  SCEP_CA_CAPS_POST_PKI_OPERATION = 0x08, SCEP_CA_CAPS_RENEWAL = 0x10, SCEP_CA_CAPS_SHA1 = 0x20, SCEP_CA_CAPS_SHA256 = 0x40,
  SCEP_CA_CAPS_SHA512 = 0x80
}
 CA capabilities. More...
 

Variables

const uint8_t SCEP_MESSAGE_TYPE_OID [10]
 
const uint8_t SCEP_PKI_STATUS_OID [10]
 
const uint8_t SCEP_FAIL_INFO_OID [10]
 
const uint8_t SCEP_SENDER_NONCE_OID [10]
 
const uint8_t SCEP_RECIPIENT_NONCE_OID [10]
 
const uint8_t SCEP_TRANSACTION_ID_OID [10]
 
const uint8_t SCEP_FAIL_INFO_TEXT_OID [8]
 

Detailed Description

SCEP common definitions.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2025 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
2.5.2

Definition in file scep_common.h.

Macro Definition Documentation

◆ SCEP_NONCE_SIZE

#define SCEP_NONCE_SIZE   16

Definition at line 39 of file scep_common.h.

Enumeration Type Documentation

◆ ScepCaCaps

enum ScepCaCaps

CA capabilities.

Enumerator
SCEP_CA_CAPS_NONE 

None.

SCEP_CA_CAPS_AES 

AES.

SCEP_CA_CAPS_DES3 

DES3.

SCEP_CA_CAPS_GET_NEXT_CA_CERT 

GetNextCACert.

SCEP_CA_CAPS_POST_PKI_OPERATION 

POSTPKIOperation.

SCEP_CA_CAPS_RENEWAL 

Renewal.

SCEP_CA_CAPS_SHA1 

SHA-1.

SCEP_CA_CAPS_SHA256 

SHA-256.

SCEP_CA_CAPS_SHA512 

SHA-512.

Definition at line 93 of file scep_common.h.

◆ ScepFailInfo

Fail info.

Enumerator
SCEP_FAIL_INFO_BAD_ALG 

badAlg

SCEP_FAIL_INFO_BAD_MESSAGE_CHECK 

badMessageCheck

SCEP_FAIL_INFO_BAD_REQUEST 

badRequest

SCEP_FAIL_INFO_BAD_TIME 

badTime

SCEP_FAIL_INFO_BAD_CERT_ID 

badCertId

Definition at line 79 of file scep_common.h.

◆ ScepMessageType

SCEP message types.

Enumerator
SCEP_MSG_TYPE_RESERVED 

Reserved.

SCEP_MSG_TYPE_CERT_REP 

CertRep.

SCEP_MSG_TYPE_RENEWAL_REQ 

RenewalReq.

SCEP_MSG_TYPE_PKCS_REQ 

PKCSReq.

SCEP_MSG_TYPE_CERT_POLL 

CertPoll.

SCEP_MSG_TYPE_GET_CERT 

GetCert.

SCEP_MSG_TYPE_GET_CRL 

GetCRL.

Definition at line 51 of file scep_common.h.

◆ ScepPkiStatus

PKI status.

Enumerator
SCEP_PKI_STATUS_SUCCESS 

Success.

SCEP_PKI_STATUS_FAILURE 

Failure.

SCEP_PKI_STATUS_PENDING 

Pending.

Definition at line 67 of file scep_common.h.

Variable Documentation

◆ SCEP_FAIL_INFO_OID

const uint8_t SCEP_FAIL_INFO_OID[10]
extern

Definition at line 46 of file scep_common.c.

◆ SCEP_FAIL_INFO_TEXT_OID

const uint8_t SCEP_FAIL_INFO_TEXT_OID[8]
extern

Definition at line 54 of file scep_common.c.

◆ SCEP_MESSAGE_TYPE_OID

const uint8_t SCEP_MESSAGE_TYPE_OID[10]
extern

Definition at line 42 of file scep_common.c.

◆ SCEP_PKI_STATUS_OID

const uint8_t SCEP_PKI_STATUS_OID[10]
extern

Definition at line 44 of file scep_common.c.

◆ SCEP_RECIPIENT_NONCE_OID

const uint8_t SCEP_RECIPIENT_NONCE_OID[10]
extern

Definition at line 50 of file scep_common.c.

◆ SCEP_SENDER_NONCE_OID

const uint8_t SCEP_SENDER_NONCE_OID[10]
extern

Definition at line 48 of file scep_common.c.

◆ SCEP_TRANSACTION_ID_OID

const uint8_t SCEP_TRANSACTION_ID_OID[10]
extern

Definition at line 52 of file scep_common.c.