summaryrefslogtreecommitdiff
path: root/cipher-bf1.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2010-10-07 22:06:42 +1100
committerDamien Miller <djm@mindrot.org>2010-10-07 22:06:42 +1100
commit9a3d0dc062e4ebcafdc399ed8522df97066b139e (patch)
tree2c6283bf3cf257f610e26d3b0aa8ea78553ac50d /cipher-bf1.c
parent195dbaff7a2c27b371a126d3b87888ba7a71ef7e (diff)
- djm@cvs.openbsd.org 2010/10/01 23:05:32
[cipher-3des1.c cipher-bf1.c cipher-ctr.c openbsd-compat/openssl-compat.h] adapt to API changes in openssl-1.0.0a NB. contains compat code to select correct API for older OpenSSL
Diffstat (limited to 'cipher-bf1.c')
-rw-r--r--cipher-bf1.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/cipher-bf1.c b/cipher-bf1.c
index e0e33b4c0..309509dd7 100644
--- a/cipher-bf1.c
+++ b/cipher-bf1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cipher-bf1.c,v 1.5 2006/08/03 03:34:42 deraadt Exp $ */ 1/* $OpenBSD: cipher-bf1.c,v 1.6 2010/10/01 23:05:32 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2003 Markus Friedl. All rights reserved. 3 * Copyright (c) 2003 Markus Friedl. All rights reserved.
4 * 4 *
@@ -76,10 +76,12 @@ static void bf_ssh1_init (EVP_CIPHER_CTX * ctx, const unsigned char *key,
76} 76}
77#endif 77#endif
78 78
79static int (*orig_bf)(EVP_CIPHER_CTX *, u_char *, const u_char *, u_int) = NULL; 79static int (*orig_bf)(EVP_CIPHER_CTX *, u_char *,
80 const u_char *, LIBCRYPTO_EVP_INL_TYPE) = NULL;
80 81
81static int 82static int
82bf_ssh1_cipher(EVP_CIPHER_CTX *ctx, u_char *out, const u_char *in, u_int len) 83bf_ssh1_cipher(EVP_CIPHER_CTX *ctx, u_char *out, const u_char *in,
84 LIBCRYPTO_EVP_INL_TYPE len)
83{ 85{
84 int ret; 86 int ret;
85 87