aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/ca.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move base64, bzip, ca, and tls exampleslloyd2014-01-011-64/+0
|
* propagate from branch 'net.randombit.botan' (head ↵lloyd2011-06-131-3/+8
|\ | | | | | | | | | | 150bd11dd8090559ee1e83394b8283bf93a018de) to branch 'net.randombit.botan.c++0x' (head 7480693bb3f1e8a4e039a3e7ba3d9a7007f9730e)
| * propagate from branch 'net.randombit.botan' (head ↵lloyd2010-01-211-3/+8
| |\ | | | | | | | | | | | | | | | 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-2/+7
| | | | | | | | | | | | | | | to_string -> std::to_string system_time -> std::chrono
| | * Fix some examples for changed APIs in C++0x branchlloyd2009-11-171-1/+1
| | |
* | | ECC private keys had two different constructors, one taking a grouplloyd2011-04-081-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and a random number generator, and the other taking a group and a preset private key value. The DL private keys instead have on constructor for this; if the x value is zero, then a new random key is created. For consistency, do this with ECC as well. ECDH actually didn't have one of these constructors, forcing you to either load from PKCS #8 or else use a random key. Rename EC_Domain_Params to EC_Group, with a typedef for compatability. More doc updates. Update mtn ignores for Sphinx output
* | | More pubkey doc updateslloyd2011-04-081-0/+76
| | |
* | | Convert most of the documentation to reStructured Text, addinglloyd2011-04-041-76/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a makefile to build it with Sphinx (http://sphinx.pocoo.org/). Previously credits.txt listed public domain code sources; instead directly credit the authors in the relevant files and delete that file. Drop the draft FIPS 140 security policy; I can't imagine FIPS 140 validation will ever happen, and if it does, I don't want anything to do with it. Also drop the internals doc, which was so out of date (and incomplete) as to be worthless. Move the tutorials and InSiTo pdfs into old/ for the time being, until anything relevant from them can be filtered out and converted into RST.
* | Add copyright and license notes to pretty much every file that didn't have them,lloyd2009-12-311-4/+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-1/+1
| | | | | | | 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 LibraryInitializers to the examples, instead of relying on lazy init.lloyd2009-03-171-0/+2
| | | | Patch from David X Callaway.
* Move rng.{cpp,h} from core to rng/ topdirlloyd2008-10-261-5/+3
| | | | | | | | | | | | | | Add a new class AutoSeeded_RNG that is a RandomNumberGenerator that wraps up the logic formerly in RandomNumberGenerator::make_rng. make_rng in fact now just returns a new AutoSeeded_RNG object. AutoSeeded_RNG is a bit more convenient because - No need to use auto_ptr - No need to dereference (same syntax everywhere - it's an underestimated advantage imo) Also move the code from timer/timer_base to timer/
* Fix the DSA examples. Reindent.lloyd2008-06-281-2/+4
|
* Update some of the examples for the recent API changeslloyd2008-06-271-2/+5
|
* Add missing headers in the example problems, noticed while compiling underlloyd2008-06-111-0/+1
| | | | GCC 4.3. Missing <memory> for auto_ptr and <cstdlib> for atoi
* Update ca.cpp with new signature of X509_CA::sign_requestlloyd2008-04-101-1/+5
|
* Have the ca example take all filenames as arguments instead of hardcoding.lloyd2007-10-201-10/+18
|
* If the LibraryInitializer is created with just default arguments, don'tlloyd2007-10-071-2/+0
| | | | | | | 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).
* Don't print a CRL from the X.509 CA example.lloyd2006-06-051-7/+0
|
* Initial checkin1.5.6lloyd2006-05-181-0/+65