Branch: Tag:

2014-11-03

2014-11-03 15:07:18 by Martin Nilsson <nilsson@opera.com>

Use the new PEM methods.

441:   define(test_cert, ([[    test_true(Standards.X509.verify_certificate(Standards.PEM.Messages(#"$1")->parts->CERTIFICATE[0]->body, ([])))    test_any([[ -  string der = Standards.PEM.Messages(#"$1")->parts->CERTIFICATE[0]->body; +  string der = Standards.PEM.Messages(#"$1")->get_certificate();    object o = decode_value(encode_value(Standards.X509.decode_certificate(der)));    /* TBS does not contain the full certificate... */    /* if( o->get_der() != der ) return -1; */