aboutsummaryrefslogtreecommitdiff
path: root/ssh/test/session_test.go
diff options
context:
space:
mode:
authorNathan(yinian) Hu <nathanhu@google.com>2015-04-08 12:39:14 +1000
committerAdam Langley <agl@golang.org>2015-04-10 21:42:31 +0000
commit5c68cfdf2a545b5ff576c075b459d1fc0c606f82 (patch)
treebac931fa27b9c6dfc9aead1fe72bcdbf980e4455 /ssh/test/session_test.go
parentc57d4a71915a248dbad846d60825145062b4c18e (diff)
downloadgo-x-crypto-5c68cfdf2a545b5ff576c075b459d1fc0c606f82.tar.xz
crypto/ssh: add support for aes128-cbc cipher.
The aes128cbc cipher is commented out in cipher.go on purpose, anyone wants to use the cipher needs to uncomment line 119 in cipher.go Fixes #4274. Change-Id: I4bbc88ab884bda821c5f155dcf495bb7235c8605 Reviewed-on: https://go-review.googlesource.com/8396 Reviewed-by: Adam Langley <agl@golang.org>
Diffstat (limited to 'ssh/test/session_test.go')
-rw-r--r--ssh/test/session_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssh/test/session_test.go b/ssh/test/session_test.go
index 846f580..fbd1044 100644
--- a/ssh/test/session_test.go
+++ b/ssh/test/session_test.go
@@ -280,6 +280,9 @@ func TestCiphers(t *testing.T) {
var config ssh.Config
config.SetDefaults()
cipherOrder := config.Ciphers
+ // This cipher will not be tested when commented out in cipher.go it will
+ // fallback to the next available as per line 292.
+ cipherOrder = append(cipherOrder, "aes128-cbc")
for _, ciph := range cipherOrder {
server := newServer(t)