summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/c_all.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/evp/c_all.c (renamed from src/lib/libcrypto/dsa/dsa_utl.c)49
1 files changed, 22 insertions, 27 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_utl.c b/src/lib/libcrypto/evp/c_all.c
index 24c021d120..766c4cecdf 100644
--- a/src/lib/libcrypto/dsa/dsa_utl.c
+++ b/src/lib/libcrypto/evp/c_all.c
@@ -1,4 +1,4 @@
1/* crypto/dsa/dsa_lib.c */ 1/* crypto/evp/c_all.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -56,40 +56,35 @@
56 * [including the GNU Public Licence.] 56 * [including the GNU Public Licence.]
57 */ 57 */
58 58
59/* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */
60
61#include <stdio.h> 59#include <stdio.h>
62#include "cryptlib.h" 60#include "cryptlib.h"
63#include <openssl/bn.h> 61#include <openssl/evp.h>
64#include <openssl/dsa.h>
65#include <openssl/asn1.h>
66#ifndef OPENSSL_NO_ENGINE 62#ifndef OPENSSL_NO_ENGINE
67#include <openssl/engine.h> 63#include <openssl/engine.h>
68#endif 64#endif
69#ifndef OPENSSL_NO_DH
70#include <openssl/dh.h>
71#endif
72 65
73DSA_SIG *DSA_SIG_new(void) 66#if 0
67#undef OpenSSL_add_all_algorithms
68
69void OpenSSL_add_all_algorithms(void)
74 { 70 {
75 DSA_SIG *sig; 71 OPENSSL_add_all_algorithms_noconf();
76 sig = OPENSSL_malloc(sizeof(DSA_SIG));
77 if (!sig)
78 return NULL;
79 sig->r = NULL;
80 sig->s = NULL;
81 return sig;
82 } 72 }
73#endif
83 74
84void DSA_SIG_free(DSA_SIG *sig) 75void OPENSSL_add_all_algorithms_noconf(void)
85 { 76 {
86 if (sig) 77 /*
87 { 78 * For the moment OPENSSL_cpuid_setup does something
88 if (sig->r) 79 * only on IA-32, but we reserve the option for all
89 BN_free(sig->r); 80 * platforms...
90 if (sig->s) 81 */
91 BN_free(sig->s); 82 OPENSSL_cpuid_setup();
92 OPENSSL_free(sig); 83 OpenSSL_add_all_ciphers();
93 } 84 OpenSSL_add_all_digests();
85#ifndef OPENSSL_NO_ENGINE
86# if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
87 ENGINE_setup_bsd_cryptodev();
88# endif
89#endif
94 } 90 }
95