diff options
author | lloyd <[email protected]> | 2008-04-10 04:58:17 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-04-10 04:58:17 +0000 |
commit | 7b13c4f0831d6d94550969eaeaae5d028c1a034b (patch) | |
tree | 378f4a0cac94aab75a73dc8283174ef639fc49a9 /doc/examples | |
parent | fd717509a0547faa4384b351635a85f7315f2eaa (diff) |
Update ca.cpp with new signature of X509_CA::sign_request
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/ca.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/examples/ca.cpp b/doc/examples/ca.cpp index 5458a98cc..724969187 100644 --- a/doc/examples/ca.cpp +++ b/doc/examples/ca.cpp @@ -15,6 +15,7 @@ #include <botan/botan.h> #include <botan/x509_ca.h> +#include <botan/util.h> using namespace Botan; #include <iostream> @@ -50,7 +51,10 @@ int main(int argc, char* argv[]) // (this example should be extended to show how) // now sign the request - X509_Certificate new_cert = ca.sign_request(req); + X509_Time start_time(system_time()); + X509_Time end_time(system_time() + 365 * 60 * 60 * 24); + + X509_Certificate new_cert = ca.sign_request(req, start_time, end_time); // send the new cert back to the requestor std::cout << new_cert.PEM_encode(); |