diff --git a/paramiko/server.py b/paramiko/server.py index 11562e1..c3f3a0c 100644 --- a/paramiko/server.py +++ b/paramiko/server.py @@ -46,6 +46,7 @@ class ServerInterface (object): useless), you should also override some of the channel request methods below, which are used to determine which services will be allowed on a given channel: + - `check_channel_pty_request` - `check_channel_shell_request` - `check_channel_subsystem_request` @@ -62,6 +63,7 @@ class ServerInterface (object): The return value should either be ``OPEN_SUCCEEDED`` (or ``0``) to allow the channel request, or one of the following error codes to reject it: + - ``OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED`` - ``OPEN_FAILED_CONNECT_FAILED`` - ``OPEN_FAILED_UNKNOWN_CHANNEL_TYPE`` @@ -449,6 +451,7 @@ class ServerInterface (object): The return value should either be ``OPEN_SUCCEEDED`` (or ``0``) to allow the channel request, or one of the following error codes to reject it: + - ``OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED`` - ``OPEN_FAILED_CONNECT_FAILED`` - ``OPEN_FAILED_UNKNOWN_CHANNEL_TYPE`` diff --git a/paramiko/sftp_si.py b/paramiko/sftp_si.py index d4b3426..3786be4 100644 --- a/paramiko/sftp_si.py +++ b/paramiko/sftp_si.py @@ -78,6 +78,7 @@ class SFTPServerInterface (object): ``flags`` contains the requested mode for opening (read-only, write-append, etc) as a bitset of flags from the ``os`` module: + - ``os.O_RDONLY`` - ``os.O_WRONLY`` - ``os.O_RDWR`` @@ -85,6 +86,7 @@ class SFTPServerInterface (object): - ``os.O_CREAT`` - ``os.O_TRUNC`` - ``os.O_EXCL`` + (One of ``os.O_RDONLY``, ``os.O_WRONLY``, or ``os.O_RDWR`` will always be set.)