Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/openssl/apps reject rc5/idea/mdc2 commands if OP...



details:   https://anonhg.NetBSD.org/src/rev/dec443122b31
branches:  trunk
changeset: 551036:dec443122b31
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Aug 27 21:05:02 2003 +0000

description:
reject rc5/idea/mdc2 commands if OPENSSL_NO_xx is specified

diffstat:

 crypto/dist/openssl/apps/progs.h |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (56 lines):

diff -r a24a63c49a6f -r dec443122b31 crypto/dist/openssl/apps/progs.h
--- a/crypto/dist/openssl/apps/progs.h  Wed Aug 27 20:35:42 2003 +0000
+++ b/crypto/dist/openssl/apps/progs.h  Wed Aug 27 21:05:02 2003 +0000
@@ -90,7 +90,9 @@
        {FUNC_TYPE_MD,"md5",dgst_main},
        {FUNC_TYPE_MD,"sha",dgst_main},
        {FUNC_TYPE_MD,"sha1",dgst_main},
+#ifndef OPENSSL_NO_MDC2
        {FUNC_TYPE_MD,"mdc2",dgst_main},
+#endif
        {FUNC_TYPE_MD,"rmd160",dgst_main},
        {FUNC_TYPE_CIPHER,"aes-128-cbc",enc_main},
        {FUNC_TYPE_CIPHER,"aes-128-ecb",enc_main},
@@ -102,13 +104,17 @@
        {FUNC_TYPE_CIPHER,"des",enc_main},
        {FUNC_TYPE_CIPHER,"des3",enc_main},
        {FUNC_TYPE_CIPHER,"desx",enc_main},
+#ifndef OPENSSL_NO_IDEA
        {FUNC_TYPE_CIPHER,"idea",enc_main},
+#endif
        {FUNC_TYPE_CIPHER,"rc4",enc_main},
        {FUNC_TYPE_CIPHER,"rc4-40",enc_main},
        {FUNC_TYPE_CIPHER,"rc2",enc_main},
        {FUNC_TYPE_CIPHER,"bf",enc_main},
        {FUNC_TYPE_CIPHER,"cast",enc_main},
+#ifndef OPENSSL_NO_RC5
        {FUNC_TYPE_CIPHER,"rc5",enc_main},
+#endif
        {FUNC_TYPE_CIPHER,"des-ecb",enc_main},
        {FUNC_TYPE_CIPHER,"des-ede",enc_main},
        {FUNC_TYPE_CIPHER,"des-ede3",enc_main},
@@ -121,10 +127,12 @@
        {FUNC_TYPE_CIPHER,"des-ofb",enc_main},
        {FUNC_TYPE_CIPHER,"des-ede-ofb",enc_main},
        {FUNC_TYPE_CIPHER,"des-ede3-ofb",enc_main},
+#ifndef OPENSSL_NO_IDEA
        {FUNC_TYPE_CIPHER,"idea-cbc",enc_main},
        {FUNC_TYPE_CIPHER,"idea-ecb",enc_main},
        {FUNC_TYPE_CIPHER,"idea-cfb",enc_main},
        {FUNC_TYPE_CIPHER,"idea-ofb",enc_main},
+#endif
        {FUNC_TYPE_CIPHER,"rc2-cbc",enc_main},
        {FUNC_TYPE_CIPHER,"rc2-ecb",enc_main},
        {FUNC_TYPE_CIPHER,"rc2-cfb",enc_main},
@@ -140,9 +148,11 @@
        {FUNC_TYPE_CIPHER,"cast5-cfb",enc_main},
        {FUNC_TYPE_CIPHER,"cast5-ofb",enc_main},
        {FUNC_TYPE_CIPHER,"cast-cbc",enc_main},
+#ifndef OPENSSL_NO_RC5
        {FUNC_TYPE_CIPHER,"rc5-cbc",enc_main},
        {FUNC_TYPE_CIPHER,"rc5-ecb",enc_main},
        {FUNC_TYPE_CIPHER,"rc5-cfb",enc_main},
        {FUNC_TYPE_CIPHER,"rc5-ofb",enc_main},
+#endif
        {0,NULL,NULL}
        };



Home | Main Index | Thread Index | Old Index