aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/parsing.cpp
Commit message (Collapse)AuthorAgeFilesLines
* propagate from branch 'net.randombit.botan.tls-state-machine' (head ↵lloyd2012-02-201-55/+25
|\ | | | | | | | | | | 0ceb9cde62a2b3614901ae85a53546d9fc641326) to branch 'net.randombit.botan.cxx11' (head 777e65950ef3706a82e5df20dcca7fcc999ca533)
| * Add string_join; inverse of split_on.lloyd2011-06-171-0/+17
| | | | | | | | | | | | | | | | | | Use auto in a few more places. Use GCC 4.6's range-for Delete rather than hide Algorithm copy constructor/assignment Move version to more or less randomly chosen 1.99 so there is no ambiguity about versions.
| * propagate from branch 'net.randombit.botan' (head ↵lloyd2010-10-281-1/+1
| |\ | | | | | | | | | | | | | | | 2841fb518e20d2fe0a374e4f6b08bdbb14d5d158) to branch 'net.randombit.botan.c++0x' (head 0b9275139d6346bd3aa28d63bf8b8a03851d853d)
| * \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-10-131-55/+8
| |\ \ | | | | | | | | | | | | | | | | | | | | 2898d79f992f27a328a3e41d34b46eb1052da0de) to branch 'net.randombit.botan.c++0x' (head 6cba76268fd69a73195760c021b7f881b8a6552c)
| | * \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-02-141-63/+16
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | 5bfc3e699003b86615c584f8ae40bd6e761f96c0) to branch 'net.randombit.botan.c++0x' (head 8c64a107b58d41f376bfffc69dfab4514d722c5c)
| | | * \ propagate from branch 'net.randombit.botan' (head ↵lloyd2010-01-211-63/+16
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 12382647ef0a28fcb11c824c77b670cc88a4f721) to branch 'net.randombit.botan.c++0x' (head b586a3286d2c4d547ad3add5af9df1455bf4b87b)
| | | | * \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-12-211-63/+16
| | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 14c1d4dc8696d2705a70ec3d2403e01d2ca95265) to branch 'net.randombit.botan.c++0x' (head c567fa7310ba082a837562092728c4b4b882bf82)
| | | | | * \ propagate from branch 'net.randombit.botan' (head ↵lloyd2009-12-161-1/+1
| | | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 744dccf92270cf16b80b50ee2759424c9866b256) to branch 'net.randombit.botan.c++0x' (head 2aa1acac1d05e8ea9991fe39015b1db9abc3b24e)
| | | | | * | | Remove to_string, replacing with std::to_stringlloyd2009-11-181-48/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert to_u32bit to use the new C++0x library func stoul instead of hand-written code.
| | | | | * | | Fixup post-merge breakagelloyd2009-10-131-1/+1
| | | | | | | |
| | | | | * | | propagate from branch 'net.randombit.botan' (head ↵lloyd2009-10-131-18/+18
| | | | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 139d6957d20f0b1202e0eacc63cb011588faffde) to branch 'net.randombit.botan.c++0x' (head c16676fa6c393bc3f46a044755ce525a013380a6)
| | | | | | * | | A few experiments with auto keyword type inference. Looks like things willlloyd2009-04-011-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | be much cleaner, though I am looking forward to the new for syntax which will simplify a lot of these uses further.
* | | | | | | | | Add Ciphersuite::to_stringlloyd2012-01-231-0/+13
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a convenience function to Session that returns the ciphersuite class since mostly users won't care about the underlying code point.
* | | | | | | | Prefix vs postfixlloyd2010-10-151-2/+2
|/ / / / / / /
* / / / / / / s/u32bit/size_t/ in utilslloyd2010-10-131-19/+19
|/ / / / / /
* / / / / / Move the get_byte template to its own header, because many fileslloyd2010-02-021-1/+1
|/ / / / / | | | | | | | | | | | | | | | including loadstor.h actually just needed get_byte and nothing else.
* / / / / Clean up exceptions. Remove some unused ones like Config_Error. Makelloyd2010-01-051-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | Invalid_Argument just a typedef for std::invalid_argument. Make Botan::Exception a typedef for std::runtime_error. Make Memory_Exhaustion a public exception, and use it in other places where memory allocations can fail.
* | | / Un-internal loadstor.h (and its header deps, rotate.h andlloyd2009-12-211-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bswap.h); too many external apps rely on loadstor.h existing. Define 64-bit generic bswap in terms of 32-bit bswap, since it's not much slower if 32-bit is also generic, and much faster if it's not. This may be quite helpful on 32-bit x86 in particular. Change formulation of generic 32-bit bswap. It may be faster or slower depending on the CPU, especially the latency and throuput of rotate instructions, but should be faster on an ideally superscalar processor with rotate instructions (ie, what I expect future CPUs to look more like).
* | | 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.
* / In to_u32bit, ignore space characters in inputlloyd2009-10-061-0/+3
|/
* Thomas Moschny passed along a request from the Fedora packagers which camelloyd2009-03-301-31/+33
| | | | | | | | | | | | | | | up during the Fedora submission review, that each source file include some text about the license. One handy Perl script later and each file now has the line Distributed under the terms of the Botan license after the copyright notices. While I was in there modifying every file anyway, I also stripped out the remainder of the block comments (lots of astericks before and after the text); this is stylistic thing I picked up when I was first learning C++ but in retrospect it is not a good style as the structure makes it harder to modify comments (with the result that comments become fewer, shorter and are less likely to be updated, which are not good things).
* Move parsing.{h,cpp} to utils modulelloyd2008-09-281-0/+286