79
79
#include <openssl/engine.h>
80
80
81
81
#ifndef W_OK
82
- # ifdef VMS
82
+ # ifdef OPENSSL_SYS_VMS
83
83
# if defined(__DECC )
84
84
# include <unistd.h>
85
85
# else
@@ -545,7 +545,7 @@ EF_ALIGNMENT=0;
545
545
if (configfile == NULL )
546
546
{
547
547
/* We will just use 'buf[0]' as a temporary buffer. */
548
- #ifdef VMS
548
+ #ifdef OPENSSL_SYS_VMS
549
549
strncpy (buf [0 ],X509_get_default_cert_area (),
550
550
sizeof (buf [0 ])- 1 - sizeof (CONFIG_FILE ));
551
551
#else
@@ -755,7 +755,8 @@ EF_ALIGNMENT=0;
755
755
BIO_printf (bio_err ,"there needs to be defined a directory for new certificate to be placed in\n" );
756
756
goto err ;
757
757
}
758
- #ifndef VMS /* outdir is a directory spec, but access() for VMS demands a
758
+ #ifndef OPENSSL_SYS_VMS
759
+ /* outdir is a directory spec, but access() for VMS demands a
759
760
filename. In any case, stat(), below, will catch the problem
760
761
if outdir is not a directory spec, and the fopen() or open()
761
762
will catch an error if there is no write access.
@@ -853,7 +854,7 @@ EF_ALIGNMENT=0;
853
854
if (verbose )
854
855
{
855
856
BIO_set_fp (out ,stdout ,BIO_NOCLOSE |BIO_FP_TEXT ); /* cannot fail */
856
- #ifdef VMS
857
+ #ifdef OPENSSL_SYS_VMS
857
858
{
858
859
BIO * tmpbio = BIO_new (BIO_f_linebuffer ());
859
860
out = BIO_push (tmpbio , out );
@@ -996,7 +997,7 @@ EF_ALIGNMENT=0;
996
997
else
997
998
{
998
999
BIO_set_fp (Sout ,stdout ,BIO_NOCLOSE |BIO_FP_TEXT );
999
- #ifdef VMS
1000
+ #ifdef OPENSSL_SYS_VMS
1000
1001
{
1001
1002
BIO * tmpbio = BIO_new (BIO_f_linebuffer ());
1002
1003
Sout = BIO_push (tmpbio , Sout );
@@ -1232,7 +1233,7 @@ EF_ALIGNMENT=0;
1232
1233
1233
1234
strncpy (buf [0 ],serialfile ,BSIZE - 4 );
1234
1235
1235
- #ifdef VMS
1236
+ #ifdef OPENSSL_SYS_VMS
1236
1237
strcat (buf [0 ],"-new" );
1237
1238
#else
1238
1239
strcat (buf [0 ],".new" );
@@ -1242,7 +1243,7 @@ EF_ALIGNMENT=0;
1242
1243
1243
1244
strncpy (buf [1 ],dbfile ,BSIZE - 4 );
1244
1245
1245
- #ifdef VMS
1246
+ #ifdef OPENSSL_SYS_VMS
1246
1247
strcat (buf [1 ],"-new" );
1247
1248
#else
1248
1249
strcat (buf [1 ],".new" );
@@ -1272,7 +1273,7 @@ EF_ALIGNMENT=0;
1272
1273
1273
1274
strncpy (buf [2 ],outdir ,BSIZE - (j * 2 )- 6 );
1274
1275
1275
- #ifndef VMS
1276
+ #ifndef OPENSSL_SYS_VMS
1276
1277
strcat (buf [2 ],"/" );
1277
1278
#endif
1278
1279
@@ -1309,7 +1310,7 @@ EF_ALIGNMENT=0;
1309
1310
/* Rename the database and the serial file */
1310
1311
strncpy (buf [2 ],serialfile ,BSIZE - 4 );
1311
1312
1312
- #ifdef VMS
1313
+ #ifdef OPENSSL_SYS_VMS
1313
1314
strcat (buf [2 ],"-old" );
1314
1315
#else
1315
1316
strcat (buf [2 ],".old" );
@@ -1337,7 +1338,7 @@ EF_ALIGNMENT=0;
1337
1338
1338
1339
strncpy (buf [2 ],dbfile ,BSIZE - 4 );
1339
1340
1340
- #ifdef VMS
1341
+ #ifdef OPENSSL_SYS_VMS
1341
1342
strcat (buf [2 ],"-old" );
1342
1343
#else
1343
1344
strcat (buf [2 ],".old" );
0 commit comments