pike.git/
lib/
modules/
Standards.pmod/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:26:22 by Martin Nilsson <nilsson@opera.com>
c582f04e452395e01c2a4a5c63117ea531534e86 (
7
lines) (+
7
/-
0
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
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, ([]))) ]]))