pike.git/
lib/
modules/
Standards.pmod/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2014-05-18
2014-05-18 10:17:11 by Martin Nilsson <nilsson@opera.com>
a6830fb9e4d9c96a85c4461d74be37e4000939c8 (
7
lines) (+
7
/-
0
)
[
Show
|
Annotate
]
Branch:
8.0
Test ECC certificates.
342:
]], 1) ]])
+
test_any([[
+
Crypto.RSA root_rsa = Crypto.RSA();
+
rsa->generate_key(512);
+
string root = Standards.X509.make_root_certificate(root_rsa, 3600, ([ "commonName":"*" ]));
+
]], 1)
+
define(test_cert, ([[ test_true(Standards.X509.verify_certificate(Standards.PEM.Messages(#"$1")->parts->CERTIFICATE->body, ([]))) ]]))