summaryrefslogtreecommitdiff
path: root/lib/setup-vms.h
diff options
context:
space:
mode:
authorJohn Malmberg <wb8tyw@qsl.net>2015-07-01 20:54:09 -0500
committerJay Satiro <raysatiro@yahoo.com>2015-07-14 01:25:36 -0400
commit79416fb2d6d906210c93e6f5710cea201bdf6b0e (patch)
tree53ccb87492c6631f093e614a2c9ec0e5a52a0008 /lib/setup-vms.h
parent8f0178a56b72325a3906c0678a029cd33cfec84d (diff)
downloadcurl-79416fb2d6d906210c93e6f5710cea201bdf6b0e.tar.gz
openssl: VMS support for SHA256
setup-vms.h: More symbols for SHA256, hacks for older VAX openssl.h: Use OpenSSL OPENSSL_NO_SHA256 macro to allow building on VAX. openssl.c: Use OpenSSL version checks and OPENSSL_NO_SHA256 macro to allow building on VAX and 64 bit VMS.
Diffstat (limited to 'lib/setup-vms.h')
-rw-r--r--lib/setup-vms.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/setup-vms.h b/lib/setup-vms.h
index 79844daa4..520a35daa 100644
--- a/lib/setup-vms.h
+++ b/lib/setup-vms.h
@@ -249,7 +249,9 @@ char * unix_path;
#define MD5_Init MD5_INIT
#define MD5_Update MD5_UPDATE
#define OPENSSL_add_all_algo_noconf OPENSSL_ADD_ALL_ALGO_NOCONF
+#ifndef __VAX
#define OPENSSL_load_builtin_modules OPENSSL_LOAD_BUILTIN_MODULES
+#endif
#define PEM_read_X509 PEM_READ_X509
#define PEM_write_bio_X509 PEM_WRITE_BIO_X509
#define PKCS12_PBE_add PKCS12_PBE_ADD
@@ -353,6 +355,12 @@ char * unix_path;
#define sk_pop SK_POP
#define sk_pop_free SK_POP_FREE
#define sk_value SK_VALUE
+#ifdef __VAX
+#define OPENSSL_NO_SHA256
+#endif
+#define SHA256_Final SHA256_FINAL
+#define SHA256_Init SHA256_INIT
+#define SHA256_Update SHA256_UPDATE
#define USE_UPPERCASE_GSSAPI 1
#define gss_seal GSS_SEAL