Branch: Tag:

2004-09-06

2004-09-06 18:05:07 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now the "optimization" might actually work.

Rev: lib/modules/Tools.pmod/X509.pmod:1.38

2:   //#pragma strict_types      /* -  * $Id: X509.pmod,v 1.37 2004/09/06 02:46:37 nilsson Exp $ +  * $Id: X509.pmod,v 1.38 2004/09/06 18:05:07 grubba Exp $    *    * Some random functions for creating RFC-2459 style X.509 certificates.    *
47:   //! time @[t].   UTC make_time(int t)   { -  object /*Calendar.Second*/ second = Calendar->Second(t)->set_timezone("UTC"); +  object /*Calendar.Second*/ second = Calendar["Second"](t)->set_timezone("UTC");       if (second->year_no() >= 2050)    error( "Times later than 2049 not supported yet\n" );
93:    return 0;    m->mon--;    -  if ( (m->mday <= 0) || (m->mday > Calendar->ISO->Year(m->year + 1900) +  if ( (m->mday <= 0) || (m->mday > Calendar["ISO"]["Year"](m->year + 1900)    ->month(m->mon + 1)->number_of_days()))    return 0;