diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1.h')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 5d2a7b4418..6543e5aafe 100644 --- a/src/lib/libcrypto/asn1/asn1.h +++ b/src/lib/libcrypto/asn1/asn1.h | |||
@@ -386,7 +386,6 @@ TYPEDEF_D2I2D_OF(void); | |||
386 | * | 386 | * |
387 | */ | 387 | */ |
388 | 388 | ||
389 | #ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION | ||
390 | 389 | ||
391 | /* ASN1_ITEM pointer exported type */ | 390 | /* ASN1_ITEM pointer exported type */ |
392 | typedef const ASN1_ITEM ASN1_ITEM_EXP; | 391 | typedef const ASN1_ITEM ASN1_ITEM_EXP; |
@@ -402,27 +401,6 @@ typedef const ASN1_ITEM ASN1_ITEM_EXP; | |||
402 | #define DECLARE_ASN1_ITEM(name) \ | 401 | #define DECLARE_ASN1_ITEM(name) \ |
403 | extern const ASN1_ITEM name##_it; | 402 | extern const ASN1_ITEM name##_it; |
404 | 403 | ||
405 | #else | ||
406 | |||
407 | /* Platforms that can't easily handle shared global variables are declared | ||
408 | * as functions returning ASN1_ITEM pointers. | ||
409 | */ | ||
410 | |||
411 | /* ASN1_ITEM pointer exported type */ | ||
412 | typedef const ASN1_ITEM * ASN1_ITEM_EXP(void); | ||
413 | |||
414 | /* Macro to obtain ASN1_ITEM pointer from exported type */ | ||
415 | #define ASN1_ITEM_ptr(iptr) (iptr()) | ||
416 | |||
417 | /* Macro to include ASN1_ITEM pointer from base type */ | ||
418 | #define ASN1_ITEM_ref(iptr) (iptr##_it) | ||
419 | |||
420 | #define ASN1_ITEM_rptr(ref) (ref##_it()) | ||
421 | |||
422 | #define DECLARE_ASN1_ITEM(name) \ | ||
423 | const ASN1_ITEM * name##_it(void); | ||
424 | |||
425 | #endif | ||
426 | 404 | ||
427 | /* Parameters used by ASN1_STRING_print_ex() */ | 405 | /* Parameters used by ASN1_STRING_print_ex() */ |
428 | 406 | ||