1142425Snectar/* crypto/evp/e_old.c -*- mode:C; c-file-style: "eay" -*- */ 2142425Snectar/* Written by Richard Levitte (richard@levitte.org) for the OpenSSL 3142425Snectar * project 2004. 4142425Snectar */ 5142425Snectar/* ==================================================================== 6142425Snectar * Copyright (c) 2004 The OpenSSL Project. All rights reserved. 7142425Snectar * 8142425Snectar * Redistribution and use in source and binary forms, with or without 9142425Snectar * modification, are permitted provided that the following conditions 10142425Snectar * are met: 11142425Snectar * 12142425Snectar * 1. Redistributions of source code must retain the above copyright 13142425Snectar * notice, this list of conditions and the following disclaimer. 14142425Snectar * 15142425Snectar * 2. Redistributions in binary form must reproduce the above copyright 16142425Snectar * notice, this list of conditions and the following disclaimer in 17142425Snectar * the documentation and/or other materials provided with the 18142425Snectar * distribution. 19142425Snectar * 20142425Snectar * 3. All advertising materials mentioning features or use of this 21142425Snectar * software must display the following acknowledgment: 22142425Snectar * "This product includes software developed by the OpenSSL Project 23142425Snectar * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 24142425Snectar * 25142425Snectar * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 26142425Snectar * endorse or promote products derived from this software without 27142425Snectar * prior written permission. For written permission, please contact 28142425Snectar * openssl-core@openssl.org. 29142425Snectar * 30142425Snectar * 5. Products derived from this software may not be called "OpenSSL" 31142425Snectar * nor may "OpenSSL" appear in their names without prior written 32142425Snectar * permission of the OpenSSL Project. 33142425Snectar * 34142425Snectar * 6. Redistributions of any form whatsoever must retain the following 35142425Snectar * acknowledgment: 36142425Snectar * "This product includes software developed by the OpenSSL Project 37142425Snectar * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 38142425Snectar * 39142425Snectar * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 40142425Snectar * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 41142425Snectar * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 42142425Snectar * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 43142425Snectar * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 44142425Snectar * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 45142425Snectar * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 46142425Snectar * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 47142425Snectar * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 48142425Snectar * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 49142425Snectar * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 50142425Snectar * OF THE POSSIBILITY OF SUCH DAMAGE. 51142425Snectar * ==================================================================== 52142425Snectar * 53142425Snectar * This product includes cryptographic software written by Eric Young 54142425Snectar * (eay@cryptsoft.com). This product includes software written by Tim 55142425Snectar * Hudson (tjh@cryptsoft.com). 56142425Snectar * 57142425Snectar */ 58142425Snectar 59160814Ssimon#ifdef OPENSSL_NO_DEPRECATED 60160814Ssimonstatic void *dummy = &dummy; 61160814Ssimon#else 62160814Ssimon 63142425Snectar#include <openssl/evp.h> 64142425Snectar 65142425Snectar/* Define some deprecated functions, so older programs 66142425Snectar don't crash and burn too quickly. On Windows and VMS, 67142425Snectar these will never be used, since functions and variables 68142425Snectar in shared libraries are selected by entry point location, 69142425Snectar not by name. */ 70142425Snectar 71142425Snectar#ifndef OPENSSL_NO_BF 72142425Snectar#undef EVP_bf_cfb 73160814Ssimonconst EVP_CIPHER *EVP_bf_cfb(void); 74142425Snectarconst EVP_CIPHER *EVP_bf_cfb(void) { return EVP_bf_cfb64(); } 75142425Snectar#endif 76142425Snectar 77142425Snectar#ifndef OPENSSL_NO_DES 78142425Snectar#undef EVP_des_cfb 79160814Ssimonconst EVP_CIPHER *EVP_des_cfb(void); 80142425Snectarconst EVP_CIPHER *EVP_des_cfb(void) { return EVP_des_cfb64(); } 81142425Snectar#undef EVP_des_ede3_cfb 82160814Ssimonconst EVP_CIPHER *EVP_des_ede3_cfb(void); 83142425Snectarconst EVP_CIPHER *EVP_des_ede3_cfb(void) { return EVP_des_ede3_cfb64(); } 84142425Snectar#undef EVP_des_ede_cfb 85160814Ssimonconst EVP_CIPHER *EVP_des_ede_cfb(void); 86142425Snectarconst EVP_CIPHER *EVP_des_ede_cfb(void) { return EVP_des_ede_cfb64(); } 87142425Snectar#endif 88142425Snectar 89142425Snectar#ifndef OPENSSL_NO_IDEA 90142425Snectar#undef EVP_idea_cfb 91160814Ssimonconst EVP_CIPHER *EVP_idea_cfb(void); 92142425Snectarconst EVP_CIPHER *EVP_idea_cfb(void) { return EVP_idea_cfb64(); } 93142425Snectar#endif 94142425Snectar 95142425Snectar#ifndef OPENSSL_NO_RC2 96142425Snectar#undef EVP_rc2_cfb 97160814Ssimonconst EVP_CIPHER *EVP_rc2_cfb(void); 98142425Snectarconst EVP_CIPHER *EVP_rc2_cfb(void) { return EVP_rc2_cfb64(); } 99142425Snectar#endif 100142425Snectar 101160814Ssimon#ifndef OPENSSL_NO_CAST 102142425Snectar#undef EVP_cast5_cfb 103160814Ssimonconst EVP_CIPHER *EVP_cast5_cfb(void); 104142425Snectarconst EVP_CIPHER *EVP_cast5_cfb(void) { return EVP_cast5_cfb64(); } 105142425Snectar#endif 106142425Snectar 107142425Snectar#ifndef OPENSSL_NO_RC5 108142425Snectar#undef EVP_rc5_32_12_16_cfb 109160814Ssimonconst EVP_CIPHER *EVP_rc5_32_12_16_cfb(void); 110142425Snectarconst EVP_CIPHER *EVP_rc5_32_12_16_cfb(void) { return EVP_rc5_32_12_16_cfb64(); } 111142425Snectar#endif 112142425Snectar 113142425Snectar#ifndef OPENSSL_NO_AES 114142425Snectar#undef EVP_aes_128_cfb 115160814Ssimonconst EVP_CIPHER *EVP_aes_128_cfb(void); 116142425Snectarconst EVP_CIPHER *EVP_aes_128_cfb(void) { return EVP_aes_128_cfb128(); } 117142425Snectar#undef EVP_aes_192_cfb 118160814Ssimonconst EVP_CIPHER *EVP_aes_192_cfb(void); 119142425Snectarconst EVP_CIPHER *EVP_aes_192_cfb(void) { return EVP_aes_192_cfb128(); } 120142425Snectar#undef EVP_aes_256_cfb 121160814Ssimonconst EVP_CIPHER *EVP_aes_256_cfb(void); 122142425Snectarconst EVP_CIPHER *EVP_aes_256_cfb(void) { return EVP_aes_256_cfb128(); } 123142425Snectar#endif 124160814Ssimon 125160814Ssimon#endif 126