diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-07-10 12:30:38 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-08-18 08:58:19 +0200 |
commit | 8b3b5ae5bebc045e241108b32751f976feae7ecb (patch) | |
tree | 338a9d0a07239e15e0486f2cf2f3b3b9b8175e14 /build/stubs/ssh2.php | |
parent | 7257793fc4ec5c40c193ca12b5747a4f49c6f4fe (diff) | |
download | nextcloud-server-8b3b5ae5bebc045e241108b32751f976feae7ecb.tar.gz nextcloud-server-8b3b5ae5bebc045e241108b32751f976feae7ecb.zip |
Add stubs for phpseclib
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'build/stubs/ssh2.php')
-rw-r--r-- | build/stubs/ssh2.php | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/build/stubs/ssh2.php b/build/stubs/ssh2.php new file mode 100644 index 00000000000..bf1a4fb87a8 --- /dev/null +++ b/build/stubs/ssh2.php @@ -0,0 +1,69 @@ +<?php + +define('NET_SSH2_MSG_DISCONNECT', 1); +define('NET_SSH2_MSG_IGNORE', 2); +define('NET_SSH2_MSG_UNIMPLEMENTED', 3); +define('NET_SSH2_MSG_DEBUG', 4); +define('NET_SSH2_MSG_SERVICE_REQUEST', 5); +define('NET_SSH2_MSG_SERVICE_ACCEPT', 6); +define('NET_SSH2_MSG_KEXINIT', 20); +define('NET_SSH2_MSG_NEWKEYS', 21); +define('NET_SSH2_MSG_KEXDH_INIT', 30); +define('NET_SSH2_MSG_KEXDH_REPLY', 31); +define('NET_SSH2_MSG_USERAUTH_REQUEST', 50); +define('NET_SSH2_MSG_USERAUTH_FAILURE', 51); +define('NET_SSH2_MSG_USERAUTH_SUCCESS', 52); +define('NET_SSH2_MSG_USERAUTH_BANNER', 53); + +define('NET_SSH2_MSG_GLOBAL_REQUEST', 80); +define('NET_SSH2_MSG_REQUEST_SUCCESS', 81); +define('NET_SSH2_MSG_REQUEST_FAILURE', 82); +define('NET_SSH2_MSG_CHANNEL_OPEN', 90); +define('NET_SSH2_MSG_CHANNEL_OPEN_CONFIRMATION', 91); +define('NET_SSH2_MSG_CHANNEL_OPEN_FAILURE', 92); +define('NET_SSH2_MSG_CHANNEL_WINDOW_ADJUST', 93); +define('NET_SSH2_MSG_CHANNEL_DATA', 94); +define('NET_SSH2_MSG_CHANNEL_EXTENDED_DATA', 95); +define('NET_SSH2_MSG_CHANNEL_EOF', 96); +define('NET_SSH2_MSG_CHANNEL_CLOSE', 97); +define('NET_SSH2_MSG_CHANNEL_REQUEST', 98); +define('NET_SSH2_MSG_CHANNEL_SUCCESS', 99); +define('NET_SSH2_MSG_CHANNEL_FAILURE', 100); + +define('NET_SSH2_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT', 1); +define('NET_SSH2_DISCONNECT_PROTOCOL_ERROR', 2); +define('NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED', 3); +define('NET_SSH2_DISCONNECT_RESERVED', 4); +define('NET_SSH2_DISCONNECT_MAC_ERROR', 5); +define('NET_SSH2_DISCONNECT_COMPRESSION_ERROR', 6); +define('NET_SSH2_DISCONNECT_SERVICE_NOT_AVAILABLE', 7); +define('NET_SSH2_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED', 8); +define('NET_SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE', 9); +define('NET_SSH2_DISCONNECT_CONNECTION_LOST', 10); +define('NET_SSH2_DISCONNECT_BY_APPLICATION', 11); +define('NET_SSH2_DISCONNECT_TOO_MANY_CONNECTIONS', 12); +define('NET_SSH2_DISCONNECT_AUTH_CANCELLED_BY_USER', 13); +define('NET_SSH2_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE', 14); +define('NET_SSH2_DISCONNECT_ILLEGAL_USER_NAME', 15); + +define('NET_SSH2_OPEN_ADMINISTRATIVELY_PROHIBITED', 1); + +define('NET_SSH2_TTY_OP_END', 0); + +define('NET_SSH2_EXTENDED_DATA_STDERR', 1); + +define('NET_SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ', 60); + +define('NET_SSH2_MSG_USERAUTH_PK_OK', 60); + +define('NET_SSH2_MSG_USERAUTH_INFO_REQUEST', 60); +define('NET_SSH2_MSG_USERAUTH_INFO_RESPONSE', 61); + +define('NET_SSH2_MSG_KEXDH_GEX_REQUEST_OLD', 30); +define('NET_SSH2_MSG_KEXDH_GEX_GROUP', 31); +define('NET_SSH2_MSG_KEXDH_GEX_INIT', 32); +define('NET_SSH2_MSG_KEXDH_GEX_REPLY', 33); +define('NET_SSH2_MSG_KEXDH_GEX_REQUEST', 34); + +define('NET_SSH2_MSG_KEX_ECDH_INIT', 30); +define('NET_SSH2_MSG_KEX_ECDH_REPLY', 31); |