Ah, the format looks pretty good now. Thanks Jiajia for your fix! Regards, kai
-----Original Message----- From: Kai Zheng (JIRA) [mailto:j...@apache.org] Sent: Wednesday, December 09, 2015 11:20 AM To: dev@directory.apache.org Subject: [jira] [Commented] (DIRKRB-492) Use hex when dumping ASN1 object tags [ https://issues.apache.org/jira/browse/DIRKRB-492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15047953#comment-15047953 ] Kai Zheng commented on DIRKRB-492: ---------------------------------- This is the result. [~elecharny] how would you like it? Note the undecoded things will be solved some time later. {noformat} sequence [tag=0x30, off=0, len=2+1507(undefined)] object identifier [tag=0x06, off=2, len=2+9] ##undecoded## [0] [tag=0xA0, off=13, len=2+1492(undefined)] sequence [tag=0x30, off=15, len=2+1488(undefined)] integer [tag=0x02, off=17, len=2+1] ##undecoded## set [tag=0x31, off=20, len=2+11] sequence [tag=0x30, off=22, len=2+9] object identifier [tag=0x06, off=24, len=2+5] ##undecoded## null [tag=0x05, off=31, len=2+0] ##undecoded## sequence [tag=0x30, off=33, len=2+35(undefined)] object identifier [tag=0x06, off=35, len=2+9] ##undecoded## [0] [tag=0xA0, off=46, len=2+20(undefined)] octet string [tag=0x24, off=48, len=2+16(undefined)] octet string [tag=0x04, off=50, len=2+12] ##undecoded## eoc [tag=0x00, off=64, len=2+0] ##undecoded## eoc [tag=0x00, off=66, len=2+0] ##undecoded## eoc [tag=0x00, off=68, len=2+0] ##undecoded## [0] [tag=0xA0, off=70, len=4+1122] sequence [tag=0x30, off=74, len=4+525] sequence [tag=0x30, off=78, len=4+374] [0] [tag=0xA0, off=82, len=2+3] integer [tag=0x02, off=84, len=2+1] ##undecoded## integer [tag=0x02, off=87, len=2+1] ##undecoded## sequence [tag=0x30, off=90, len=2+13] object identifier [tag=0x06, off=92, len=2+9] ##undecoded## null [tag=0x05, off=103, len=2+0] ##undecoded## sequence [tag=0x30, off=105, len=2+37] set [tag=0x31, off=107, len=2+22] sequence [tag=0x30, off=109, len=2+20] object identifier [tag=0x06, off=111, len=2+3] ##undecoded## printable string [tag=0x13, off=116, len=2+13] ##undecoded## set [tag=0x31, off=131, len=2+11] sequence [tag=0x30, off=133, len=2+9] object identifier [tag=0x06, off=135, len=2+3] ##undecoded## printable string [tag=0x13, off=140, len=2+2] ##undecoded## sequence [tag=0x30, off=144, len=2+30] utc time [tag=0x17, off=146, len=2+13] ##undecoded## utc time [tag=0x17, off=161, len=2+13] ##undecoded## sequence [tag=0x30, off=176, len=2+37] set [tag=0x31, off=178, len=2+22] sequence [tag=0x30, off=180, len=2+20] object identifier [tag=0x06, off=182, len=2+3] ##undecoded## printable string [tag=0x13, off=187, len=2+13] ##undecoded## set [tag=0x31, off=202, len=2+11] sequence [tag=0x30, off=204, len=2+9] object identifier [tag=0x06, off=206, len=2+3] ##undecoded## printable string [tag=0x13, off=211, len=2+2] ##undecoded## sequence [tag=0x30, off=215, len=3+159] sequence [tag=0x30, off=218, len=2+13] object identifier [tag=0x06, off=220, len=2+9] ##undecoded## null [tag=0x05, off=231, len=2+0] ##undecoded## bit string [tag=0x03, off=233, len=3+141] ##undecoded## [3] [tag=0xA3, off=377, len=2+77] sequence [tag=0x30, off=379, len=2+75] sequence [tag=0x30, off=381, len=2+29] object identifier [tag=0x06, off=383, len=2+3] ##undecoded## octet string [tag=0x04, off=388, len=2+22] ##undecoded## sequence [tag=0x30, off=412, len=2+31] object identifier [tag=0x06, off=414, len=2+3] ##undecoded## octet string [tag=0x04, off=419, len=2+24] ##undecoded## sequence [tag=0x30, off=445, len=2+9] object identifier [tag=0x06, off=447, len=2+3] ##undecoded## octet string [tag=0x04, off=452, len=2+2] ##undecoded## sequence [tag=0x30, off=456, len=2+13] object identifier [tag=0x06, off=458, len=2+9] ##undecoded## null [tag=0x05, off=469, len=2+0] ##undecoded## bit string [tag=0x03, off=471, len=3+129] ##undecoded## sequence [tag=0x30, off=603, len=4+589] sequence [tag=0x30, off=607, len=4+438] [0] [tag=0xA0, off=611, len=2+3] integer [tag=0x02, off=613, len=2+1] ##undecoded## integer [tag=0x02, off=616, len=2+1] ##undecoded## sequence [tag=0x30, off=619, len=2+13] object identifier [tag=0x06, off=621, len=2+9] ##undecoded## null [tag=0x05, off=632, len=2+0] ##undecoded## sequence [tag=0x30, off=634, len=2+37] set [tag=0x31, off=636, len=2+22] sequence [tag=0x30, off=638, len=2+20] object identifier [tag=0x06, off=640, len=2+3] ##undecoded## printable string [tag=0x13, off=645, len=2+13] ##undecoded## set [tag=0x31, off=660, len=2+11] sequence [tag=0x30, off=662, len=2+9] object identifier [tag=0x06, off=664, len=2+3] ##undecoded## printable string [tag=0x13, off=669, len=2+2] ##undecoded## sequence [tag=0x30, off=673, len=2+30] utc time [tag=0x17, off=675, len=2+13] ##undecoded## utc time [tag=0x17, off=690, len=2+13] ##undecoded## sequence [tag=0x30, off=705, len=2+101] set [tag=0x31, off=707, len=2+24] sequence [tag=0x30, off=709, len=2+22] object identifier [tag=0x06, off=711, len=2+3] ##undecoded## printable string [tag=0x13, off=716, len=2+15] ##undecoded## set [tag=0x31, off=733, len=2+36] sequence [tag=0x30, off=735, len=2+34] object identifier [tag=0x06, off=737, len=2+9] ##undecoded## ia5 string [tag=0x16, off=748, len=2+21] ##undecoded## set [tag=0x31, off=771, len=2+22] sequence [tag=0x30, off=773, len=2+20] object identifier [tag=0x06, off=775, len=2+3] ##undecoded## printable string [tag=0x13, off=780, len=2+13] ##undecoded## set [tag=0x31, off=795, len=2+11] sequence [tag=0x30, off=797, len=2+9] object identifier [tag=0x06, off=799, len=2+3] ##undecoded## printable string [tag=0x13, off=804, len=2+2] ##undecoded## sequence [tag=0x30, off=808, len=3+159] sequence [tag=0x30, off=811, len=2+13] object identifier [tag=0x06, off=813, len=2+9] ##undecoded## null [tag=0x05, off=824, len=2+0] ##undecoded## bit string [tag=0x03, off=826, len=3+141] ##undecoded## [3] [tag=0xA3, off=970, len=2+77] sequence [tag=0x30, off=972, len=2+75] sequence [tag=0x30, off=974, len=2+29] object identifier [tag=0x06, off=976, len=2+3] ##undecoded## octet string [tag=0x04, off=981, len=2+22] ##undecoded## sequence [tag=0x30, off=1005, len=2+31] object identifier [tag=0x06, off=1007, len=2+3] ##undecoded## octet string [tag=0x04, off=1012, len=2+24] ##undecoded## sequence [tag=0x30, off=1038, len=2+9] object identifier [tag=0x06, off=1040, len=2+3] ##undecoded## octet string [tag=0x04, off=1045, len=2+2] ##undecoded## sequence [tag=0x30, off=1049, len=2+13] object identifier [tag=0x06, off=1051, len=2+9] ##undecoded## null [tag=0x05, off=1062, len=2+0] ##undecoded## bit string [tag=0x03, off=1064, len=3+129] ##undecoded## set [tag=0x31, off=1196, len=4+303] sequence [tag=0x30, off=1200, len=4+299] integer [tag=0x02, off=1204, len=2+1] ##undecoded## sequence [tag=0x30, off=1207, len=2+42] sequence [tag=0x30, off=1209, len=2+37] set [tag=0x31, off=1211, len=2+22] sequence [tag=0x30, off=1213, len=2+20] object identifier [tag=0x06, off=1215, len=2+3] ##undecoded## printable string [tag=0x13, off=1220, len=2+13] ##undecoded## set [tag=0x31, off=1235, len=2+11] sequence [tag=0x30, off=1237, len=2+9] object identifier [tag=0x06, off=1239, len=2+3] ##undecoded## printable string [tag=0x13, off=1244, len=2+2] ##undecoded## integer [tag=0x02, off=1248, len=2+1] ##undecoded## sequence [tag=0x30, off=1251, len=2+9] object identifier [tag=0x06, off=1253, len=2+5] ##undecoded## null [tag=0x05, off=1260, len=2+0] ##undecoded## [0] [tag=0xA0, off=1262, len=2+93] sequence [tag=0x30, off=1264, len=2+24] object identifier [tag=0x06, off=1266, len=2+9] ##undecoded## set [tag=0x31, off=1277, len=2+11] object identifier [tag=0x06, off=1279, len=2+9] ##undecoded## sequence [tag=0x30, off=1290, len=2+28] object identifier [tag=0x06, off=1292, len=2+9] ##undecoded## set [tag=0x31, off=1303, len=2+15] utc time [tag=0x17, off=1305, len=2+13] ##undecoded## sequence [tag=0x30, off=1320, len=2+35] object identifier [tag=0x06, off=1322, len=2+9] ##undecoded## set [tag=0x31, off=1333, len=2+22] octet string [tag=0x04, off=1335, len=2+20] ##undecoded## sequence [tag=0x30, off=1357, len=2+13] object identifier [tag=0x06, off=1359, len=2+9] ##undecoded## null [tag=0x05, off=1370, len=2+0] ##undecoded## octet string [tag=0x04, off=1372, len=3+128] ##undecoded## eoc [tag=0x00, off=1503, len=2+0] ##undecoded## eoc [tag=0x00, off=1505, len=2+0] ##undecoded## eoc [tag=0x00, off=1507, len=2+0] ##undecoded## {noformat} > Use hex when dumping ASN1 object tags > ------------------------------------- > > Key: DIRKRB-492 > URL: https://issues.apache.org/jira/browse/DIRKRB-492 > Project: Directory Kerberos > Issue Type: Improvement > Reporter: Kai Zheng > Assignee: Kai Zheng > > Suggested by [~elecharny], it may be better to use hex to output tags when > dumping. -- This message was sent by Atlassian JIRA (v6.3.4#6332)