diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1t.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/asn1t.h b/src/lib/libcrypto/asn1/asn1t.h index 578e140efa..27f591c464 100644 --- a/src/lib/libcrypto/asn1/asn1t.h +++ b/src/lib/libcrypto/asn1/asn1t.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: asn1t.h,v 1.12 2015/02/14 19:41:39 miod Exp $ */ | 1 | /* $OpenBSD: asn1t.h,v 1.13 2015/07/25 17:20:02 jsing Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -70,7 +70,7 @@ | |||
| 70 | extern "C" { | 70 | extern "C" { |
| 71 | #endif | 71 | #endif |
| 72 | 72 | ||
| 73 | 73 | #ifndef LIBRESSL_INTERNAL | |
| 74 | 74 | ||
| 75 | /* Macro to obtain ASN1_ADB pointer from a type (only used internally) */ | 75 | /* Macro to obtain ASN1_ADB pointer from a type (only used internally) */ |
| 76 | #define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)(iptr)) | 76 | #define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)(iptr)) |
| @@ -387,6 +387,8 @@ extern "C" { | |||
| 387 | #define ASN1_ADB_TEMPLATE(name) \ | 387 | #define ASN1_ADB_TEMPLATE(name) \ |
| 388 | static const ASN1_TEMPLATE name##_tt | 388 | static const ASN1_TEMPLATE name##_tt |
| 389 | 389 | ||
| 390 | #endif /* !LIBRESSL_INTERNAL */ | ||
| 391 | |||
| 390 | /* This is the ASN1 template structure that defines | 392 | /* This is the ASN1 template structure that defines |
| 391 | * a wrapper round the actual type. It determines the | 393 | * a wrapper round the actual type. It determines the |
| 392 | * actual position of the field in the value structure, | 394 | * actual position of the field in the value structure, |
| @@ -708,6 +710,8 @@ typedef struct ASN1_STREAM_ARG_st { | |||
| 708 | #define ASN1_OP_DETACHED_PRE 12 | 710 | #define ASN1_OP_DETACHED_PRE 12 |
| 709 | #define ASN1_OP_DETACHED_POST 13 | 711 | #define ASN1_OP_DETACHED_POST 13 |
| 710 | 712 | ||
| 713 | #ifndef LIBRESSL_INTERNAL | ||
| 714 | |||
| 711 | /* Macro to implement a primitive type */ | 715 | /* Macro to implement a primitive type */ |
| 712 | #define IMPLEMENT_ASN1_TYPE(stname) IMPLEMENT_ASN1_TYPE_ex(stname, stname, 0) | 716 | #define IMPLEMENT_ASN1_TYPE(stname) IMPLEMENT_ASN1_TYPE_ex(stname, stname, 0) |
| 713 | #define IMPLEMENT_ASN1_TYPE_ex(itname, vname, ex) \ | 717 | #define IMPLEMENT_ASN1_TYPE_ex(itname, vname, ex) \ |
| @@ -731,7 +735,6 @@ typedef struct ASN1_STREAM_ARG_st { | |||
| 731 | #sname \ | 735 | #sname \ |
| 732 | ASN1_ITEM_end(sname) | 736 | ASN1_ITEM_end(sname) |
| 733 | 737 | ||
| 734 | #ifndef LIBRESSL_INTERNAL | ||
| 735 | /* Macro to implement standard functions in terms of ASN1_ITEM structures */ | 738 | /* Macro to implement standard functions in terms of ASN1_ITEM structures */ |
| 736 | 739 | ||
| 737 | #define IMPLEMENT_ASN1_FUNCTIONS(stname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname, stname) | 740 | #define IMPLEMENT_ASN1_FUNCTIONS(stname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname, stname) |
