summaryrefslogtreecommitdiffstats
path: root/docs/lasso-book
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2006-09-19 08:55:04 +0000
committerFrederic Peters <fpeters@entrouvert.com>2006-09-19 08:55:04 +0000
commit63c5e23649286f0682636d69c6080587c0010809 (patch)
tree9a885a9c50eb594be94594e1f9e4b3d816b6d99e /docs/lasso-book
parent76471938d99c39a662ac79fadfbe011641452925 (diff)
downloadlasso-63c5e23649286f0682636d69c6080587c0010809.tar.gz
lasso-63c5e23649286f0682636d69c6080587c0010809.tar.xz
lasso-63c5e23649286f0682636d69c6080587c0010809.zip
fixed lasso_server_new prototype
Diffstat (limited to 'docs/lasso-book')
-rw-r--r--docs/lasso-book/writing-a-c-sp.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/lasso-book/writing-a-c-sp.txt b/docs/lasso-book/writing-a-c-sp.txt
index 9c6a4e14..cc6dd259 100644
--- a/docs/lasso-book/writing-a-c-sp.txt
+++ b/docs/lasso-book/writing-a-c-sp.txt
@@ -86,8 +86,7 @@ The ``LassoServer`` object may be created as follows:
LassoServer *server;
server = lasso_server_new("sp-metadata.xml",
- "sp-private-key.pem", "sp-crt.pem",
- LASSO_SIGNATURE_METHOD_RSA_SHA1);
+ "sp-private-key.pem", NULL, "sp-crt.pem");
lasso_server_add_provider(server, LASSO_PROVIDER_ROLE_IDP,
"idp-metadata.xml", "idp-public-key.pem", "ca-crt.pem");
@@ -100,7 +99,9 @@ The ``LassoServer`` object may be created as follows:
- ``idp-public-key.pem`` is the identity provider public key; used to verify
signature in documents sent by the identity provider
- ``ca-crt.pem`` is the certificate of the certification authority used by the
- identity provider.
+ identity provider
+- NULL, the third argument, would be used if the private key was protected by a
+ password.
It is of course possible to have several calls so ``lasso_server_add_provider``
if there are more than one identity provider.