Branch: Tag:

2014-02-18

2014-02-18 13:02:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Standards.X509: Accept zero as last argument in make_tbs().

For compat reasons make_tbs() needs to also accept zero (and not
UNDEFINED) as the last argument (ie extensions).

Fixes testsuite failure.

784:   TBSCertificate make_tbs(Sequence issuer, Sequence algorithm,    Sequence subject, Sequence keyinfo,    Integer serial, Sequence validity, -  array|void extensions) +  array|int(0..0)|void extensions)   {    TBSCertificate tbs = TBSCertificate();    tbs->serial = serial->value;
808:   variant TBSCertificate make_tbs(Sequence issuer, Sequence algorithm,    Sequence subject, Sequence keyinfo,    Integer serial, int ttl, -  array|void extensions) +  array|int(0..0)|void extensions)   {    int now = time();    Sequence validity = Sequence( ({ UTC()->set_posix(now),