Update error codes, move typedef of SSL, SSL_CTX to ossl_typ.h
[openssl.git] / crypto / asn1 / tasn_prn.c
index d9f32bd890685e902a71b2eff8e92adc1304ba15..d2830a5eaddeb3368414ff78329f18f94167b5f7 100644 (file)
@@ -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;