wireshark/asn1
Guy Harris 26f46d40e9 Handle string types with somewhat appropriate encodings.
For various string types defined in X.680, use the appropriate encoding,
or ENC_ASCII|ENC_NA in some cases where we don't have an appropriate
encoding yet.

This most significantly fixes the handling of BMPString and
UniversalString, which are supersets of ASCII (Unicode Basic
Multilingual Plane and Unicode, respectively), but don't encode ASCII
characters as single octets.  It also fixes UTF8String to, well,
properly recognize UTF-8.

This also lets us get rid of the special handling of SyntaxBMPString in
X.509sat (and, in fact, *requires* us to get rid of it, as, otherwise,
the string value appears twice).

Change-Id: I325c4e71a6110278eb23b86e0d986e6439cfc328
Reviewed-on: https://code.wireshark.org/review/994
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-07 22:46:30 +00:00
..
HI2Operations Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
acp133 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
acse Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
ansi_map Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
ansi_tcap Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
atn-cm Apply found fix-encoding-args.pl errors in the dissector directory. 2014-04-06 15:11:36 +00:00
atn-cpdlc Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
atn-ulcs Apply found fix-encoding-args.pl errors in the dissector directory. 2014-04-06 15:11:36 +00:00
c1222 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
camel Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
cdt Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
charging_ase Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
cmip Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
cmp Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
cms Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
credssp Exported PDU: add support for data length on the wire 2014-03-19 05:13:30 +00:00
crmf Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
dap Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
disp Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
dop Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
dsp Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
ess Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
ftam Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
gnm Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
goose Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
gprscdr Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
gsm_map Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
h225 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
h235 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
h245 Fix Bug 9920 Buildbot crash due to SDP/RTP mismatch 2014-04-03 04:40:20 +00:00
h248 Add dissection of 3G Interface Type package and add some comments about 2014-03-27 16:54:05 +00:00
h282 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
h283 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
h323 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
h450 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
h450-ros Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
h460 Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
h501 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
hnbap Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
idmp Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
ilp Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
inap Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
isdn-sup Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
kerberos Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
lcsap Get rid of space-before-tab in indentation. 2014-03-12 22:13:19 +00:00
ldap Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
logotypecertextn Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
lpp Upgrade LPPe dissector to V1_1-20140108-C 2014-03-24 21:35:40 +00:00
lppa Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
lppe Upgrade LPPe dissector to V1_1-20140108-C 2014-03-24 21:35:40 +00:00
lte-rrc LTE RRC: add file forgotten in gb981173 2014-03-26 09:58:15 +00:00
m3ap Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
mms Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
mpeg-audio Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
mpeg-pes Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
nbap Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
novell_pkis Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
ns_cert_exts Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
ocsp Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
p1 Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
p7 Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
p22 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
p772 Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
pcap Add a cople of missing pcap.extension IE:s 2014-04-02 15:53:07 +00:00
pkcs1 Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
pkcs12 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
pkinit Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
pkix1explicit Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
pkix1implicit Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
pkixac Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
pkixproxy Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
pkixqualified Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
pkixtsp Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
pres Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
q932 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
q932-ros Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
qsig Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
ranap More fiddling with heuristic. 2014-03-26 14:57:14 +00:00
rnsap Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
ros Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
rrc Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
rrlp Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
rtse Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
rua Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
s1ap Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
sabp Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
sbc-ap Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
smrse Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
snmp Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
spnego Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
sv Remove unused const variables errors seen with recent Clang version 2014-03-15 17:52:16 +00:00
t38 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
t124 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
t125 Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
tcap Convert ep_address_to_str -> address_to_str(wmem_packet_scope, ...) for all dissectors 2014-04-06 01:31:28 +00:00
tetra Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
ulp ULP: upgrade dissector to approved version 2.0.1 2014-03-17 17:25:43 +00:00
wlancertextn Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
x2ap Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
x509af Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
x509ce Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
x509if Remove trailing whitespace from asn1 .cnf & template.[hc] files. Regenerate dissectors. 2014-02-26 19:38:21 +00:00
x509sat Handle string types with somewhat appropriate encodings. 2014-04-07 22:46:30 +00:00
x721 Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
.gitignore Add some asn1 files to .gitignore. 2014-02-14 02:10:00 +00:00
CMakeLists.txt Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
Custom.make Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
Makefile.am Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
Makefile.inc Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
Makefile.inc.nmake Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
Makefile.nmake Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
Makefile.preinc Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00
Makefile.preinc.nmake Remove $Id$ from the ASN.1 dissectors and regenerate them. 2014-02-18 03:05:28 +00:00