_SshConnection Struct Reference
SSH connection. More...
#include <ssh.h>
Data Fields | |
SshConnectionState | state |
Connection state. More... | |
SshRequestState | requestState |
Global request state. More... | |
SshContext * | context |
SSH context. More... | |
Socket * | socket |
Underlying socket. More... | |
systime_t | timestamp |
Time stamp to manage connection timeout. More... | |
char_t | clientId [SSH_MAX_ID_LEN+1] |
Client's identification string. More... | |
char_t | serverId [SSH_MAX_ID_LEN+1] |
Server's identification string. More... | |
uint8_t | cookie [SSH_COOKIE_SIZE] |
Random value generated by the sender. More... | |
char_t | user [SSH_MAX_USERNAME_LEN+1] |
User name. More... | |
char_t | passwordChangePrompt [SSH_MAX_PASSWORD_CHANGE_PROMPT_LEN+1] |
Password change prompt string. More... | |
const char_t * | kexAlgo |
Selected key exchange algorithm name. More... | |
const char_t * | serverHostKeyAlgo |
Selected server's host key algorithm name. More... | |
const char_t * | clientEncAlgo |
Selected client's encryption algorithm name. More... | |
const char_t * | serverEncAlgo |
Selected server's encryption algorithm name. More... | |
const char_t * | clientMacAlgo |
Selected client's MAC algorithm name. More... | |
const char_t * | serverMacAlgo |
Selected server's MAC algorithm name. More... | |
const char_t * | clientCompressAlgo |
Selected client's encryption algorithm name. More... | |
const char_t * | serverCompressAlgo |
Selected server's encryption algorithm name. More... | |
int_t | hostKeyIndex |
Index of the selected host key. More... | |
int_t | rsaKeyIndex |
Index of the transient RSA key to use. More... | |
uint8_t * | serverHostKey |
Server's host key. More... | |
size_t | serverHostKeyLen |
Length of the server's host key, in bytes. More... | |
int_t | dhGexGroupIndex |
Index of the selected Diffie-Hellman group. More... | |
uint8_t | sessionId [SSH_MAX_HASH_DIGEST_SIZE] |
Session identifier. More... | |
size_t | sessionIdLen |
Length of the session identifier, in bytes. More... | |
uint8_t | h [SSH_MAX_HASH_DIGEST_SIZE] |
Exchange hash H. More... | |
size_t | hLen |
Length of the exchange hash, in bytes. More... | |
uint8_t | k [SSH_MAX_SHARED_SECRET_LEN] |
Shared secret K. More... | |
size_t | kLen |
Length of the shared secret, in bytes. More... | |
const HashAlgo * | hashAlgo |
Exchange hash algorithm. More... | |
HashContext | hashContext |
Exchange hash context. More... | |
HmacContext | hmacContext |
HMAC context. More... | |
DhContext | dhContext |
Diffie-Hellman context. More... | |
EcdhContext | ecdhContext |
ECDH context. More... | |
KemContext | kemContext |
KEM context. More... | |
SshEncryptionEngine | encryptionEngine |
Encryption engine. More... | |
SshEncryptionEngine | decryptionEngine |
Decryption engine. More... | |
bool_t | kexInitSent |
An SSH_MSG_KEXINIT message has been sent. More... | |
bool_t | kexInitReceived |
An SSH_MSG_KEXINIT message has been received. More... | |
bool_t | newKeysSent |
An SSH_MSG_NEWKEYS message has been sent. More... | |
bool_t | newKeysReceived |
An SSH_MSG_NEWKEYS message has been received. More... | |
bool_t | disconnectRequest |
Request for disconnection. More... | |
bool_t | disconnectSent |
An SSH_MSG_DISCONNECT message has been sent. More... | |
bool_t | disconnectReceived |
An SSH_MSG_DISCONNECT message has been received. More... | |
bool_t | wrongGuess |
A wrong guessed key exchange packet follows. More... | |
uint_t | authAttempts |
Number of authentication attempts. More... | |
bool_t | publicKeyOk |
The provided host key is acceptable. More... | |
uint32_t | localChannelNum |
Current channel number. More... | |
bool_t | extInfoReceived |
"ext-info-c" or "ext-info-s" indicator has been received More... | |
bool_t | kexStrictReceived |
"strict KEX" pseudo-algorithm received More... | |
uint8_t | buffer [SSH_BUFFER_SIZE] |
Internal buffer. More... | |
size_t | txBufferLen |
Number of bytes that are pending to be sent. More... | |
size_t | txBufferPos |
Current position in TX buffer. More... | |
size_t | rxBufferLen |
Number of bytes available for reading. More... | |
size_t | rxBufferPos |
Current position in RX buffer. More... | |
Detailed Description
Field Documentation
◆ authAttempts
◆ buffer
uint8_t buffer[SSH_BUFFER_SIZE] |
◆ clientCompressAlgo
const char_t* clientCompressAlgo |
◆ clientEncAlgo
const char_t* clientEncAlgo |
◆ clientId
char_t clientId[SSH_MAX_ID_LEN+1] |
◆ clientMacAlgo
const char_t* clientMacAlgo |
◆ context
SshContext* context |
◆ cookie
uint8_t cookie[SSH_COOKIE_SIZE] |
◆ decryptionEngine
SshEncryptionEngine decryptionEngine |
◆ dhContext
◆ dhGexGroupIndex
int_t dhGexGroupIndex |
◆ disconnectReceived
bool_t disconnectReceived |
◆ disconnectRequest
◆ disconnectSent
bool_t disconnectSent |
◆ ecdhContext
EcdhContext ecdhContext |
◆ encryptionEngine
SshEncryptionEngine encryptionEngine |
◆ extInfoReceived
bool_t extInfoReceived |
◆ h
uint8_t h[SSH_MAX_HASH_DIGEST_SIZE] |
◆ hashAlgo
◆ hashContext
HashContext hashContext |
◆ hLen
◆ hmacContext
HmacContext hmacContext |
◆ hostKeyIndex
◆ k
uint8_t k[SSH_MAX_SHARED_SECRET_LEN] |
◆ kemContext
KemContext kemContext |
◆ kexAlgo
◆ kexInitReceived
bool_t kexInitReceived |
◆ kexInitSent
◆ kexStrictReceived
bool_t kexStrictReceived |
◆ kLen
◆ localChannelNum
◆ newKeysReceived
bool_t newKeysReceived |
◆ newKeysSent
◆ passwordChangePrompt
char_t passwordChangePrompt[SSH_MAX_PASSWORD_CHANGE_PROMPT_LEN+1] |
◆ publicKeyOk
◆ requestState
SshRequestState requestState |
◆ rsaKeyIndex
◆ rxBufferLen
◆ rxBufferPos
◆ serverCompressAlgo
const char_t* serverCompressAlgo |
◆ serverEncAlgo
const char_t* serverEncAlgo |
◆ serverHostKey
◆ serverHostKeyAlgo
const char_t* serverHostKeyAlgo |
◆ serverHostKeyLen
size_t serverHostKeyLen |
◆ serverId
char_t serverId[SSH_MAX_ID_LEN+1] |
◆ serverMacAlgo
const char_t* serverMacAlgo |
◆ sessionId
uint8_t sessionId[SSH_MAX_HASH_DIGEST_SIZE] |
◆ sessionIdLen
size_t sessionIdLen |
◆ socket
◆ state
SshConnectionState state |
◆ timestamp
◆ txBufferLen
size_t txBufferLen |
◆ txBufferPos
◆ user
char_t user[SSH_MAX_USERNAME_LEN+1] |
◆ wrongGuess
bool_t wrongGuess |
The documentation for this struct was generated from the following file:
- cyclone_ssh/ssh/ssh.h