Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/lib/libcrypto Pull up revision 1.3 (requested by itojun...
details: https://anonhg.NetBSD.org/src/rev/88815e34981c
branches: netbsd-1-6
changeset: 527854:88815e34981c
user: tv <tv%NetBSD.org@localhost>
date: Mon Jun 10 18:02:11 2002 +0000
description:
Pull up revision 1.3 (requested by itojun in ticket #219):
use weak_alias to make libcrypto_{idea,rc5} actually useful.
diffstat:
lib/libcrypto/i_cbc_dummy.c | 8 ++++++++
lib/libcrypto/i_skey_dummy.c | 8 ++++++++
lib/libcrypto/rc5_enc_dummy.c | 10 ++++++++++
lib/libcrypto/rc5_skey_dummy.c | 6 ++++++
4 files changed, 32 insertions(+), 0 deletions(-)
diffs (72 lines):
diff -r 7259cb316dfd -r 88815e34981c lib/libcrypto/i_cbc_dummy.c
--- a/lib/libcrypto/i_cbc_dummy.c Mon Jun 10 17:48:08 2002 +0000
+++ b/lib/libcrypto/i_cbc_dummy.c Mon Jun 10 18:02:11 2002 +0000
@@ -63,6 +63,14 @@
#include <stdio.h>
#include <stdlib.h>
+#ifdef __weak_alias
+#define idea_cbc_encrypt _idea_cbc_encrypt
+#define idea_encrypt _idea_encrypt
+
+__weak_alias(idea_cbc_encrypt,_idea_cbc_encrypt)
+__weak_alias(idea_encrypt,_idea_encrypt)
+#endif
+
__warn_references(idea_cbc_encrypt,
"IDEA is a patented algorithm; link against libcrypto_idea.a")
__warn_references(idea_encrypt,
diff -r 7259cb316dfd -r 88815e34981c lib/libcrypto/i_skey_dummy.c
--- a/lib/libcrypto/i_skey_dummy.c Mon Jun 10 17:48:08 2002 +0000
+++ b/lib/libcrypto/i_skey_dummy.c Mon Jun 10 18:02:11 2002 +0000
@@ -63,6 +63,14 @@
#include <stdio.h>
#include <stdlib.h>
+#ifdef __weak_alias
+#define idea_set_encrypt_key _idea_set_encrypt_key
+#define idea_set_decrypt_key _idea_set_decrypt_key
+
+__weak_alias(idea_set_encrypt_key,_idea_set_encrypt_key)
+__weak_alias(idea_set_decrypt_key,_idea_set_decrypt_key)
+#endif
+
__warn_references(idea_set_encrypt_key,
"IDEA is a patented algorithm; link against libcrypto_idea.a")
__warn_references(idea_set_decrypt_key,
diff -r 7259cb316dfd -r 88815e34981c lib/libcrypto/rc5_enc_dummy.c
--- a/lib/libcrypto/rc5_enc_dummy.c Mon Jun 10 17:48:08 2002 +0000
+++ b/lib/libcrypto/rc5_enc_dummy.c Mon Jun 10 18:02:11 2002 +0000
@@ -64,6 +64,16 @@
#include <stdio.h>
#include <stdlib.h>
+#ifdef __weak_alias
+#define RC5_32_cbc_encrypt _RC5_32_cbc_encrypt
+#define RC5_32_encrypt _RC5_32_encrypt
+#define RC5_32_decrypt _RC5_32_decrypt
+
+__weak_alias(RC5_32_cbc_encrypt,_RC5_32_cbc_encrypt)
+__weak_alias(RC5_32_encrypt,_RC5_32_encrypt)
+__weak_alias(RC5_32_decrypt,_RC5_32_decrypt)
+#endif
+
__warn_references(RC5_32_cbc_encrypt,
"RC5 is a patented algorithm; link against libcrypto_rc5.a")
__warn_references(RC5_32_encrypt,
diff -r 7259cb316dfd -r 88815e34981c lib/libcrypto/rc5_skey_dummy.c
--- a/lib/libcrypto/rc5_skey_dummy.c Mon Jun 10 17:48:08 2002 +0000
+++ b/lib/libcrypto/rc5_skey_dummy.c Mon Jun 10 18:02:11 2002 +0000
@@ -63,6 +63,12 @@
#include <stdio.h>
#include <stdlib.h>
+#ifdef __weak_alias
+#define RC5_32_set_key _RC5_32_set_key
+
+__weak_alias(RC5_32_set_key,_RC5_32_set_key)
+#endif
+
__warn_references(RC5_32_set_key,
"RC5 is a patented algorithm; link against libcrypto_rc5.a")
Home |
Main Index |
Thread Index |
Old Index