ssh: add support for banners

According to RFC 4252 section 5.4, the banner is sent between the
ssh-connection request and responding to user authentication.

Original support for server sending banner by joshua stein <jcs@jcs.org>

Fixes golang/go#19567

Change-Id: I729b3c8e5fd2c0068609d1590b61e92f40d87ea4
Reviewed-on: https://go-review.googlesource.com/71790
Run-TryBot: Han-Wen Nienhuys <hanwen@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Han-Wen Nienhuys <hanwen@google.com>
8 files changed
tree: a67aad87c874abb2a8a4a881e7b4a4d67dc989db
  1. .gitattributes
  2. .gitignore
  3. AUTHORS
  4. CONTRIBUTING.md
  5. CONTRIBUTORS
  6. LICENSE
  7. PATENTS
  8. README.md
  9. acme/
  10. bcrypt/
  11. blake2b/
  12. blake2s/
  13. blowfish/
  14. bn256/
  15. cast5/
  16. chacha20poly1305/
  17. codereview.cfg
  18. cryptobyte/
  19. curve25519/
  20. ed25519/
  21. hkdf/
  22. md4/
  23. nacl/
  24. ocsp/
  25. openpgp/
  26. otr/
  27. pbkdf2/
  28. pkcs12/
  29. poly1305/
  30. ripemd160/
  31. salsa20/
  32. scrypt/
  33. sha3/
  34. ssh/
  35. tea/
  36. twofish/
  37. xtea/
  38. xts/
README.md

Go Cryptography

This repository holds supplementary Go cryptography libraries.

Download/Install

The easiest way to install is to run go get -u golang.org/x/crypto/.... You can also manually git clone the repository to $GOPATH/src/golang.org/x/crypto.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the crypto repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/crypto:” in the subject line, so it is easy to find.

Note that contributions to the cryptography package receive additional scrutiny due to their sensitive nature. Patches may take longer than normal to receive feedback.