summaryrefslogtreecommitdiff
path: root/cipher-bf1.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher-bf1.c')
-rw-r--r--cipher-bf1.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/cipher-bf1.c b/cipher-bf1.c
index 64578bae8..292488c5c 100644
--- a/cipher-bf1.c
+++ b/cipher-bf1.c
@@ -1,3 +1,4 @@
1/* $OpenBSD: cipher-bf1.c,v 1.5 2006/08/03 03:34:42 deraadt Exp $ */
1/* 2/*
2 * Copyright (c) 2003 Markus Friedl. All rights reserved. 3 * Copyright (c) 2003 Markus Friedl. All rights reserved.
3 * 4 *
@@ -23,11 +24,21 @@
23 */ 24 */
24 25
25#include "includes.h" 26#include "includes.h"
26RCSID("$OpenBSD: cipher-bf1.c,v 1.1 2003/05/15 03:08:29 markus Exp $"); 27
28#include <sys/types.h>
27 29
28#include <openssl/evp.h> 30#include <openssl/evp.h>
31
32#include <stdarg.h>
33#include <string.h>
34
29#include "xmalloc.h" 35#include "xmalloc.h"
30#include "log.h" 36#include "log.h"
37
38#if OPENSSL_VERSION_NUMBER < 0x00906000L
39#define SSH_OLD_EVP
40#endif
41
31/* 42/*
32 * SSH1 uses a variation on Blowfish, all bytes must be swapped before 43 * SSH1 uses a variation on Blowfish, all bytes must be swapped before
33 * and after encryption/decryption. Thus the swap_bytes stuff (yuk). 44 * and after encryption/decryption. Thus the swap_bytes stuff (yuk).