From b3e1a4c68c5c316630fcdab71f3b428a8251043a Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 12 Nov 1999 02:04:30 +0000 Subject: [PATCH] Some new names in asn1.h are longer than 31 chars, which disturbs the VMS C compilers... --- VMS/vms_idhacks.h | 21 +++++++++++++++++++++ crypto/asn1/asn1.h | 4 ++++ 2 files changed, 25 insertions(+) diff --git a/VMS/vms_idhacks.h b/VMS/vms_idhacks.h index 8cf9e9c61f..1e980ede3e 100644 --- a/VMS/vms_idhacks.h +++ b/VMS/vms_idhacks.h @@ -99,6 +99,27 @@ #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 diff --git a/crypto/asn1/asn1.h b/crypto/asn1/asn1.h index 7fb9d23821..1c3a4600cd 100644 --- a/crypto/asn1/asn1.h +++ b/crypto/asn1/asn1.h @@ -68,6 +68,10 @@ extern "C" { #include #include +#ifdef VMS +#include +#endif + #define V_ASN1_UNIVERSAL 0x00 #define V_ASN1_APPLICATION 0x40 #define V_ASN1_CONTEXT_SPECIFIC 0x80 -- GitLab