scep_debug.c File Reference

Data logging functions for debugging purpose (SCEP) More...

#include "scep/scep_client.h"
#include "scep/scep_debug.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define TRACE_LEVEL   SCEP_TRACE_LEVEL
 

Functions

void scepDumpMessageType (uint_t messageType)
 Dump SCEP message type. More...
 
void scepDumpPkiStatus (uint_t pkiStatus)
 Dump PKI status. More...
 
void scepDumpFailInfo (uint_t failInfo)
 Dump failure reason. More...
 
const char_tscepGetParamName (uint_t value, const ScepParamName *paramList, size_t paramListLen)
 Convert a parameter to string representation. More...
 

Variables

const ScepParamName scepMessageTypeList []
 
const ScepParamName scepPkiStatusList []
 
const ScepParamName scepFailInfoList []
 

Detailed Description

Data logging functions for debugging purpose (SCEP)

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_debug.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   SCEP_TRACE_LEVEL

Definition at line 32 of file scep_debug.c.

Function Documentation

◆ scepDumpFailInfo()

void scepDumpFailInfo ( uint_t  failInfo)

Dump failure reason.

Parameters
[in]failInfoSFailure reason

Definition at line 119 of file scep_debug.c.

◆ scepDumpMessageType()

void scepDumpMessageType ( uint_t  messageType)

Dump SCEP message type.

Parameters
[in]messageTypeSCEP message type

Definition at line 78 of file scep_debug.c.

◆ scepDumpPkiStatus()

void scepDumpPkiStatus ( uint_t  pkiStatus)

Dump PKI status.

Parameters
[in]pkiStatusPKI status

Definition at line 99 of file scep_debug.c.

◆ scepGetParamName()

const char_t* scepGetParamName ( uint_t  value,
const ScepParamName paramList,
size_t  paramListLen 
)

Convert a parameter to string representation.

Parameters
[in]valueParameter value
[in]paramListList of acceptable parameters
[in]paramListLenNumber of entries in the list
Returns
NULL-terminated string describing the parameter

Definition at line 142 of file scep_debug.c.

Variable Documentation

◆ scepFailInfoList

const ScepParamName scepFailInfoList[]
Initial value:
=
{
{SCEP_FAIL_INFO_BAD_MESSAGE_CHECK, "badMessageCheck"},
{SCEP_FAIL_INFO_BAD_REQUEST, "badRequest"},
}

Definition at line 63 of file scep_debug.c.

◆ scepMessageTypeList

const ScepParamName scepMessageTypeList[]
Initial value:
=
{
{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"},
}

Definition at line 43 of file scep_debug.c.

◆ scepPkiStatusList

const ScepParamName scepPkiStatusList[]
Initial value:
=
{
}

Definition at line 55 of file scep_debug.c.

@ SCEP_MSG_TYPE_PKCS_REQ
PKCSReq.
Definition: scep_common.h:56
@ SCEP_MSG_TYPE_CERT_REP
CertRep.
Definition: scep_common.h:54
@ SCEP_PKI_STATUS_FAILURE
Failure.
Definition: scep_common.h:70
@ SCEP_FAIL_INFO_BAD_MESSAGE_CHECK
badMessageCheck
Definition: scep_common.h:82
@ SCEP_FAIL_INFO_BAD_ALG
badAlg
Definition: scep_common.h:81
@ SCEP_PKI_STATUS_SUCCESS
Success.
Definition: scep_common.h:69
@ SCEP_FAIL_INFO_BAD_REQUEST
badRequest
Definition: scep_common.h:83
@ SCEP_MSG_TYPE_GET_CRL
GetCRL.
Definition: scep_common.h:59
@ SCEP_FAIL_INFO_BAD_CERT_ID
badCertId
Definition: scep_common.h:85
@ SCEP_MSG_TYPE_RENEWAL_REQ
RenewalReq.
Definition: scep_common.h:55
@ SCEP_FAIL_INFO_BAD_TIME
badTime
Definition: scep_common.h:84
@ SCEP_MSG_TYPE_GET_CERT
GetCert.
Definition: scep_common.h:58
@ SCEP_MSG_TYPE_RESERVED
Reserved.
Definition: scep_common.h:53
@ SCEP_MSG_TYPE_CERT_POLL
CertPoll.
Definition: scep_common.h:57
@ SCEP_PKI_STATUS_PENDING
Pending.
Definition: scep_common.h:71