38 #define SSH_SECURE_SHELL_IANA_ASSIGNED_PORT ( 22 ) 42 #define SSH_CONNECTION_TIMEOUT_IN_SECS ( 360 ) 44 #define SSH_CONNECTION_TIMEOUT_IN_SECS ( 180 ) 49 #define SSH_RSA_KEY_DEFAULT_1024 ( 1024 ) 52 #define SSH_DSS_KEY_DEFAULT_512 ( 512 ) 57 #define SSH_ERROR_FAILED_NEGOTIATION (-301) 58 #define SSH_ERROR_FAILED_SESSION_FAILED (-300) 61 #define SSH_KEY_RSA ( 1 ) 62 #define SSH_KEY_DSS ( 2 ) 91 typedef int ( *sshUserAuthenticateFn )(
const char* usernamePtr,
92 const char* passuint16_tPtr );
110 void SshSetUserAuthenticate( sshUserAuthenticateFn sshUserAuthenticateFnPtr );
111 sshUserAuthenticateFn SshGetUserAuthenticate(
void );
137 typedef int ( *sshUserGetKeyFn )(
int keyRequested,
138 const unsigned char** keyBufferPtr,
int* keyLengthPtr );
156 void SshSetUserGetKey( sshUserGetKeyFn sshUserGetKeyFnPtr );
157 sshUserGetKeyFn SshGetUserGetKey(
void );
180 int SshConvertDecodedOpenSSLKey(
unsigned char* dropbearKeyPtr,
181 const unsigned char* openKeyPtr,
unsigned int openKeyLength,
204 BOOL SshValidateKey(
const char* candidateKey,
int candidateKeySize,
225 BOOL SshWritePublicKey(
int publicKeyFd,
unsigned char *candidateKey,
226 int candidateKeySize );
248 typedef int ( *sshChannelSessionRequestFn )(
const char* requestTypePtr );
267 void SshSetchansessionrequest( sshChannelSessionRequestFn FnPtr );
295 int SshAccept(
int listenFd,
IPADDR* clientAddress, uint16_t* securePort,
316 void* SshNegotiateSession( FILE* acceptedSocketFILEptr );
335 void SshPrintStatistics(
int secureFd );
354 int SshGetKeySize(
int keyType );
374 BOOL SshSetTaskPriority(uint8_t taskPriority);
Used to hold and manipulate IPv4 and IPv6 addresses in dual stack mode.
Definition: ipv6_addr.h:28