diff options
author | Hans Nilsson <[email protected]> | 2017-04-10 16:25:06 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2017-04-26 12:13:01 +0200 |
commit | 29d7533c715f972ee996382c2c45cc0c055e10d2 (patch) | |
tree | b370920e82c28335cb601d997920d41ea6cd76cd /lib/ssh/src/ssh_options.erl | |
parent | c0d2e134f90ddd3fd2f5b0f9a94a5b0d55c93416 (diff) | |
download | otp-29d7533c715f972ee996382c2c45cc0c055e10d2.tar.gz otp-29d7533c715f972ee996382c2c45cc0c055e10d2.tar.bz2 otp-29d7533c715f972ee996382c2c45cc0c055e10d2.zip |
ssh: Implement ext-info extension. draft-ietf-curdle-ssh-ext-info
This is only a draft extension, but it is quite stable and already supported
by some implementations. OpenSSH has had it for some year now.
Diffstat (limited to 'lib/ssh/src/ssh_options.erl')
-rw-r--r-- | lib/ssh/src/ssh_options.erl | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/lib/ssh/src/ssh_options.erl b/lib/ssh/src/ssh_options.erl index ee3cdbb8a0..6e898b4fde 100644 --- a/lib/ssh/src/ssh_options.erl +++ b/lib/ssh/src/ssh_options.erl @@ -614,11 +614,23 @@ default(common) -> }, {max_random_length_padding, def} => - #{default => ?MAX_RND_PADDING_LEN, - chk => fun check_non_neg_integer/1, - class => user_options - } - }. + #{default => ?MAX_RND_PADDING_LEN, + chk => fun check_non_neg_integer/1, + class => user_options + }, + + {send_ext_info, def} => + #{default => true, + chk => fun erlang:is_boolean/1, + class => user_options + }, + + {recv_ext_info, def} => + #{default => true, + chk => fun erlang:is_boolean/1, + class => user_options + } + }. %%%================================================================ |