aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2018-09-19 15:55:43 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-09 11:45:58 +0200
commitacd6a1ca8a332a204b616ab6bef413bee5d3409d (patch)
tree472a8f68589fd81c4c9d70d86e0b9da10398baa1 /include
parentddea46f890bd5d87669f23b26d676adedaa5f610 (diff)
downloadlibssh-acd6a1ca8a332a204b616ab6bef413bee5d3409d.tar.gz
libssh-acd6a1ca8a332a204b616ab6bef413bee5d3409d.tar.xz
libssh-acd6a1ca8a332a204b616ab6bef413bee5d3409d.zip
CVE-2018-10933: Introduce SSH_AUTH_STATE_AUTH_NONE_SENT
The introduced auth state allows to identify when a request without authentication information was sent. Fixes T101 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/auth.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/auth.h b/include/libssh/auth.h
index 1fc00e20..75bc7546 100644
--- a/include/libssh/auth.h
+++ b/include/libssh/auth.h
@@ -96,6 +96,8 @@ enum ssh_auth_state_e {
SSH_AUTH_STATE_PUBKEY_AUTH_SENT,
/** We have sent a password expecting to be authenticated */
SSH_AUTH_STATE_PASSWORD_AUTH_SENT,
+ /** We have sent a request without auth information (method 'none') */
+ SSH_AUTH_STATE_AUTH_NONE_SENT,
};
/** @internal