diff options
author | 2017-04-30 23:10:43 +0000 | |
---|---|---|
committer | 2017-04-30 23:10:43 +0000 | |
commit | 67cc3a3cf8518dd2e78b340d35c15dbfd1e7e89d (patch) | |
tree | 8092cdbbddcde08ee62518f1db74e4b13c5be4f6 /usr.bin/ssh/cipher.c | |
parent | Make early attrbute work here as well. Remove unreachable panic while there. (diff) | |
download | wireguard-openbsd-67cc3a3cf8518dd2e78b340d35c15dbfd1e7e89d.tar.xz wireguard-openbsd-67cc3a3cf8518dd2e78b340d35c15dbfd1e7e89d.zip |
unifdef WITH_SSH1
ok markus@
Diffstat (limited to 'usr.bin/ssh/cipher.c')
-rw-r--r-- | usr.bin/ssh/cipher.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/usr.bin/ssh/cipher.c b/usr.bin/ssh/cipher.c index b4916a49ebf..eac7732a1ae 100644 --- a/usr.bin/ssh/cipher.c +++ b/usr.bin/ssh/cipher.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cipher.c,v 1.102 2016/08/03 05:41:57 djm Exp $ */ +/* $OpenBSD: cipher.c,v 1.103 2017/04/30 23:10:43 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -47,11 +47,6 @@ #include "ssherr.h" #include "digest.h" -#ifdef WITH_SSH1 -extern const EVP_CIPHER *evp_ssh1_bf(void); -extern const EVP_CIPHER *evp_ssh1_3des(void); -extern int ssh1_3des_iv(EVP_CIPHER_CTX *, int, u_char *, int); -#endif struct sshcipher_ctx { int plaintext; @@ -83,11 +78,6 @@ struct sshcipher { }; static const struct sshcipher ciphers[] = { -#ifdef WITH_SSH1 - { "des", SSH_CIPHER_DES, 8, 8, 0, 0, 0, 1, EVP_des_cbc }, - { "3des", SSH_CIPHER_3DES, 8, 16, 0, 0, 0, 1, evp_ssh1_3des }, - { "blowfish", SSH_CIPHER_BLOWFISH, 8, 32, 0, 0, 0, 1, evp_ssh1_bf }, -#endif #ifdef WITH_OPENSSL { "none", SSH_CIPHER_NONE, 8, 0, 0, 0, 0, 0, EVP_enc_null }, { "3des-cbc", SSH_CIPHER_SSH2, 8, 24, 0, 0, 0, 1, EVP_des_ede3_cbc }, @@ -609,10 +599,6 @@ cipher_get_keyiv(struct sshcipher_ctx *cc, u_char *iv, u_int len) memcpy(iv, cc->evp->iv, len); break; #endif -#ifdef WITH_SSH1 - case SSH_CIPHER_3DES: - return ssh1_3des_iv(cc->evp, 0, iv, 24); -#endif default: return SSH_ERR_INVALID_ARGUMENT; } @@ -649,10 +635,6 @@ cipher_set_keyiv(struct sshcipher_ctx *cc, const u_char *iv) memcpy(cc->evp->iv, iv, evplen); break; #endif -#ifdef WITH_SSH1 - case SSH_CIPHER_3DES: - return ssh1_3des_iv(cc->evp, 1, (u_char *)iv, 24); -#endif default: return SSH_ERR_INVALID_ARGUMENT; } |