~ubuntu-branches/ubuntu/lucid/openssh/lucid

« back to all changes in this revision

Viewing changes to openbsd-compat/openssl-compat.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-09-30 23:09:58 UTC
  • mfrom: (1.13.3 upstream) (29 hardy)
  • mto: This revision was merged to the branch mainline in revision 43.
  • Revision ID: james.westby@ubuntu.com-20080930230958-o6vsgn8c4mm959s0
Tags: 1:5.1p1-3
* Remove unnecessary ssh-vulnkey output in non-verbose mode when no
  compromised or unknown keys were found (closes: #496495).
* Configure with --disable-strip; dh_strip will deal with stripping
  binaries and will honour DEB_BUILD_OPTIONS (thanks, Bernhard R. Link;
  closes: #498681).
* Fix handling of zero-length server banners (thanks, Tomas Mraz; closes:
  #497026).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: openssl-compat.h,v 1.7 2007/03/05 07:25:20 dtucker Exp $ */
 
1
/* $Id: openssl-compat.h,v 1.12 2008/02/28 08:22:04 dtucker Exp $ */
2
2
 
3
3
/*
4
4
 * Copyright (c) 2005 Darren Tucker <dtucker@zip.com.au>
19
19
#include "includes.h"
20
20
#include <openssl/evp.h>
21
21
 
 
22
/* OPENSSL_free() is Free() in versions before OpenSSL 0.9.6 */
 
23
#if !defined(OPENSSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x0090600f)
 
24
# define OPENSSL_free(x) Free(x)
 
25
#endif
 
26
 
22
27
#if OPENSSL_VERSION_NUMBER < 0x00906000L
23
28
# define SSH_OLD_EVP
24
29
# define EVP_CIPHER_CTX_get_app_data(e)         ((e)->app_data)
29
34
#endif
30
35
 
31
36
#ifdef USE_BUILTIN_RIJNDAEL
 
37
# include "rijndael.h"
 
38
# define AES_KEY rijndael_ctx
 
39
# define AES_BLOCK_SIZE 16
 
40
# define AES_encrypt(a, b, c)           rijndael_encrypt(c, a, b)
 
41
# define AES_set_encrypt_key(a, b, c)   rijndael_set_key(c, (char *)a, b, 1)
32
42
# define EVP_aes_128_cbc evp_rijndael
33
43
# define EVP_aes_192_cbc evp_rijndael
34
44
# define EVP_aes_256_cbc evp_rijndael
74
84
#  ifdef SSLeay_add_all_algorithms
75
85
#   undef SSLeay_add_all_algorithms
76
86
#  endif
77
 
#  define SSLeay_add_all_algorithms()   ssh_SSLeay_add_all_algorithms()
78
 
#endif
 
87
#  define SSLeay_add_all_algorithms()  ssh_SSLeay_add_all_algorithms()
 
88
# endif
79
89
 
80
90
int ssh_EVP_CipherInit(EVP_CIPHER_CTX *, const EVP_CIPHER *, unsigned char *,
81
91
    unsigned char *, int);