c_all.c revision 296465
11573Srgrimes/* crypto/evp/c_all.c */
284260Sobrien/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3276881Sbapt * All rights reserved.
41573Srgrimes *
51573Srgrimes * This package is an SSL implementation written
61573Srgrimes * by Eric Young (eay@cryptsoft.com).
71573Srgrimes * The implementation was written so as to conform with Netscapes SSL.
81573Srgrimes *
91573Srgrimes * This library is free for commercial and non-commercial use as long as
101573Srgrimes * the following conditions are aheared to.  The following conditions
111573Srgrimes * apply to all code found in this distribution, be it the RC4, RSA,
121573Srgrimes * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
131573Srgrimes * included with this distribution is covered by the same copyright terms
141573Srgrimes * except that the holder is Tim Hudson (tjh@cryptsoft.com).
151573Srgrimes *
161573Srgrimes * Copyright remains Eric Young's, and as such any Copyright notices in
171573Srgrimes * the code are not to be removed.
181573Srgrimes * If this package is used in a product, Eric Young should be given attribution
19148834Sstefanf * as the author of the parts of the library used.
201573Srgrimes * This can be in the form of a textual message at program startup or
211573Srgrimes * in documentation (online or textual) provided with the package.
221573Srgrimes *
231573Srgrimes * Redistribution and use in source and binary forms, with or without
241573Srgrimes * modification, are permitted provided that the following conditions
251573Srgrimes * are met:
261573Srgrimes * 1. Redistributions of source code must retain the copyright
271573Srgrimes *    notice, this list of conditions and the following disclaimer.
281573Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
291573Srgrimes *    notice, this list of conditions and the following disclaimer in the
301573Srgrimes *    documentation and/or other materials provided with the distribution.
311573Srgrimes * 3. All advertising materials mentioning features or use of this software
321573Srgrimes *    must display the following acknowledgement:
331573Srgrimes *    "This product includes cryptographic software written by
341573Srgrimes *     Eric Young (eay@cryptsoft.com)"
351573Srgrimes *    The word 'cryptographic' can be left out if the rouines from the library
361573Srgrimes *    being used are not cryptographic related :-).
371573Srgrimes * 4. If you include any Windows specific code (or a derivative thereof) from
381573Srgrimes *    the apps directory (application code) you must include an acknowledgement:
39148834Sstefanf *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
40276881Sbapt *
411573Srgrimes * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
421573Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
431573Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
441573Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
451573Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
461573Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
471573Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
481573Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
491573Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
501573Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
511573Srgrimes * SUCH DAMAGE.
521573Srgrimes *
531573Srgrimes * The licence and distribution terms for any publically available version or
5484260Sobrien * derivative of this code cannot be changed.  i.e. this code cannot simply be
5584260Sobrien * copied and put under another distribution licence
5684260Sobrien * [including the GNU Public Licence.]
57276881Sbapt */
58276881Sbapt
59276881Sbapt#include <stdio.h>
60276881Sbapt#include "cryptlib.h"
61276881Sbapt#include <openssl/evp.h>
62276881Sbapt#ifndef OPENSSL_NO_ENGINE
63276881Sbapt# include <openssl/engine.h>
64276881Sbapt#endif
65313981Spfg
661573Srgrimes#if 0
6784260Sobrien# undef OpenSSL_add_all_algorithms
6884260Sobrien
691573Srgrimesvoid OpenSSL_add_all_algorithms(void)
701573Srgrimes{
711573Srgrimes    OPENSSL_add_all_algorithms_noconf();
721573Srgrimes}
731573Srgrimes#endif
741573Srgrimes
751573Srgrimesvoid OPENSSL_add_all_algorithms_noconf(void)
761573Srgrimes{
771573Srgrimes    /*
7884260Sobrien     * For the moment OPENSSL_cpuid_setup does something
7984260Sobrien     * only on IA-32, but we reserve the option for all
8084260Sobrien     * platforms...
8184260Sobrien     */
82313981Spfg    OPENSSL_cpuid_setup();
83313981Spfg    OpenSSL_add_all_ciphers();
841573Srgrimes    OpenSSL_add_all_digests();
851573Srgrimes#ifndef OPENSSL_NO_ENGINE
861573Srgrimes# if defined(__OpenBSD__) || defined(__FreeBSD__)
871573Srgrimes    ENGINE_setup_bsd_cryptodev();
8884260Sobrien# endif
8984260Sobrien#endif
9084260Sobrien}
9184260Sobrien