summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-04-27 01:14:46 +0000
committerUlf Möller <ulf@openssl.org>1999-04-27 01:14:46 +0000
commitf5d7a031a3c3e7b1700a67d6dc19daf3718ce6ee (patch)
treef5db72824de4586c35cef513ed48aff0d4b69a6b /crypto
parentb64f825671861144e1c24f2a5498a95a083021cd (diff)
New Configure option no-<cipher> (rsa, idea, rc5, ...).
Diffstat (limited to 'crypto')
-rw-r--r--crypto/Makefile.ssl4
-rw-r--r--crypto/asn1/Makefile.ssl2
-rw-r--r--crypto/asn1/d2i_dhp.c3
-rw-r--r--crypto/asn1/d2i_dsap.c3
-rw-r--r--crypto/asn1/d2i_r_pr.c3
-rw-r--r--crypto/asn1/d2i_r_pu.c3
-rw-r--r--crypto/asn1/d2i_s_pr.c3
-rw-r--r--crypto/asn1/d2i_s_pu.c5
-rw-r--r--crypto/asn1/i2d_dhp.c2
-rw-r--r--crypto/asn1/i2d_dsap.c2
-rw-r--r--crypto/asn1/i2d_r_pr.c2
-rw-r--r--crypto/asn1/i2d_r_pu.c3
-rw-r--r--crypto/asn1/i2d_s_pr.c3
-rw-r--r--crypto/asn1/i2d_s_pu.c3
-rw-r--r--crypto/asn1/n_pkey.c4
-rw-r--r--crypto/bf/Makefile.ssl2
-rw-r--r--crypto/bf/bftest.c9
-rw-r--r--crypto/bf/blowfish.h4
-rw-r--r--crypto/bio/Makefile.ssl2
-rw-r--r--crypto/bn/Makefile.ssl2
-rw-r--r--crypto/buffer/Makefile.ssl2
-rw-r--r--crypto/cast/Makefile.ssl2
-rw-r--r--crypto/cast/cast.h4
-rw-r--r--crypto/cast/casttest.c10
-rw-r--r--crypto/comp/Makefile.ssl2
-rw-r--r--crypto/conf/Makefile.ssl2
-rw-r--r--crypto/des/Makefile.ssl2
-rw-r--r--crypto/des/des.h4
-rw-r--r--crypto/des/destest.c13
-rw-r--r--crypto/des/ede_cbcm_enc.c2
-rw-r--r--crypto/dh/Makefile.ssl2
-rw-r--r--crypto/dh/dh.h4
-rw-r--r--crypto/dh/dhtest.c9
-rw-r--r--crypto/dsa/Makefile.ssl2
-rw-r--r--crypto/dsa/dsa.h4
-rw-r--r--crypto/dsa/dsatest.c13
-rw-r--r--crypto/err/Makefile.ssl2
-rw-r--r--crypto/evp/Makefile.ssl2
-rw-r--r--crypto/evp/evp.h24
-rw-r--r--crypto/evp/evp_pkey.c23
-rw-r--r--crypto/evp/p_open.c2
-rw-r--r--crypto/evp/p_seal.c2
-rw-r--r--crypto/hmac/Makefile.ssl2
-rw-r--r--crypto/hmac/hmac.h4
-rw-r--r--crypto/hmac/hmactest.c9
-rw-r--r--crypto/idea/Makefile.ssl2
-rw-r--r--crypto/idea/idea.h4
-rw-r--r--crypto/idea/ideatest.c10
-rw-r--r--crypto/lhash/Makefile.ssl2
-rw-r--r--crypto/md2/Makefile.ssl2
-rw-r--r--crypto/md2/md2.h4
-rw-r--r--crypto/md2/md2test.c9
-rw-r--r--crypto/md5/Makefile.ssl2
-rw-r--r--crypto/md5/md5.h4
-rw-r--r--crypto/md5/md5test.c9
-rw-r--r--crypto/mdc2/Makefile.ssl2
-rw-r--r--crypto/mdc2/mdc2.h4
-rw-r--r--crypto/mdc2/mdc2test.c14
-rw-r--r--crypto/objects/Makefile.ssl2
-rw-r--r--crypto/objects/obj_dat.h2
-rw-r--r--crypto/pem/Makefile.ssl2
-rw-r--r--crypto/pem/pem.h34
-rw-r--r--crypto/pem/pem_seal.c2
-rw-r--r--crypto/pkcs12/Makefile.ssl2
-rw-r--r--crypto/pkcs12/p12_crpt.c4
-rw-r--r--crypto/pkcs7/Makefile.ssl2
-rw-r--r--crypto/rand/Makefile.ssl2
-rw-r--r--crypto/rc2/Makefile.ssl2
-rw-r--r--crypto/rc2/rc2.h4
-rw-r--r--crypto/rc2/rc2test.c9
-rw-r--r--crypto/rc4/Makefile.ssl2
-rw-r--r--crypto/rc4/rc4.h4
-rw-r--r--crypto/rc4/rc4test.c10
-rw-r--r--crypto/rc5/Makefile.ssl2
-rw-r--r--crypto/rc5/rc5.h4
-rw-r--r--crypto/rc5/rc5test.c9
-rw-r--r--crypto/ripemd/Makefile.ssl2
-rw-r--r--crypto/ripemd/ripemd.h4
-rw-r--r--crypto/ripemd/rmdtest.c10
-rw-r--r--crypto/rsa/Makefile.ssl2
-rw-r--r--crypto/rsa/rsa.h4
-rw-r--r--crypto/rsa/rsa_oaep_test.c10
-rw-r--r--crypto/sha/Makefile.ssl2
-rw-r--r--crypto/sha/sha.h8
-rw-r--r--crypto/sha/sha1_one.c2
-rw-r--r--crypto/sha/sha1dgst.c2
-rw-r--r--crypto/sha/sha1test.c9
-rw-r--r--crypto/sha/sha_dgst.c3
-rw-r--r--crypto/sha/sha_one.c2
-rw-r--r--crypto/sha/shatest.c9
-rw-r--r--crypto/stack/Makefile.ssl2
-rw-r--r--crypto/txt_db/Makefile.ssl2
-rw-r--r--crypto/x509/Makefile.ssl2
-rw-r--r--crypto/x509/x509.h24
-rw-r--r--crypto/x509v3/Makefile.ssl2
95 files changed, 388 insertions, 90 deletions
diff --git a/crypto/Makefile.ssl b/crypto/Makefile.ssl
index 4c0add7a6d..ad6cfc9534 100644
--- a/crypto/Makefile.ssl
+++ b/crypto/Makefile.ssl
@@ -115,11 +115,11 @@ lint:
done;
depend:
- $(MAKEDEPEND) $(INCLUDE) $(PROGS) $(LIBSRC)
+ $(MAKEDEPEND) $(INCLUDE) $(DEPFLAG) $(PROGS) $(LIBSRC)
@for i in $(SDIRS) ;\
do \
(cd $$i; echo "making depend in crypto/$$i..."; \
- $(MAKE) MAKEFILE='${MAKEFILE}' INCLUDES='${INCLUDES}' depend ); \
+ $(MAKE) MAKEFILE='${MAKEFILE}' INCLUDES='${INCLUDES}' DEPFLAG='${DEPFLAG}' depend ); \
done;
clean:
diff --git a/crypto/asn1/Makefile.ssl b/crypto/asn1/Makefile.ssl
index 87f392eeb3..3bfadb1a3b 100644
--- a/crypto/asn1/Makefile.ssl
+++ b/crypto/asn1/Makefile.ssl
@@ -101,7 +101,7 @@ lint:
lint -DLINT $(INCLUDES) $(SRC)>fluff
depend:
- $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
+ $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
dclean:
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
diff --git a/crypto/asn1/d2i_dhp.c b/crypto/asn1/d2i_dhp.c
index a0f514dc7e..a077211a4c 100644
--- a/crypto/asn1/d2i_dhp.c
+++ b/crypto/asn1/d2i_dhp.c
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
+#ifndef NO_DH
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
@@ -97,4 +98,4 @@ err:
if (bs != NULL) ASN1_BIT_STRING_free(bs);
return(NULL);
}
-
+#endif
diff --git a/crypto/asn1/d2i_dsap.c b/crypto/asn1/d2i_dsap.c
index 2582b8fd45..51863a8b13 100644
--- a/crypto/asn1/d2i_dsap.c
+++ b/crypto/asn1/d2i_dsap.c
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
+#ifndef NO_DSA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
@@ -90,4 +91,4 @@ err:
if (bs != NULL) ASN1_BIT_STRING_free(bs);
return(NULL);
}
-
+#endif
diff --git a/crypto/asn1/d2i_r_pr.c b/crypto/asn1/d2i_r_pr.c
index f6d118937c..18f11b6f5e 100644
--- a/crypto/asn1/d2i_r_pr.c
+++ b/crypto/asn1/d2i_r_pr.c
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
+#ifndef NO_RSA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
@@ -117,4 +118,4 @@ err:
if (bs != NULL) ASN1_INTEGER_free(bs);
return(NULL);
}
-
+#endif
diff --git a/crypto/asn1/d2i_r_pu.c b/crypto/asn1/d2i_r_pu.c
index 80deaab71a..04cfe5671e 100644
--- a/crypto/asn1/d2i_r_pu.c
+++ b/crypto/asn1/d2i_r_pu.c
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
+#ifndef NO_RSA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
@@ -89,4 +90,4 @@ err:
if (bs != NULL) ASN1_INTEGER_free(bs);
return(NULL);
}
-
+#endif
diff --git a/crypto/asn1/d2i_s_pr.c b/crypto/asn1/d2i_s_pr.c
index cf64a2edad..050e1cc5fb 100644
--- a/crypto/asn1/d2i_s_pr.c
+++ b/crypto/asn1/d2i_s_pr.c
@@ -58,6 +58,7 @@
/* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */
+#ifndef NO_DSA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
@@ -101,4 +102,4 @@ err:
if (bs != NULL) ASN1_INTEGER_free(bs);
return(NULL);
}
-
+#endif
diff --git a/crypto/asn1/d2i_s_pu.c b/crypto/asn1/d2i_s_pu.c
index 4d65cef5a9..2b1bf638c1 100644
--- a/crypto/asn1/d2i_s_pu.c
+++ b/crypto/asn1/d2i_s_pu.c
@@ -56,8 +56,9 @@
* [including the GNU Public Licence.]
*/
-/* Origional version from Steven Schoch <schoch@sheba.arc.nasa.gov> */
+/* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */
+#ifndef NO_DSA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
@@ -113,4 +114,4 @@ err:
if (bs != NULL) ASN1_INTEGER_free(bs);
return(NULL);
}
-
+#endif
diff --git a/crypto/asn1/i2d_dhp.c b/crypto/asn1/i2d_dhp.c
index e82f2a96af..1b2b4b8ebe 100644
--- a/crypto/asn1/i2d_dhp.c
+++ b/crypto/asn1/i2d_dhp.c
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
+#ifndef NO_DH
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
@@ -119,3 +120,4 @@ err:
*pp=p;
return(ret);
}
+#endif
diff --git a/crypto/asn1/i2d_dsap.c b/crypto/asn1/i2d_dsap.c
index 9317110464..f36f0da4e2 100644
--- a/crypto/asn1/i2d_dsap.c
+++ b/crypto/asn1/i2d_dsap.c
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
+#ifndef NO_DSA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
@@ -112,4 +113,5 @@ err:
*pp=p;
return(ret);
}
+#endif
diff --git a/crypto/asn1/i2d_r_pr.c b/crypto/asn1/i2d_r_pr.c
index 617c10af46..27e6844a7f 100644
--- a/crypto/asn1/i2d_r_pr.c
+++ b/crypto/asn1/i2d_r_pr.c
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
+#ifndef NO_RSA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
@@ -122,4 +123,5 @@ int i2d_RSAPrivateKey(RSA *a, unsigned char **pp)
*pp=p;
return(t);
}
+#endif
diff --git a/crypto/asn1/i2d_r_pu.c b/crypto/asn1/i2d_r_pu.c
index 03f7348527..6d01bfa8b5 100644
--- a/crypto/asn1/i2d_r_pu.c
+++ b/crypto/asn1/i2d_r_pu.c
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
+#ifndef NO_RSA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
@@ -108,4 +109,4 @@ int i2d_RSAPublicKey(RSA *a, unsigned char **pp)
*pp=p;
return(t);
}
-
+#endif
diff --git a/crypto/asn1/i2d_s_pr.c b/crypto/asn1/i2d_s_pr.c
index f3a5e8fe9d..5d3dcdf197 100644
--- a/crypto/asn1/i2d_s_pr.c
+++ b/crypto/asn1/i2d_s_pr.c
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
+#ifndef NO_DSA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
@@ -119,4 +120,4 @@ int i2d_DSAPrivateKey(DSA *a, unsigned char **pp)
*pp=p;
return(t);
}
-
+#endif
diff --git a/crypto/asn1/i2d_s_pu.c b/crypto/asn1/i2d_s_pu.c
index 7903ea410d..25b150794a 100644
--- a/crypto/asn1/i2d_s_pu.c
+++ b/crypto/asn1/i2d_s_pu.c
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
+#ifndef NO_DSA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/bn.h>
@@ -124,4 +125,4 @@ int i2d_DSAPublicKey(DSA *a, unsigned char **pp)
*pp=p;
return(t);
}
-
+#endif
diff --git a/crypto/asn1/n_pkey.c b/crypto/asn1/n_pkey.c
index 9133bc6d29..cdc0d8b7c4 100644
--- a/crypto/asn1/n_pkey.c
+++ b/crypto/asn1/n_pkey.c
@@ -56,6 +56,7 @@
* [including the GNU Public Licence.]
*/
+#ifndef NO_RSA
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/rsa.h>
@@ -78,6 +79,7 @@ static int i2d_NETSCAPE_PKEY(NETSCAPE_PKEY *a, unsigned char **pp);
static NETSCAPE_PKEY *d2i_NETSCAPE_PKEY(NETSCAPE_PKEY **a,unsigned char **pp, long length);
static NETSCAPE_PKEY *NETSCAPE_PKEY_new(void);
static void NETSCAPE_PKEY_free(NETSCAPE_PKEY *);
+
int i2d_Netscape_RSA(RSA *a, unsigned char **pp, int (*cb)())
{
int i,j,l[6];
@@ -336,4 +338,4 @@ static void NETSCAPE_PKEY_free(NETSCAPE_PKEY *a)
}
#endif /* NO_RC4 */
-
+#endif
diff --git a/crypto/bf/Makefile.ssl b/crypto/bf/Makefile.ssl
index b1de95010c..225d818eca 100644
--- a/crypto/bf/Makefile.ssl
+++ b/crypto/bf/Makefile.ssl
@@ -91,7 +91,7 @@ lint:
lint -DLINT $(INCLUDES) $(SRC)>fluff
depend:
- $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
+ $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
dclean:
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
diff --git a/crypto/bf/bftest.c b/crypto/bf/bftest.c
index 09