pike.git/
lib/
modules/
Standards.pmod/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2014-11-03
2014-11-03 15:07:18 by Martin Nilsson <nilsson@opera.com>
49c4c0f1d46d9aa3907b2fa1847afb58f583b9e2 (
3
lines) (+
2
/-
1
)
[
Show
|
Annotate
]
Branch:
8.1
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; */