Some new names in asn1.h are longer than 31 chars, which disturbs the VMS C compilers...
authorRichard Levitte <levitte@openssl.org>
Fri, 12 Nov 1999 02:04:30 +0000 (02:04 +0000)
committerRichard Levitte <levitte@openssl.org>
Fri, 12 Nov 1999 02:04:30 +0000 (02:04 +0000)
VMS/vms_idhacks.h
crypto/asn1/asn1.h

index 8cf9e9c..1e980ed 100644 (file)
 #define sk_PKCS7_RECIP_INFO_pop                sk_PKCS7_RECINF_pop
 #define sk_PKCS7_RECIP_INFO_sort       sk_PKCS7_RECINF_sort
 
+/* Hack the names created with DECLARE_STACK_OF(ASN1_STRING_TABLE) */
+#define sk_ASN1_STRING_TABLE_new       sk_ASN1_STRTAB_new
+#define sk_ASN1_STRING_TABLE_new_null  sk_ASN1_STRTAB_new_null
+#define sk_ASN1_STRING_TABLE_free      sk_ASN1_STRTAB_free
+#define sk_ASN1_STRING_TABLE_num       sk_ASN1_STRTAB_num
+#define sk_ASN1_STRING_TABLE_value     sk_ASN1_STRTAB_value
+#define sk_ASN1_STRING_TABLE_set       sk_ASN1_STRTAB_set
+#define sk_ASN1_STRING_TABLE_zero      sk_ASN1_STRTAB_zero
+#define sk_ASN1_STRING_TABLE_push      sk_ASN1_STRTAB_push
+#define sk_ASN1_STRING_TABLE_unshift   sk_ASN1_STRTAB_unshift
+#define sk_ASN1_STRING_TABLE_find      sk_ASN1_STRTAB_find
+#define sk_ASN1_STRING_TABLE_delete    sk_ASN1_STRTAB_delete
+#define sk_ASN1_STRING_TABLE_delete_ptr        sk_ASN1_STRTAB_delete_ptr
+#define sk_ASN1_STRING_TABLE_insert    sk_ASN1_STRTAB_insert
+#define sk_ASN1_STRING_TABLE_set_cmp_func      sk_ASN1_STRTAB_set_cmp_func
+#define sk_ASN1_STRING_TABLE_dup       sk_ASN1_STRTAB_dup
+#define sk_ASN1_STRING_TABLE_pop_free  sk_ASN1_STRTAB_pop_free
+#define sk_ASN1_STRING_TABLE_shift     sk_ASN1_STRTAB_shift
+#define sk_ASN1_STRING_TABLE_pop       sk_ASN1_STRTAB_pop
+#define sk_ASN1_STRING_TABLE_sort      sk_ASN1_STRTAB_sort
+
 /* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_SIGNER_INFO) */
 #define i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO i2d_ASN1_SET_OF_PKCS7_SIGINF
 #define d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO d2i_ASN1_SET_OF_PKCS7_SIGINF
index 7fb9d23..1c3a460 100644 (file)
@@ -68,6 +68,10 @@ extern "C" {
 #include <openssl/stack.h>
 #include <openssl/safestack.h>
 
+#ifdef VMS
+#include <openssl/vms_idhacks.h>
+#endif
+
 #define V_ASN1_UNIVERSAL               0x00
 #define        V_ASN1_APPLICATION              0x40
 #define V_ASN1_CONTEXT_SPECIFIC                0x80