Branch: Tag:

2014-05-14

2014-05-14 17:48:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Standards.ASN1: Added some AutoDoc mk II markup.

Also added some other comments.

1182:    constant type_name = "VisibleString";   }    + //! UTCTime   //! -  + //! RFC 2459 4.1.2.5.1   class UTC   {    inherit String;    constant tag = 23;    constant type_name = "UTCTime";    -  +  //!    this_program set_posix(int t)    {    object second = Calendar.ISO_UTC.Second(t);    -  // FIXME: What is this based on? +  // RFC 2459 4.1.2.5.1: +  // +  // Where YY is greater than or equal to 50, the year shall be +  // interpreted as 19YY; and +  // +  // Where YY is less than 50, the year shall be interpreted as 20YY.    if (second->year_no() >= 2050)    error( "Times later than 2049 not supported.\n" ); -  +  if (second->year_no() < 1950) +  error( "Times earlier than 1950 not supported.\n" );       value = sprintf("%02d%02d%02d%02d%02d%02dZ",    [int]second->year_no() % 100,
1207:    return this;    }    +  //!    int get_posix()    {    if( !value || sizeof(value)!=13 ) error("Data not UTC date string.\n");