diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2012-12-23 23:09:50 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2012-12-23 23:09:50 +0100 |
commit | 63c3f0e7368c7286a960c65422513850ce192124 (patch) | |
tree | 2267e176dac25d4c9e14512282a4723d94a063d6 /include | |
parent | e934ab0816e871253cd3d0538638f0b7cf98c375 (diff) | |
download | libssh-63c3f0e7368c7286a960c65422513850ce192124.tar.gz libssh-63c3f0e7368c7286a960c65422513850ce192124.tar.xz libssh-63c3f0e7368c7286a960c65422513850ce192124.zip |
Implement key re-exchange
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/crypto.h | 1 | ||||
-rw-r--r-- | include/libssh/session.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/libssh/crypto.h b/include/libssh/crypto.h index 388a52b8..49e07ee8 100644 --- a/include/libssh/crypto.h +++ b/include/libssh/crypto.h @@ -65,6 +65,7 @@ struct ssh_crypto_struct { ssh_string dh_server_signature; /* information used by dh_handshake. */ size_t digest_len; /* len of all the fields below */ unsigned char *session_id; + unsigned char *secret_hash; /* Secret hash is same as session id until re-kex */ unsigned char *encryptIV; unsigned char *decryptIV; unsigned char *decryptkey; diff --git a/include/libssh/session.h b/include/libssh/session.h index 4bb0753b..97ff475d 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -66,6 +66,9 @@ enum ssh_pending_call_e { /* libssh calls may block an undefined amount of time */ #define SSH_SESSION_FLAG_BLOCKING 1 +/* Client successfully authenticated */ +#define SSH_SESSION_FLAG_AUTHENTICATED 2 + /* codes to use with ssh_handle_packets*() */ #define SSH_TIMEOUT_INFINITE -1 #define SSH_TIMEOUT_USER -2 |