aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/dh.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-10-07 23:55:19 +0000
committerlloyd <[email protected]>2007-10-07 23:55:19 +0000
commit72fce1ebf137e1a33bd39d221b79da1234d62cb9 (patch)
treefc667712d5a8ae302a878a6c8ae414d566065534 /doc/examples/dh.cpp
parent6d745f8e2b5bb0089dbc58a7871adc29a1c0fac6 (diff)
If the LibraryInitializer is created with just default arguments, don't
bother creating it, just let it be initialized lazily when needed. Reindents in encypt.cpp and hash_fd.cpp (indenting the brace after a try statement).
Diffstat (limited to 'doc/examples/dh.cpp')
-rw-r--r--doc/examples/dh.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/doc/examples/dh.cpp b/doc/examples/dh.cpp
index 8dcc93f88..17dd29f56 100644
--- a/doc/examples/dh.cpp
+++ b/doc/examples/dh.cpp
@@ -14,8 +14,6 @@ using namespace Botan;
int main()
{
try {
- LibraryInitializer init;
-
// Alice creates a DH key and sends (the public part) to Bob
DH_PrivateKey private_a(DL_Group("modp/ietf/1024"));
DH_PublicKey public_a = private_a; // Bob gets this