mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-26 15:24:47 +02:00
- (djm) Bug #138: Make protocol 1 blowfish work with old OpenSSL.
Patch from Robert Halubek <rob@adso.com.pl>
This commit is contained in:
parent
e9994cb4d7
commit
c34e03e471
@ -1,6 +1,8 @@
|
|||||||
20020910
|
20020910
|
||||||
- (djm) Bug #365: Read /.ssh/environment properly under CygWin.
|
- (djm) Bug #365: Read /.ssh/environment properly under CygWin.
|
||||||
Patch from Mark Bradshaw <bradshaw@staff.crosswalk.com>
|
Patch from Mark Bradshaw <bradshaw@staff.crosswalk.com>
|
||||||
|
- (djm) Bug #138: Make protocol 1 blowfish work with old OpenSSL.
|
||||||
|
Patch from Robert Halubek <rob@adso.com.pl>
|
||||||
|
|
||||||
20020905
|
20020905
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
@ -1612,4 +1614,4 @@
|
|||||||
- (stevesk) entropy.c: typo in debug message
|
- (stevesk) entropy.c: typo in debug message
|
||||||
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2449 2002/09/10 11:43:53 djm Exp $
|
$Id: ChangeLog,v 1.2450 2002/09/10 12:26:17 djm Exp $
|
||||||
|
15
cipher.c
15
cipher.c
@ -437,6 +437,18 @@ swap_bytes(const u_char *src, u_char *dst, int n)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SSH_OLD_EVP
|
||||||
|
static void bf_ssh1_init (EVP_CIPHER_CTX * ctx, const unsigned char *key,
|
||||||
|
const unsigned char *iv, int enc)
|
||||||
|
{
|
||||||
|
if (iv != NULL)
|
||||||
|
memcpy (&(ctx->oiv[0]), iv, 8);
|
||||||
|
memcpy (&(ctx->iv[0]), &(ctx->oiv[0]), 8);
|
||||||
|
if (key != NULL)
|
||||||
|
BF_set_key (&(ctx->c.bf_ks), EVP_CIPHER_CTX_key_length (ctx),
|
||||||
|
key);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
static int (*orig_bf)(EVP_CIPHER_CTX *, u_char *, const u_char *, u_int) = NULL;
|
static int (*orig_bf)(EVP_CIPHER_CTX *, u_char *, const u_char *, u_int) = NULL;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -458,6 +470,9 @@ evp_ssh1_bf(void)
|
|||||||
memcpy(&ssh1_bf, EVP_bf_cbc(), sizeof(EVP_CIPHER));
|
memcpy(&ssh1_bf, EVP_bf_cbc(), sizeof(EVP_CIPHER));
|
||||||
orig_bf = ssh1_bf.do_cipher;
|
orig_bf = ssh1_bf.do_cipher;
|
||||||
ssh1_bf.nid = NID_undef;
|
ssh1_bf.nid = NID_undef;
|
||||||
|
#ifdef SSH_OLD_EVP
|
||||||
|
ssh1_bf.init = bf_ssh1_init;
|
||||||
|
#endif
|
||||||
ssh1_bf.do_cipher = bf_ssh1_cipher;
|
ssh1_bf.do_cipher = bf_ssh1_cipher;
|
||||||
ssh1_bf.key_len = 32;
|
ssh1_bf.key_len = 32;
|
||||||
return (&ssh1_bf);
|
return (&ssh1_bf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user