aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/x509if
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2021-07-23 15:21:02 -0400
committerEvan Huus <eapache@gmail.com>2021-07-26 14:00:09 -0400
commitd09fb571fe4f2633ce888f35edae6e333665858c (patch)
treef43759c81f7b733abb259106af8a015ed0d558f8 /epan/dissectors/asn1/x509if
parente69446aa55d293412002375a549e85327267e65b (diff)
asn1: convert most dissectors to pinfo->pool
Part 2/2 as the commits were too big for CI. Largely find/replace, with a few manual tweaks. Then regenerate the asn1 dissector sources and make sure everything still builds. There are a handful of cases I skipped as too complex, but this covers most of the asn1 dissectors.
Diffstat (limited to 'epan/dissectors/asn1/x509if')
-rw-r--r--epan/dissectors/asn1/x509if/x509if.cnf16
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/asn1/x509if/x509if.cnf b/epan/dissectors/asn1/x509if/x509if.cnf
index ce9def0e89..77475cbfe7 100644
--- a/epan/dissectors/asn1/x509if/x509if.cnf
+++ b/epan/dissectors/asn1/x509if/x509if.cnf
@@ -194,7 +194,7 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
if(actx->external.direct_reference) {
/* see if we can find a nice name */
- name = oid_resolved_from_string(wmem_packet_scope(), actx->external.direct_reference);
+ name = oid_resolved_from_string(actx->pinfo->pool, actx->external.direct_reference);
if(!name) name = actx->external.direct_reference;
if(last_rdn) { /* append it to the RDN */
@@ -210,7 +210,7 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
if((fmt = val_to_str_const(hf_index, fmt_vals, "")) && *fmt) {
/* we have a format */
- last_ava = (char *)wmem_alloc(wmem_packet_scope(), MAX_AVA_STR_LEN); *last_ava = '\0';
+ last_ava = (char *)wmem_alloc(actx->pinfo->pool, MAX_AVA_STR_LEN); *last_ava = '\0';
register_frame_end_routine (actx->pinfo, x509if_frame_end);
g_snprintf(last_ava, MAX_AVA_STR_LEN, "%%s %%s", name, fmt);
@@ -255,10 +255,10 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
/* we have a format */
if (!last_ava) {
- last_ava = (char *)wmem_alloc(wmem_packet_scope(), MAX_AVA_STR_LEN);
+ last_ava = (char *)wmem_alloc(actx->pinfo->pool, MAX_AVA_STR_LEN);
}
- if(!(name = oid_resolved_from_string(wmem_packet_scope(), actx->external.direct_reference)))
+ if(!(name = oid_resolved_from_string(actx->pinfo->pool, actx->external.direct_reference)))
name = actx->external.direct_reference;
g_snprintf(last_ava, MAX_AVA_STR_LEN, "%%s %%s %%s", name, fmt, value);
@@ -332,7 +332,7 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
rdn_one_value = FALSE;
top_of_rdn = tree;
- last_rdn = (char *)wmem_alloc(wmem_packet_scope(), MAX_DN_STR_LEN); *last_rdn = '\0';
+ last_rdn = (char *)wmem_alloc(actx->pinfo->pool, MAX_DN_STR_LEN); *last_rdn = '\0';
register_frame_end_routine (actx->pinfo, x509if_frame_end);
%(DEFAULT_BODY)s
@@ -343,7 +343,7 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
/* now append this to the DN */
if (last_dn) {
if(*last_dn) {
- temp_dn = (char *)wmem_strdup_printf(wmem_packet_scope(), "%%s,%%s", last_rdn, last_dn);
+ temp_dn = (char *)wmem_strdup_printf(actx->pinfo->pool, "%%s,%%s", last_rdn, last_dn);
last_dn[0] = '\0';
(void) g_strlcat(last_dn, temp_dn, MAX_DN_STR_LEN);
} else {
@@ -372,7 +372,7 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
const char *fmt;
dn_one_rdn = FALSE; /* reset */
- last_dn = (char *)wmem_alloc(wmem_packet_scope(), MAX_DN_STR_LEN); *last_dn = '\0';
+ last_dn = (char *)wmem_alloc(actx->pinfo->pool, MAX_DN_STR_LEN); *last_dn = '\0';
top_of_dn = NULL;
register_frame_end_routine (actx->pinfo, x509if_frame_end);
@@ -403,7 +403,7 @@ DistinguishedName B "2.16.840.1.101.2.2.1.188" "id-at-primaryMember"
#.FN_BODY AttributeValueAssertion
ava_hf_index = hf_index;
- last_ava = (char *)wmem_alloc(wmem_packet_scope(), MAX_AVA_STR_LEN); *last_ava = '\0';
+ last_ava = (char *)wmem_alloc(actx->pinfo->pool, MAX_AVA_STR_LEN); *last_ava = '\0';
register_frame_end_routine (actx->pinfo, x509if_frame_end);
%(DEFAULT_BODY)s