diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2005-09-01 18:00:56 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2005-09-01 18:00:56 +0000 |
commit | 9194296de8ed9173b348494833517b5bb319f072 (patch) | |
tree | b45c3776833b36095aa7c99a9eddba5fc3ad04fd /crypto/asn1/asn1t.h | |
parent | 6273a91cb73ce563b8246d1b1d85476535057def (diff) |
Update ASN1 printing code and add a -print option to 'pkcs7' utility for
initial testing.
Diffstat (limited to 'crypto/asn1/asn1t.h')
-rw-r--r-- | crypto/asn1/asn1t.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/asn1/asn1t.h b/crypto/asn1/asn1t.h index 9f5d60947e..b44f75c234 100644 --- a/crypto/asn1/asn1t.h +++ b/crypto/asn1/asn1t.h @@ -832,6 +832,17 @@ typedef struct ASN1_AUX_st { return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \ } +#define IMPLEMENT_ASN1_PRINT_FUNCTION(stname) \ + IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, stname, stname) + +#define IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, itname, fname) \ + int fname##_print(BIO *out, stname *x, int indent, \ + const ASN1_PCTX *pctx) \ + { \ + return ASN1_item_print(out, (ASN1_VALUE *)x, indent, \ + ASN1_ITEM_rptr(itname), pctx); \ + } + #define IMPLEMENT_ASN1_FUNCTIONS_const(name) \ IMPLEMENT_ASN1_FUNCTIONS_const_fname(name, name, name) |