summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-02-20 08:13:47 +0000
committerRichard Levitte <levitte@openssl.org>2001-02-20 08:13:47 +0000
commitbc36ee6227517edae802bcb0da68d4f04fe1fb5e (patch)
tree19782c56cd5f5930807df5c8bfb4963a05121c48
parentf2bc668429fa2abdc77db0db861a9bb2be0c3a85 (diff)
Use new-style system-id macros everywhere possible. I hope I haven't
missed any. This compiles and runs on Linux, and external applications have no problems with it. The definite test will be to build this on VMS.
-rwxr-xr-xConfigure1
-rw-r--r--apps/app_rand.c2
-rw-r--r--apps/apps.c10
-rw-r--r--apps/asn1pars.c2
-rw-r--r--apps/ca.c21
-rw-r--r--apps/ciphers.c2
-rw-r--r--apps/crl.c4
-rw-r--r--apps/crl2p7.c2
-rw-r--r--apps/dgst.c2
-rw-r--r--apps/dh.c2
-rw-r--r--apps/dhparam.c2
-rw-r--r--apps/dsa.c2
-rw-r--r--apps/dsaparam.c2
-rw-r--r--apps/enc.c2
-rw-r--r--apps/engine.c2
-rw-r--r--apps/errstr.c2
-rw-r--r--apps/gendh.c2
-rw-r--r--apps/gendsa.c2
-rw-r--r--apps/genrsa.c2
-rw-r--r--apps/nseq.c2
-rw-r--r--apps/openssl.c6
-rw-r--r--apps/passwd.c2
-rw-r--r--apps/pkcs12.c2
-rw-r--r--apps/pkcs7.c2
-rw-r--r--apps/pkcs8.c2
-rw-r--r--apps/rand.c2
-rw-r--r--apps/req.c6
-rw-r--r--apps/rsa.c2
-rw-r--r--apps/rsautl.c2
-rw-r--r--apps/s_apps.h4
-rw-r--r--apps/s_client.c16
-rw-r--r--apps/s_server.c14
-rw-r--r--apps/s_socket.c30
-rw-r--r--apps/s_time.c8
-rw-r--r--apps/sess_id.c2
-rw-r--r--apps/smime.c2
-rw-r--r--apps/speed.c4
-rw-r--r--apps/spkac.c4
-rw-r--r--apps/x509.c4
-rw-r--r--crypto/asn1/a_gentm.c4
-rw-r--r--crypto/asn1/a_time.c2
-rw-r--r--crypto/asn1/a_utctm.c10
-rw-r--r--crypto/bf/bf_opts.c6
-rw-r--r--crypto/bf/bfspeed.c6
-rw-r--r--crypto/bio/b_sock.c12
-rw-r--r--crypto/bio/bio_cb.c2
-rw-r--r--crypto/bio/bss_acpt.c4
-rw-r--r--crypto/bio/bss_conn.c4
-rw-r--r--crypto/bio/bss_fd.c2
-rw-r--r--crypto/bio/bss_file.c4
-rw-r--r--crypto/bio/bss_log.c16
-rw-r--r--crypto/bio/bss_sock.c4
-rw-r--r--crypto/bn/bnspeed.c4
-rw-r--r--crypto/bn/bntest.c2
-rw-r--r--crypto/bn/expspeed.c4
-rw-r--r--crypto/bn/exptest.c2
-rw-r--r--crypto/bn/vms-helper.c2
-rw-r--r--crypto/cast/cast_spd.c6
-rw-r--r--crypto/cast/castopts.c6
-rw-r--r--crypto/comp/c_zlib.c6
-rw-r--r--crypto/conf/conf_def.c2
-rw-r--r--crypto/conf/conf_lib.c2
-rw-r--r--crypto/cryptlib.c10
-rw-r--r--crypto/cryptlib.h2
-rw-r--r--crypto/des/des.c22
-rw-r--r--crypto/des/des_locl.h12
-rw-r--r--crypto/des/des_opts.c8
-rw-r--r--crypto/des/destest.c6
-rw-r--r--crypto/des/read_pwd.c42
-rw-r--r--crypto/des/speed.c6
-rw-r--r--crypto/dh/dhtest.c6
-rw-r--r--crypto/dsa/dsatest.c4
-rw-r--r--crypto/dso/dso_vms.c6
-rw-r--r--crypto/dso/dso_win32.c4
-rw-r--r--crypto/err/err.c2
-rw-r--r--crypto/idea/idea_spd.c6
-rw-r--r--crypto/rand/md_rand.c2
-rw-r--r--crypto/rand/rand_egd.c2
-rw-r--r--crypto/rand/rand_unix.c2
-rw-r--r--crypto/rand/rand_vms.c2
-rw-r--r--crypto/rand/rand_win.c2
-rw-r--r--crypto/rand/randfile.c10
-rw-r--r--crypto/rc2/rc2speed.c6
-rw-r--r--crypto/rc4/rc4.c2
-rw-r--r--crypto/rc4/rc4speed.c6
-rw-r--r--crypto/rc5/rc5speed.c6
-rw-r--r--crypto/rsa/rsa_sign.c2
-rw-r--r--crypto/symhacks.h2
-rw-r--r--crypto/threads/mttest.c6
-rw-r--r--crypto/threads/th-lock.c6
-rw-r--r--crypto/tmdiff.c24
-rw-r--r--crypto/txt_db/txt_db.c6
-rw-r--r--ssl/kssl.c10
-rw-r--r--ssl/s23_clnt.c4
-rw-r--r--ssl/s23_lib.c6
-rw-r--r--ssl/s23_srvr.c6
-rw-r--r--ssl/s2_clnt.c4
-rw-r--r--ssl/s2_enc.c4
-rw-r--r--ssl/s2_lib.c4
-rw-r--r--ssl/s2_meth.c4
-rw-r--r--ssl/s2_pkt.c4
-rw-r--r--ssl/s2_srvr.c4
-rw-r--r--ssl/s3_both.c2
-rw-r--r--ssl/s3_clnt.c76
-rw-r--r--ssl/s3_lib.c52
-rw-r--r--ssl/s3_pkt.c2
-rw-r--r--ssl/s3_srvr.c46
-rw-r--r--ssl/ssl_algs.c18
-rw-r--r--ssl/ssl_cert.c29
-rw-r--r--ssl/ssl_ciph.c8
-rw-r--r--ssl/ssl_err.c4
-rw-r--r--ssl/ssl_err2.c2
-rw-r--r--ssl/ssl_lib.c20
-rw-r--r--ssl/ssl_locl.h13
-rw-r--r--ssl/ssl_rsa.c30
-rw-r--r--ssl/ssl_stat.c12
-rw-r--r--ssl/ssl_txt.c2
-rw-r--r--ssl/ssltest.c42
118 files changed, 464 insertions, 460 deletions
diff --git a/Configure b/Configure
index ada01f8236..4bab7e6518 100755
--- a/Configure
+++ b/Configure
@@ -693,7 +693,6 @@ if ($no_krb5
$cflags="-DOPENSSL_NO_KRB5 $cflags";
$options.=" no-krb5" unless $no_krb5;
$openssl_algorithm_defines .= "#define OPENSSL_NO_KRB5\n";
- $openssl_algorithm_defines .= "#define NO_KRB5\n";
}
else
{
diff --git a/apps/app_rand.c b/apps/app_rand.c
index 9d6d5fbf6f..b7b6128c1e 100644
--- a/apps/app_rand.c
+++ b/apps/app_rand.c
@@ -124,7 +124,7 @@ int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn)
int consider_randfile = (file == NULL);
char buffer[200];
-#ifdef WINDOWS
+#ifdef OPENSSL_SYS_WINDOWS
BIO_printf(bio_e,"Loading 'screen' into random state -");
BIO_flush(bio_e);
RAND_screen();
diff --git a/apps/apps.c b/apps/apps.c
index a1397a36d8..2ecb6618f5 100644
--- a/apps/apps.c
+++ b/apps/apps.c
@@ -70,7 +70,7 @@
#include <openssl/pkcs12.h>
#include <openssl/safestack.h>
-#ifdef WINDOWS
+#ifdef OPENSSL_SYS_WINDOWS
# include "bss_file.c"
#endif
@@ -184,7 +184,7 @@ int str2fmt(char *s)
return(FORMAT_UNDEF);
}
-#if defined(MSDOS) || defined(WIN32) || defined(WIN16)
+#if defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WIN16)
void program_name(char *in, char *out, int size)
{
int i,n;
@@ -222,7 +222,7 @@ void program_name(char *in, char *out, int size)
out[n]='\0';
}
#else
-#ifdef VMS
+#ifdef OPENSSL_SYS_VMS
void program_name(char *in, char *out, int size)
{
char *p=in, *q;
@@ -258,10 +258,10 @@ void program_name(char *in, char *out, int size)
#endif
#endif
-#ifdef WIN32
+#ifdef OPENSSL_SYS_WIN32
int WIN32_rename(char *from, char *to)
{
-#ifdef WINNT
+#ifdef OPENSSL_SYS_WINNT
int ret;
/* Note: MoveFileEx() doesn't work under Win95, Win98 */
diff --git a/apps/asn1pars.c b/apps/asn1pars.c
index f25c9f84e8..108ed7daa0 100644
--- a/apps/asn1pars.c
+++ b/apps/asn1pars.c
@@ -206,7 +206,7 @@ bad:
goto end;
}
BIO_set_fp(out,stdout,BIO_NOCLOSE|BIO_FP_TEXT);
-#ifdef VMS
+#ifdef OPENSSL_SYS_VMS
{
BIO *tmpbio = BIO_new(BIO_f_linebuffer());
out = BIO_push(tmpbio, out);
diff --git a/apps/ca.c b/apps/ca.c
index 584a2f561f..a72aaef184 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -79,7 +79,7 @@
#include <openssl/engine.h>
#ifndef W_OK
-# ifdef VMS
+# ifdef OPENSSL_SYS_VMS
# if defined(__DECC)
# include <unistd.h>
# else
@@ -545,7 +545,7 @@ bad:
if (configfile == NULL)
{
/* We will just use 'buf[0]' as a temporary buffer. */
-#ifdef VMS
+#ifdef OPENSSL_SYS_VMS
strncpy(buf[0],X509_get_default_cert_area(),
sizeof(buf[0])-1-sizeof(CONFIG_FILE));
#else
@@ -755,7 +755,8 @@ bad:
BIO_printf(bio_err,"there needs to be defined a directory for new certificate to be placed in\n");
goto err;
}
-#ifndef VMS /* outdir is a directory spec, but access() for VMS demands a
+#ifndef OPENSSL_SYS_VMS
+ /* outdir is a directory spec, but access() for VMS demands a
filename. In any case, stat(), below, will catch the problem
if outdir is not a directory spec, and the fopen() or open()
will catch an error if there is no write access.
@@ -853,7 +854,7 @@ bad:
if (verbose)
{
BIO_set_fp(out,stdout,BIO_NOCLOSE|BIO_FP_TEXT); /* cannot fail */
-#ifdef VMS
+#ifdef OPENSSL_SYS_VMS
{
BIO *tmpbio = BIO_new(BIO_f_linebuffer());
out = BIO_push(tmpbio, out);
@@ -996,7 +997,7 @@ bad:
else
{
BIO_set_fp(Sout,stdout,BIO_NOCLOSE|BIO_FP_TEXT);
-#ifdef VMS
+#ifdef OPENSSL_SYS_VMS
{
BIO *tmpbio = BIO_new(BIO_f_linebuffer());
Sout = BIO_push(tmpbio, Sout);
@@ -1232,7 +1233,7 @@ bad:
strncpy(buf[0],serialfile,BSIZE-4);
-#ifdef VMS
+#ifdef OPENSSL_SYS_VMS
strcat(buf[0],"-new");
#else
strcat(buf[0],".new");
@@ -1242,7 +1243,7 @@ bad:
strncpy(buf[1],dbfile,BSIZE-4);
-#ifdef VMS
+#ifdef OPENSSL_SYS_VMS
strcat(buf[1],"-new");
#else
strcat(buf[1],".new");
@@ -1272,7 +1273,7 @@ bad:
strncpy(buf[2],outdir,BSIZE-(j*2)-6);
-#ifndef VMS
+#ifndef OPENSSL_SYS_VMS
strcat(buf[2],"/");
#endif
@@ -1309,7 +1310,7 @@ bad:
/* Rename the database and the serial file */
strncpy(buf[2],serialfile,BSIZE-4);
-#ifdef VMS
+#ifdef OPENSSL_SYS_VMS
strcat(buf[2],"-old");
#else
strcat(buf[2],".old");
@@ -1337,7 +1338,7 @@ bad:
strncpy(buf[2],dbfile,BSIZE-4);
-#ifdef VMS
+#ifdef OPENSSL_SYS_VMS
strcat(buf[2],"-old");
#else
strcat(buf[2],".old");
diff --git a/apps/ciphers.c b/apps/ciphers.c
index 9ba1bffd37..c3bd859d6