Wireshark-bugs: [Wireshark-bugs] [Bug 11039] ULP: raw ASN.1 values are not interpreted

Date: Fri, 13 Mar 2015 22:10:34 +0000

Comment # 13 on bug 11039 from
(In reply to Ralf G. R. Bergs from comment #12)
> (In reply to Pascal Quantin from comment #10)
> > At least the timestamp dissection is now fixed. You can get it in the
> > nightly builds that should appear soon.
> 
> I can gladly confirm that in v1.99.4rc0-94-g1dedcf3 the dissection of
> timestamp is fixed. Thank you so much!
> 
> One question, though: Would it be possible to display the timestamp
> including the century? I. e. instead of "150308145229Z" display it as
> "20150308145229Z?" This is the normal ISO date format and makes it much
> easier to recognize the leading year (YYYY).

No this is not possible for the simple reason that the ASN.1 string is
150308145229Z, per the ASN.1 ITU-T x680 specification chapter 47.3:
The type is defined, using ASN.1, as follows:
UTCTime ::= [UNIVERSAL 23] IMPLICIT VisibleString
with the values of the  VisibleString restricted to strings of characters which
are the juxtaposition of:
a)  the six digits YYMMDD where YY is the two low-order digits of the Christian
year, MM is the month (counting January as 01), and DD is the day of the month
(01 to 31); and
b)  either:
    1)  the four digits hhmm where hh is hour (00 to 23) and mm is minutes (00
to 59); or
    2)  the six digits hhmmss where hh and mm are as in 1) above, and ss is
seconds (00 to 59); and
c)  either:
    1)  the character  Z ; or
    2)  one of the characters  + or  - , followed by hhmm, where hh is hour and
mm is minutes.


You are receiving this mail because:
  • You are watching all bug changes.