Toggle navigation
Home
CycloneTCP
CycloneSSL
CycloneSSH
CycloneIPSEC
CycloneSTP
CycloneACME
CycloneCRYPTO
Download
Main Page
Data Structures
Files
File List
Globals
cyclone_crypto
scep
scep_debug.h
Go to the documentation of this file.
1
/**
2
* @file scep_debug.h
3
* @brief Data logging functions for debugging purpose (SCEP)
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
#ifndef _SCEP_DEBUG_H
32
#define _SCEP_DEBUG_H
33
34
//Dependencies
35
#include "
core/crypto.h
"
36
37
//C++ guard
38
#ifdef __cplusplus
39
extern
"C"
{
40
#endif
41
42
43
/**
44
* @brief Parameter value/name binding
45
**/
46
47
typedef
struct
48
{
49
uint_t
value
;
50
const
char_t
*
name
;
51
}
ScepParamName
;
52
53
54
//SCEP related functions
55
void
scepDumpMessageType
(
uint_t
messageType);
56
void
scepDumpPkiStatus
(
uint_t
pkiStatus);
57
void
scepDumpFailInfo
(
uint_t
failInfo);
58
59
const
char_t
*
scepGetParamName
(
uint_t
value
,
const
ScepParamName
*paramList,
60
size_t
paramListLen);
61
62
//C++ guard
63
#ifdef __cplusplus
64
}
65
#endif
66
67
#endif
scepDumpPkiStatus
void scepDumpPkiStatus(uint_t pkiStatus)
Dump PKI status.
Definition:
scep_debug.c:99
scepDumpMessageType
void scepDumpMessageType(uint_t messageType)
Dump SCEP message type.
Definition:
scep_debug.c:78
scepGetParamName
const char_t * scepGetParamName(uint_t value, const ScepParamName *paramList, size_t paramListLen)
Convert a parameter to string representation.
Definition:
scep_debug.c:142
crypto.h
General definitions for cryptographic algorithms.
ScepParamName
Parameter value/name binding.
Definition:
scep_debug.h:48
char_t
char char_t
Definition:
compiler_port.h:55
value
uint8_t value[]
Definition:
tcp.h:376
ScepParamName::name
const char_t * name
Definition:
scep_debug.h:50
uint_t
unsigned int uint_t
Definition:
compiler_port.h:57
ScepParamName::value
uint_t value
Definition:
scep_debug.h:49
scepDumpFailInfo
void scepDumpFailInfo(uint_t failInfo)
Dump failure reason.
Definition:
scep_debug.c:119