pike.git/
CHANGES
Branch:
Tag:
Non-build tags
All tags
No tags
2008-11-18
2008-11-18 09:12:15 by Martin Nilsson <mani@lysator.liu.se>
d3a9cba5649a9e58ecbe6378e9aea0e016647fa3 (
16
lines) (+
15
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
SSL certificate example.
Rev: CHANGES:1.155
955:
o SSL
-
FIXME:
client
certificates
:
examples?
+
It
is now possible to set
certificates
to SSL connections. Example
:
-
+
SSL.sslfile ssl_connection(Stdio.File conn, string my_key,
+
string my_certificate)
+
{
+
ctx->client_rsa = Standards.PKCS.RSA.parse_private_key(my_key);
+
+
// client_certificates is an array holding arrays of certificate
+
// chains. since we've got a self-signed cert, our cert array has
+
// only 1 element.
+
ctx->client_certificates += ({ ({ my_certificate }) });
+
+
return SSL.sslfile(conn, ctx, 1, 1);
+
}
+
o Standards.IIM Some bugfixes in parsing Photoshop headers and DOS EPS Binary