aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/gen_certs.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix examples. Use crazy hack of compiling asio tls server using 4.6.0lloyd2012-02-201-0/+2
| | | | | | but linking using 4.7.0 - asio seems to have problems with the 4.7.0 libstdc++ in C++11 mode, mostly related to missing noexcept and trying to copy things that are move only.
* propagate from branch 'net.randombit.botan' (head ↵lloyd2010-03-091-6/+4
|\ | | | | | | | | | | 9932d4d63417f7fcc199ada244cbaa6c1c32d9c1) to branch 'net.randombit.botan.c++0x' (head f4a385a376311edc62ef506c72cc56f69e6efd5a)
| * propagate from branch 'net.randombit.botan' (head ↵lloyd2010-01-211-5/+5
| |\ | | | | | | | | | | | | | | | 12382647ef0a28fcb11c824c77b670cc88a4f721) to branch 'net.randombit.botan.c++0x' (head b586a3286d2c4d547ad3add5af9df1455bf4b87b)
| | * Most files including <botan/time.h> actually just needed <chrono>lloyd2009-12-011-1/+1
| | | | | | | | | | | | Clean up implementation of calendar_value() a bit
| | * Update examples for changed/removed APIs, namely:lloyd2009-12-011-4/+4
| | | | | | | | | | | | | | | to_string -> std::to_string system_time -> std::chrono
| | * Fix some examples for changed APIs in C++0x branchlloyd2009-11-171-1/+1
| | |
* | | Fix minor errors and warnings in the examples. Remove boost dependency fromlloyd2010-03-031-0/+4
|/ / | | | | | | rng_test example.
* | Add copyright and license notes to pretty much every file that didn't have them,lloyd2009-12-311-0/+6
| | | | | | | | | | | | | | | | including the examples and self-test code. Most of these files had not copyright/license information at all; since a major point of the examples is to allow users to copy and paste code that already does something they want, an ambigious license is not good.
* | Make many more headers internal-only.lloyd2009-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes for the amalgamation generator for internal headers. Remove BOTAN_DLL exporting macros from all internal-only headers; the classes/functions there don't need to be exported, and avoiding the PIC/GOT indirection can be a big win. Add missing BOTAN_DLLs where necessary, mostly gfpmath and cvc For GCC, use -fvisibility=hidden and set BOTAN_DLL to the visibility __attribute__ to export those classes/functions.
* | Consolidate the non-canonical epoch timers, like cpuid and Win32'slloyd2009-12-011-1/+1
|/ | | | | | | | | | | | | | QueryPerformanceCounter, into an entropy source hres_timer. Its results, if any, do not count as contributing entropy to the poll. Convert the other (monotonic/fixed epoch) timers to a single function get_nanoseconds_clock(), living in time.h, which statically chooses the 'best' timer type (clock_gettime, gettimeofday, std::clock, in that order depending on what is available). Add feature test macros for clock_gettime and gettimeofday. Remove the Timer class and timer.h. Remove the Timer& argument to the algorithm benchmark function.
* In creating X.509 certificates and PKCS #10 requests, let (actually: require)lloyd2009-11-091-3/+3
| | | | | | | the user to specify the hash function to use, instead of always using SHA-1. This was a sensible default a few years ago, when there wasn't a ~2^60 attack on SHA-1 and support for SHA-2 was pretty much nil, but using something else makes a lot more sense these days.
* Add a couple of new exampleslloyd2009-08-041-0/+124