pike.git / lib / modules / Tools.pmod / X509.pmod

version» Context lines:

pike.git/lib/modules/Tools.pmod/X509.pmod:1:   #pike __REAL_VERSION__      /* -  * $Id: X509.pmod,v 1.15 2001/10/08 04:32:09 per Exp $ +  * $Id: X509.pmod,v 1.16 2001/10/08 05:36:17 per Exp $    *    * Some random functions for creating RFC-2459 style X.509 certificates.    *    */      #if constant(Standards.ASN1.Types.asn1_sequence)      import Standards.ASN1.Types;   import Standards.PKCS;   
pike.git/lib/modules/Tools.pmod/X509.pmod:16: Inside #if constant(Standards.ASN1.Types.asn1_sequence)
  #ifdef X509_DEBUG   #define X509_WERR werror   #else   #define X509_WERR   #endif      object make_time(int t)   {    Calendar.Second second = Calendar.Second(t)->set_timezone("UTC");    -  if (second->year_no() >= 2050) { +  if (second->year_no() >= 2050)    error( "Tools.X509.make_time: "    "Times later than 2049 not supported yet\n" );       return asn1_utc(sprintf("%02d%02d%02d%02d%02d%02dZ",    second->year_no() % 100,    second->month_no(),    second->month_day(),    second->hour_no(),    second->minute_no(),    second->second_no()));