ssh_legacy.h
Go to the documentation of this file.
1 /**
2  * @file ssh_legacy.h
3  * @brief Legacy definitions
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_LEGACY_H
32 #define _SSH_LEGACY_H
33 
34 //Deprecated definitions
35 #define SshClientConnection SshConnection
36 #define passwordCallback passwordAuthCallback
37 #define termWidthChar termWidthChars
38 #define termHeightChar termHeightRows
39 #define termWidthPixel termWidthPixels
40 #define termHeightPixel termHeightPixels
41 
42 //Deprecated functions
43 #define sshServerSetTimeout sshSetChannelTimeout
44 #define sshServerWriteChannel sshWriteChannel
45 #define sshServerReadChannel sshReadChannel
46 #define sshServerTerminateChannel sshCloseChannel
47 
48 #ifdef SSH_AES_SUPPORT
49  #define SSH_AES_128_SUPPORT SSH_AES_SUPPORT
50  #define SSH_AES_192_SUPPORT SSH_AES_SUPPORT
51  #define SSH_AES_256_SUPPORT SSH_AES_SUPPORT
52 #endif
53 
54 #ifdef SSH_CAMELLIA_SUPPORT
55  #define SSH_CAMELLIA_128_SUPPORT SSH_CAMELLIA_SUPPORT
56  #define SSH_CAMELLIA_192_SUPPORT SSH_CAMELLIA_SUPPORT
57  #define SSH_CAMELLIA_256_SUPPORT SSH_CAMELLIA_SUPPORT
58 #endif
59 
60 #define generateSignatureCallback signGenCallback
61 
62 #ifdef SCP_SERVER_STACK_SIZE
63  #define SCP_SERVER_TASK_STACK_SIZE SCP_SERVER_STACK_SIZE
64 #endif
65 
66 #ifdef SCP_SERVER_PRIORITY
67  #define SCP_SERVER_TASK_PRIORITY SCP_SERVER_PRIORITY
68 #endif
69 
70 #ifdef SFTP_SERVER_STACK_SIZE
71  #define SFTP_SERVER_TASK_STACK_SIZE SFTP_SERVER_STACK_SIZE
72 #endif
73 
74 #ifdef SFTP_SERVER_PRIORITY
75  #define SFTP_SERVER_TASK_PRIORITY SFTP_SERVER_PRIORITY
76 #endif
77 
78 #ifdef SHELL_SERVER_STACK_SIZE
79  #define SHELL_SERVER_TASK_STACK_SIZE SHELL_SERVER_STACK_SIZE
80 #endif
81 
82 #ifdef SHELL_SERVER_PRIORITY
83  #define SHELL_SERVER_TASK_PRIORITY SHELL_SERVER_PRIORITY
84 #endif
85 
86 #ifdef SSH_SERVER_STACK_SIZE
87  #define SSH_SERVER_TASK_STACK_SIZE SSH_SERVER_STACK_SIZE
88 #endif
89 
90 #ifdef SSH_SERVER_PRIORITY
91  #define SSH_SERVER_TASK_PRIORITY SSH_SERVER_PRIORITY
92 #endif
93 
94 #define SshAccessStatus SshAuthStatus
95 #define SSH_ACCESS_DENIED SSH_AUTH_STATUS_FAILURE
96 #define SSH_ACCESS_ALLOWED SSH_AUTH_STATUS_SUCCESS
97 
98 #define SshWindowChangeReqParams SshWindowChangeParams
99 #define sshParseWindowChangeReqParams sshParseWindowChangeParams
100 
101 #ifdef SSH_DH_SUPPORT
102  #define SSH_DH_KEX_SUPPORT SSH_DH_SUPPORT
103 #endif
104 
105 #ifdef SSH_ECDH_SUPPORT
106  #define SSH_ECDH_KEX_SUPPORT SSH_ECDH_SUPPORT
107 #endif
108 
109 #ifdef SSH_RSA_SUPPORT
110  #define SSH_RSA_SIGN_SUPPORT SSH_RSA_SUPPORT
111 #endif
112 
113 #ifdef SSH_DSA_SUPPORT
114  #define SSH_DSA_SIGN_SUPPORT SSH_DSA_SUPPORT
115 #endif
116 
117 #ifdef SSH_ECDSA_SUPPORT
118  #define SSH_ECDSA_SIGN_SUPPORT SSH_ECDSA_SUPPORT
119 #endif
120 
121 #ifdef SSH_ED25519_SUPPORT
122  #define SSH_ED25519_SIGN_SUPPORT SSH_ED25519_SUPPORT
123 #endif
124 
125 #ifdef SSH_ED448_SUPPORT
126  #define SSH_ED448_SIGN_SUPPORT SSH_ED448_SUPPORT
127 #endif
128 
129 #endif