aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-06-11 01:28:32 +0000
committerlloyd <[email protected]>2008-06-11 01:28:32 +0000
commit3ce3dce2ff22634ee250ce6de113d1fd455019a4 (patch)
tree682e10550f00b070881d9908d7768af02096d9a3 /doc/examples
parent845d40bd4c9d37bcd2c79541123fed044e66c2f8 (diff)
Add missing headers in the example problems, noticed while compiling under
GCC 4.3. Missing <memory> for auto_ptr and <cstdlib> for atoi
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/base64.cpp1
-rw-r--r--doc/examples/ca.cpp1
-rw-r--r--doc/examples/decrypt.cpp1
-rw-r--r--doc/examples/dsa_ver.cpp1
-rw-r--r--doc/examples/encrypt.cpp1
-rw-r--r--doc/examples/pkcs10.cpp1
-rw-r--r--doc/examples/rsa_dec.cpp1
-rw-r--r--doc/examples/rsa_kgen.cpp2
8 files changed, 9 insertions, 0 deletions
diff --git a/doc/examples/base64.cpp b/doc/examples/base64.cpp
index 8f9a06648..9697e1376 100644
--- a/doc/examples/base64.cpp
+++ b/doc/examples/base64.cpp
@@ -12,6 +12,7 @@ This file is in the public domain
#include <string>
#include <vector>
#include <cstring>
+#include <cstdlib>
#include <botan/botan.h>
int main(int argc, char* argv[])
diff --git a/doc/examples/ca.cpp b/doc/examples/ca.cpp
index 724969187..5e465d245 100644
--- a/doc/examples/ca.cpp
+++ b/doc/examples/ca.cpp
@@ -19,6 +19,7 @@
using namespace Botan;
#include <iostream>
+#include <memory>
int main(int argc, char* argv[])
{
diff --git a/doc/examples/decrypt.cpp b/doc/examples/decrypt.cpp
index c5daeece5..279a341fe 100644
--- a/doc/examples/decrypt.cpp
+++ b/doc/examples/decrypt.cpp
@@ -14,6 +14,7 @@ This file is in the public domain
#include <string>
#include <vector>
#include <cstring>
+#include <memory>
#include <botan/botan.h>
diff --git a/doc/examples/dsa_ver.cpp b/doc/examples/dsa_ver.cpp
index 8cc01c6dc..155fbe894 100644
--- a/doc/examples/dsa_ver.cpp
+++ b/doc/examples/dsa_ver.cpp
@@ -16,6 +16,7 @@ This file is in the public domain
#include <fstream>
#include <cstdlib>
#include <string>
+#include <memory>
#include <botan/botan.h>
#include <botan/look_pk.h>
diff --git a/doc/examples/encrypt.cpp b/doc/examples/encrypt.cpp
index 7d64949f6..5b8ae8684 100644
--- a/doc/examples/encrypt.cpp
+++ b/doc/examples/encrypt.cpp
@@ -22,6 +22,7 @@ This file is in the public domain
#include <string>
#include <vector>
#include <cstring>
+#include <memory>
#include <botan/botan.h>
diff --git a/doc/examples/pkcs10.cpp b/doc/examples/pkcs10.cpp
index 7e374ad72..ae8230186 100644
--- a/doc/examples/pkcs10.cpp
+++ b/doc/examples/pkcs10.cpp
@@ -16,6 +16,7 @@ using namespace Botan;
#include <iostream>
#include <fstream>
+#include <memory>
int main(int argc, char* argv[])
{
diff --git a/doc/examples/rsa_dec.cpp b/doc/examples/rsa_dec.cpp
index 77b5e5dd4..6f71e2831 100644
--- a/doc/examples/rsa_dec.cpp
+++ b/doc/examples/rsa_dec.cpp
@@ -11,6 +11,7 @@ This file is in the public domain
#include <iostream>
#include <fstream>
#include <string>
+#include <memory>
#include <botan/botan.h>
#include <botan/look_pk.h> // for get_kdf
diff --git a/doc/examples/rsa_kgen.cpp b/doc/examples/rsa_kgen.cpp
index de2ed0db7..13d602d66 100644
--- a/doc/examples/rsa_kgen.cpp
+++ b/doc/examples/rsa_kgen.cpp
@@ -12,6 +12,8 @@ This file is in the public domain
#include <iostream>
#include <fstream>
#include <string>
+#include <cstdlib>
+
#include <botan/botan.h>
#include <botan/rsa.h>
#include <botan/libstate.h>