Extend callback function to support print customization.
[openssl.git] / crypto / asn1 / tasn_fre.c
index b68b66a23b18d112da8890cf00aac5279bd7f85e..81b6ac898a5a2033c1f400eb12546107e144e383 100644 (file)
@@ -110,13 +110,13 @@ static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int c
                case ASN1_ITYPE_CHOICE:
                if (asn1_cb)
                        {
-                       i = asn1_cb(ASN1_OP_FREE_PRE, pval, it);
+                       i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL);
                        if (i == 2)
                                return;
                        }
                i = asn1_get_choice_selector(pval, it);
                if (asn1_cb)
-                       asn1_cb(ASN1_OP_FREE_PRE, pval, it);
+                       asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL);
                if ((i >= 0) && (i < it->tcount))
                        {
                        ASN1_VALUE **pchval;
@@ -125,7 +125,7 @@ static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int c
                        ASN1_template_free(pchval, tt);
                        }
                if (asn1_cb)
-                       asn1_cb(ASN1_OP_FREE_POST, pval, it);
+                       asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL);
                if (!combine)
                        {
                        OPENSSL_free(*pval);
@@ -151,7 +151,7 @@ static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int c
                        return;
                if (asn1_cb)
                        {
-                       i = asn1_cb(ASN1_OP_FREE_PRE, pval, it);
+                       i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL);
                        if (i == 2)
                                return;
                        }               
@@ -172,7 +172,7 @@ static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int c
                        ASN1_template_free(pseqval, seqtt);
                        }
                if (asn1_cb)
-                       asn1_cb(ASN1_OP_FREE_POST, pval, it);
+                       asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL);
                if (!combine)
                        {
                        OPENSSL_free(*pval);