asn1: fix missing dissector generation

This commit is contained in:
Joakim Karlsson 2022-03-28 14:24:53 +02:00 committed by A Wireshark GitLab Utility
parent 2c5f2ac6f3
commit f401cdeaae
6 changed files with 50 additions and 8 deletions

View File

@ -56,7 +56,7 @@ static expert_field ei_ftam_zero_pdu = EI_INIT;
static int
dissect_ftam_unstructured_text(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *parent_tree, void* data _U_)
{
proto_tree_add_item (parent_tree, hf_ftam_unstructured_text, tvb, 0, tvb_reported_length_remaining(tvb, 0), ENC_ASCII|ENC_NA);
proto_tree_add_item (parent_tree, hf_ftam_unstructured_text, tvb, 0, tvb_reported_length_remaining(tvb, 0), ENC_ASCII);
return tvb_captured_length(tvb);
}

View File

@ -690,7 +690,7 @@ MAP-DialoguePDU B "0.4.0.0.1.1.1.1" "map-DialogueAS"
break;
case SMS_ENCODING_8BIT:
/* XXX - ASCII, or some extended ASCII? */
proto_tree_add_item(subtree, hf_gsm_map_ussd_string, parameter_tvb, 0, length, ENC_ASCII|ENC_NA);
proto_tree_add_item(subtree, hf_gsm_map_ussd_string, parameter_tvb, 0, length, ENC_ASCII);
break;
case SMS_ENCODING_UCS2:
case SMS_ENCODING_UCS2_LANG:

View File

@ -202,7 +202,7 @@ dissect_lnpdqp_digits_type(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tr
if(no_of_digits == 0)
return;
offset++;
proto_tree_add_item(subtree, hf_lnpdqp_ia5_digits, tvb, offset, -1, ENC_ASCII|ENC_NA);
proto_tree_add_item(subtree, hf_lnpdqp_ia5_digits, tvb, offset, -1, ENC_ASCII);
proto_item_append_text(actx->created_item, " - %s", tvb_get_string_enc(pinfo->pool,tvb,offset,tvb_reported_length_remaining(tvb,offset), ENC_ASCII | ENC_NA));
break;
default:

View File

@ -119,5 +119,47 @@ void proto_reg_handoff_pkcs1(void) {
oid_add_from_string("sha512", "2.16.840.1.101.3.4.2.3");
oid_add_from_string("sha224", "2.16.840.1.101.3.4.2.4");
/* PQC digital signature algorithms from OQS-OpenSSL,
see https://github.com/open-quantum-safe/openssl/blob/OQS-OpenSSL_1_1_1-stable/oqs-template/oqs-sig-info.md */
oid_add_from_string("dilithium2", "1.3.6.1.4.1.2.267.7.4.4");
oid_add_from_string("p256_dilithium2", "1.3.9999.2.7.1");
oid_add_from_string("rsa3072_dilithium2", "1.3.9999.2.7.2");
oid_add_from_string("dilithium3", "1.3.6.1.4.1.2.267.7.6.5");
oid_add_from_string("p384_dilithium3", "1.3.9999.2.7.3");
oid_add_from_string("dilithium5", "1.3.6.1.4.1.2.267.7.8.7");
oid_add_from_string("p521_dilithium5", "1.3.9999.2.7.4");
oid_add_from_string("dilithium2_aes", "1.3.6.1.4.1.2.267.11.4.4");
oid_add_from_string("p256_dilithium2_aes", "1.3.9999.2.11.1");
oid_add_from_string("rsa3072_dilithium2_aes", "1.3.9999.2.11.2");
oid_add_from_string("dilithium3_aes", "1.3.6.1.4.1.2.267.11.6.5");
oid_add_from_string("p384_dilithium3_aes", "1.3.9999.2.11.3");
oid_add_from_string("dilithium5_aes", "1.3.6.1.4.1.2.267.11.8.7");
oid_add_from_string("p521_dilithium5_aes", "1.3.9999.2.11.4");
oid_add_from_string("falcon512", "1.3.9999.3.1");
oid_add_from_string("p256_falcon512", "1.3.9999.3.2");
oid_add_from_string("rsa3072_falcon512", "1.3.9999.3.3");
oid_add_from_string("falcon1024", "1.3.9999.3.4");
oid_add_from_string("p521_falcon1024", "1.3.9999.3.5");
oid_add_from_string("picnicl1full", "1.3.6.1.4.1.311.89.2.1.7");
oid_add_from_string("p256_picnicl1full", "1.3.6.1.4.1.311.89.2.1.8");
oid_add_from_string("rsa3072_picnicl1full", "1.3.6.1.4.1.311.89.2.1.9");
oid_add_from_string("picnic3l1", "1.3.6.1.4.1.311.89.2.1.21");
oid_add_from_string("p256_picnic3l1", "1.3.6.1.4.1.311.89.2.1.22");
oid_add_from_string("rsa3072_picnic3l1", "1.3.6.1.4.1.311.89.2.1.23");
oid_add_from_string("rainbowIclassic", "1.3.9999.5.1.1.1");
oid_add_from_string("p256_rainbowIclassic", "1.3.9999.5.1.2.1");
oid_add_from_string("rsa3072_rainbowIclassic", "1.3.9999.5.1.3.1");
oid_add_from_string("rainbowVclassic", "1.3.9999.5.3.1.1");
oid_add_from_string("p521_rainbowVclassic", "1.3.9999.5.3.2.1");
oid_add_from_string("sphincsharaka128frobust", "1.3.9999.6.1.1");
oid_add_from_string("p256_sphincsharaka128frobust", "1.3.9999.6.1.2");
oid_add_from_string("rsa3072_sphincsharaka128frobust", "1.3.9999.6.1.3");
oid_add_from_string("sphincssha256128frobust", "1.3.9999.6.4.1");
oid_add_from_string("p256_sphincssha256128frobust", "1.3.9999.6.4.2");
oid_add_from_string("rsa3072_sphincssha256128frobust", "1.3.9999.6.4.3");
oid_add_from_string("sphincsshake256128frobust", "1.3.9999.6.7.1");
oid_add_from_string("p256_sphincsshake256128frobust", "1.3.9999.6.7.2");
oid_add_from_string("rsa3072_sphincsshake256128frobust", "1.3.9999.6.7.3");
}

View File

@ -476,7 +476,7 @@ static int
dissect_snmp_variable_string(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_)
{
proto_tree_add_item(tree, hf_snmp_var_bind_str, tvb, 0, -1, ENC_ASCII|ENC_NA);
proto_tree_add_item(tree, hf_snmp_var_bind_str, tvb, 0, -1, ENC_ASCII);
return tvb_captured_length(tvb);
}
@ -1316,7 +1316,7 @@ dissect_snmp_engineid(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, int o
case SNMP_ENGINEID_FORMAT_TEXT:
/* max. 27-byte string, administratively assigned */
if (len_remain<=27) {
proto_tree_add_item(tree, hf_snmp_engineid_text, tvb, offset, len_remain, ENC_ASCII|ENC_NA);
proto_tree_add_item(tree, hf_snmp_engineid_text, tvb, offset, len_remain, ENC_ASCII);
offset+=len_remain;
len_remain=0;
}

View File

@ -1566,7 +1566,7 @@ dissect_marc_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *
if (marc_directory[dir_index].tag < 10) {
proto_tree_add_item(field_tree, hf_marc_field_control,
tvb, offset, marc_directory[dir_index].length - 1, ENC_ASCII|ENC_NA);
tvb, offset, marc_directory[dir_index].length - 1, ENC_ASCII);
offset += marc_directory[dir_index].length - 1;
proto_tree_add_item(field_tree, hf_marc_field_terminator,
tvb, offset, 1, ENC_ASCII);
@ -1592,12 +1592,12 @@ dissect_marc_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *
MARC_SUBFIELD_INDICATOR);
if (next_subfield >= 0) {
proto_tree_add_item(field_tree, hf_marc_field_subfield,
tvb, offset, next_subfield - offset, ENC_ASCII|ENC_NA);
tvb, offset, next_subfield - offset, ENC_ASCII);
offset += (next_subfield - offset);
}
else {
proto_tree_add_item(field_tree, hf_marc_field_subfield,
tvb, offset, next_offset - offset, ENC_ASCII|ENC_NA);
tvb, offset, next_offset - offset, ENC_ASCII);
offset = next_offset;
}
} while (offset < next_offset);