summaryrefslogtreecommitdiff
path: root/crypto/asn1/tasn_prn.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-02-08 13:07:04 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-02-08 13:07:04 +0000
commit9e5df8e44849d0113e3b5530478dcaeac401fc64 (patch)
treec559bc0ab897ea6da3bd79fe4dc1ca8d2d9b4f3d /crypto/asn1/tasn_prn.c
parent96d13fe62b71dcb08b02ca3ce299b12630326cac (diff)
downloadopenssl-new-9e5df8e44849d0113e3b5530478dcaeac401fc64.tar.gz
Support custom primitive type printing routines and add one to LONG type.
Diffstat (limited to 'crypto/asn1/tasn_prn.c')
-rw-r--r--crypto/asn1/tasn_prn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/asn1/tasn_prn.c b/crypto/asn1/tasn_prn.c
index d9f32bd890..d2830a5ead 100644
--- a/crypto/asn1/tasn_prn.c
+++ b/crypto/asn1/tasn_prn.c
@@ -522,8 +522,12 @@ static int asn1_primitive_print(BIO *out, ASN1_VALUE **fld,
ASN1_STRING *str;
int ret = 1, needlf = 1;
const char *pname;
+ const ASN1_PRIMITIVE_FUNCS *pf;
+ pf = it->funcs;
if (!asn1_print_fsname(out, indent, fname, sname, pctx))
return 0;
+ if (pf && pf->prim_print)
+ return pf->prim_print(out, fld, it, indent, pctx);
str = (ASN1_STRING *)*fld;
if (it->itype == ASN1_ITYPE_MSTRING)
utype = str->type & ~V_ASN1_NEG;