c_all.c revision 306198
1306430Sgonzo/* crypto/evp/c_all.c */ 2306430Sgonzo/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3306430Sgonzo * All rights reserved. 4306430Sgonzo * 5306430Sgonzo * This package is an SSL implementation written 6306430Sgonzo * by Eric Young (eay@cryptsoft.com). 7306430Sgonzo * The implementation was written so as to conform with Netscapes SSL. 8306430Sgonzo * 9306430Sgonzo * This library is free for commercial and non-commercial use as long as 10306430Sgonzo * the following conditions are aheared to. The following conditions 11306430Sgonzo * apply to all code found in this distribution, be it the RC4, RSA, 12306430Sgonzo * lhash, DES, etc., code; not just the SSL code. The SSL documentation 13306430Sgonzo * included with this distribution is covered by the same copyright terms 14306430Sgonzo * except that the holder is Tim Hudson (tjh@cryptsoft.com). 15306430Sgonzo * 16306430Sgonzo * Copyright remains Eric Young's, and as such any Copyright notices in 17306430Sgonzo * the code are not to be removed. 18306430Sgonzo * If this package is used in a product, Eric Young should be given attribution 19306430Sgonzo * as the author of the parts of the library used. 20306430Sgonzo * This can be in the form of a textual message at program startup or 21306430Sgonzo * in documentation (online or textual) provided with the package. 22306430Sgonzo * 23306430Sgonzo * Redistribution and use in source and binary forms, with or without 24306430Sgonzo * modification, are permitted provided that the following conditions 25306430Sgonzo * are met: 26306430Sgonzo * 1. Redistributions of source code must retain the copyright 27306430Sgonzo * notice, this list of conditions and the following disclaimer. 28306430Sgonzo * 2. Redistributions in binary form must reproduce the above copyright 29306430Sgonzo * notice, this list of conditions and the following disclaimer in the 30306430Sgonzo * documentation and/or other materials provided with the distribution. 31306430Sgonzo * 3. All advertising materials mentioning features or use of this software 32306430Sgonzo * must display the following acknowledgement: 33306430Sgonzo * "This product includes cryptographic software written by 34306430Sgonzo * Eric Young (eay@cryptsoft.com)" 35306430Sgonzo * The word 'cryptographic' can be left out if the rouines from the library 36306430Sgonzo * being used are not cryptographic related :-). 37306430Sgonzo * 4. If you include any Windows specific code (or a derivative thereof) from 38306430Sgonzo * the apps directory (application code) you must include an acknowledgement: 39306430Sgonzo * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" 40306430Sgonzo * 41306430Sgonzo * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND 42306430Sgonzo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 43306430Sgonzo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 44306430Sgonzo * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 45306430Sgonzo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 46306430Sgonzo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 47306430Sgonzo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 48306430Sgonzo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 49306430Sgonzo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 50306430Sgonzo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 51306430Sgonzo * SUCH DAMAGE. 52306430Sgonzo * 53306430Sgonzo * The licence and distribution terms for any publically available version or 54306430Sgonzo * derivative of this code cannot be changed. i.e. this code cannot simply be 55306430Sgonzo * copied and put under another distribution licence 56306430Sgonzo * [including the GNU Public Licence.] 57306430Sgonzo */ 58306430Sgonzo 59306430Sgonzo#include <stdio.h> 60306430Sgonzo#include "cryptlib.h" 61306430Sgonzo#include <openssl/evp.h> 62306430Sgonzo#ifndef OPENSSL_NO_ENGINE 63306430Sgonzo# include <openssl/engine.h> 64306430Sgonzo#endif 65306430Sgonzo 66306430Sgonzo#if 0 67306430Sgonzo# undef OpenSSL_add_all_algorithms 68306430Sgonzo 69306430Sgonzovoid OpenSSL_add_all_algorithms(void) 70306430Sgonzo{ 71306430Sgonzo OPENSSL_add_all_algorithms_noconf(); 72306430Sgonzo} 73306430Sgonzo#endif 74306430Sgonzo 75306430Sgonzovoid OPENSSL_add_all_algorithms_noconf(void) 76306430Sgonzo{ 77306430Sgonzo /* 78306430Sgonzo * For the moment OPENSSL_cpuid_setup does something 79306430Sgonzo * only on IA-32, but we reserve the option for all 80306430Sgonzo * platforms... 81306430Sgonzo */ 82306430Sgonzo OPENSSL_cpuid_setup(); 83306430Sgonzo OpenSSL_add_all_ciphers(); 84306430Sgonzo OpenSSL_add_all_digests(); 85306430Sgonzo} 86306430Sgonzo