Toggle navigation
Home
CycloneTCP
CycloneSSL
CycloneSSH
CycloneIPSEC
CycloneSTP
CycloneACME
CycloneCRYPTO
Download
Main Page
Data Structures
Files
File List
Globals
cyclone_ssh
ssh
ssh_types.h
Go to the documentation of this file.
1
/**
2
* @file ssh_types.h
3
* @brief SSH data type representations
4
*
5
* @section License
6
*
7
* SPDX-License-Identifier: GPL-2.0-or-later
8
*
9
* Copyright (C) 2019-2024 Oryx Embedded SARL. All rights reserved.
10
*
11
* This file is part of CycloneSSH 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.4.4
29
**/
30
31
#ifndef _SSH_TYPES_H
32
#define _SSH_TYPES_H
33
34
//Dependencies
35
#include "
compiler_port.h
"
36
#include "
error.h
"
37
38
//C++ guard
39
#ifdef __cplusplus
40
extern
"C"
{
41
#endif
42
43
44
/**
45
* @brief Boolean
46
**/
47
48
typedef
bool_t
SshBoolean
;
49
50
51
/**
52
* @brief String
53
**/
54
55
typedef
struct
56
{
57
const
char_t
*
value
;
58
size_t
length
;
59
}
SshString
;
60
61
62
/**
63
* @brief Binary string
64
**/
65
66
typedef
struct
67
{
68
const
uint8_t *
value
;
69
size_t
length
;
70
}
SshBinaryString
;
71
72
73
/**
74
* @brief String containing a comma-separated list of names
75
**/
76
77
typedef
struct
78
{
79
const
char_t
*
value
;
80
size_t
length
;
81
}
SshNameList
;
82
83
84
//C++ guard
85
#ifdef __cplusplus
86
}
87
#endif
88
89
#endif
bool_t
int bool_t
Definition:
compiler_port.h:53
SshBinaryString
Binary string.
Definition:
ssh_types.h:67
SshString::length
size_t length
Definition:
ssh_types.h:58
SshBinaryString::length
size_t length
Definition:
ssh_types.h:69
SshString::value
const char_t * value
Definition:
ssh_types.h:57
SshNameList
String containing a comma-separated list of names.
Definition:
ssh_types.h:78
error.h
Error codes description.
SshString
String.
Definition:
ssh_types.h:56
SshNameList::value
const char_t * value
Definition:
ssh_types.h:79
SshBinaryString::value
const uint8_t * value
Definition:
ssh_types.h:68
SshBoolean
bool_t SshBoolean
Boolean.
Definition:
ssh_types.h:48
char_t
char char_t
Definition:
compiler_port.h:48
SshNameList::length
size_t length
Definition:
ssh_types.h:80
compiler_port.h
Compiler specific definitions.