projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make all engines available in the openssl application.
[openssl.git]
/
ssl
/
ssl_algs.c
diff --git
a/ssl/ssl_algs.c
b/ssl/ssl_algs.c
index 36b03335bb61d69aa7957ceb6d872af766d70240..a91ee6d22e4581c429a47c8e1a447d730a806727 100644
(file)
--- a/
ssl/ssl_algs.c
+++ b/
ssl/ssl_algs.c
@@
-1,5
+1,5
@@
/* ssl/ssl_algs.c */
/* ssl/ssl_algs.c */
-/* Copyright (C) 1995-199
7
Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-199
8
Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* All rights reserved.
*
* This package is an SSL implementation written
@@
-57,11
+57,11
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
-#include
"objects.h"
-#include
"lhash.h"
+#include
<openssl/objects.h>
+#include
<openssl/lhash.h>
#include "ssl_locl.h"
#include "ssl_locl.h"
-
void SSLeay_add_ssl_algorithms(
)
+
int SSL_library_init(void
)
{
#ifndef NO_DES
EVP_add_cipher(EVP_des_cbc());
{
#ifndef NO_DES
EVP_add_cipher(EVP_des_cbc());
@@
-71,22
+71,25
@@
void SSLeay_add_ssl_algorithms()
EVP_add_cipher(EVP_idea_cbc());
#endif
#ifndef NO_RC4
EVP_add_cipher(EVP_idea_cbc());
#endif
#ifndef NO_RC4
-
EVP_add_cipher(EVP_rc4());
+ EVP_add_cipher(EVP_rc4());
#endif
#ifndef NO_RC2
#endif
#ifndef NO_RC2
-
EVP_add_cipher(EVP_rc2_cbc());
+ EVP_add_cipher(EVP_rc2_cbc());
#endif
#ifndef NO_MD2
#endif
#ifndef NO_MD2
-
EVP_add_digest(EVP_md2());
+ EVP_add_digest(EVP_md2());
#endif
#ifndef NO_MD5
EVP_add_digest(EVP_md5());
#endif
#ifndef NO_MD5
EVP_add_digest(EVP_md5());
+ EVP_add_digest_alias(SN_md5,"ssl2-md5");
+ EVP_add_digest_alias(SN_md5,"ssl3-md5");
#endif
#endif
-#ifndef NO_SHA
1
+#ifndef NO_SHA
EVP_add_digest(EVP_sha1()); /* RSA with sha1 */
EVP_add_digest(EVP_sha1()); /* RSA with sha1 */
+ EVP_add_digest_alias(SN_sha1,"ssl3-sha1");
#endif
#endif
-#if !defined(NO_SHA
1
) && !defined(NO_DSA)
+#if !defined(NO_SHA) && !defined(NO_DSA)
EVP_add_digest(EVP_dss1()); /* DSA with sha1 */
#endif
EVP_add_digest(EVP_dss1()); /* DSA with sha1 */
#endif
@@
-95,5
+98,6
@@
void SSLeay_add_ssl_algorithms()
EVP_add_digest(EVP_sha());
EVP_add_digest(EVP_dss());
#endif
EVP_add_digest(EVP_sha());
EVP_add_digest(EVP_dss());
#endif
+ return(1);
}
}