aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/cert
Commit message (Collapse)AuthorAgeFilesLines
* Merge GH #484 use explicit casts to avoids MSVC warning C4267Jack Lloyd2016-05-092-4/+4
|\
| * Add explicit static_cast operations to eliminate implicit cast compiler ↵Dan Brown2016-04-272-4/+4
| | | | | | | | warnings.
* | Add missing overrideJack Lloyd2016-04-281-1/+1
|/
* Move name constraints validation code to extension classRené Korthaus2016-04-173-101/+111
|
* Add Unknown_Critical_Extension typeRené Korthaus2016-04-103-16/+43
|
* Generate error on unknown critical extension during path validationRené Korthaus2016-04-069-19/+145
| | | | | | | | | | | | Previously unknown critical extensions were rejected during X509_Certificate constructor, which inhibited inspecting other parts of such a certificate. Refactored the certificate extensions code so that the path validation routine performs this check only. Additionally, added an interface for extensions to inspect the path during path validation. TODOs were added in places where existing path validation code can use the new interface. Fixes GH #449.
* Merge GH #454 X.509 name constraintsJack Lloyd2016-03-168-7/+630
|\
| * Changes from GH #454 reviewJack Lloyd2016-03-162-68/+72
| |
| * X.509 Name ConstraintsKai Michaelis2016-03-108-7/+626
| |
* | Trivial warning fixesJack Lloyd2016-03-091-8/+12
| |
* | Typos are easy to miss in code that is not compiled by default.Jack Lloyd2016-03-061-1/+1
| |
* | Merge GH #437 add X509_Certificate::v3_extensionsJack Lloyd2016-03-064-20/+35
|\ \ | | | | | | | | | | | | Makes it possible for an application to interpret some extension not supported by the library.
| * | +added fields for custom x509 extensionsChristopher Bläsius2016-02-294-20/+33
| |/ | | | | | | +Extensions now uses std::unique_ptr
* | Fix ordering of Charset::transcode argumentsJack Lloyd2016-03-061-1/+1
| | | | | | | | GH #438
* | Remaining cppcheck fixes that are not covered by GH #444Daniel Neus2016-03-051-11/+5
| |
* | cppcheck fixes: Class 'X' has a constructor with 1 argument that is not ↵Daniel Neus2016-03-058-25/+25
|/ | | | explicit.
* Fix remaining Wshadow warnings and enable on gcc and clangRené Korthaus2016-02-181-1/+1
|
* Merge GH #408 Add final attribute on many classesJack Lloyd2016-01-126-17/+17
|\
| * Add final attribute to many classesJack Lloyd2016-01-106-17/+17
| | | | | | | | | | | | | | In some cases this can offer better optimization, via devirtualization. And it lets the user know the class is not intended for derivation. Some discussion in GH #402
* | Prefix more member vars with m_ prefixRené Korthaus2016-01-112-85/+85
|/
* Mass-prefix member vars with m_René Korthaus2016-01-0825-271/+283
|
* String comparision fixesDaniel Neus2016-01-048-11/+11
| | | | fix PVS-Studio perfomance warnings
* some trivial compiler/PVS-Studio warning fixesDaniel Neus2015-12-222-2/+2
|
* Reroot the exception hierarchy into a toplevel Exception classJack Lloyd2015-12-115-16/+16
| | | | | | | | As the alternatives are unfortunate for applications trying to catch all library errors, and it seems deriving from std::runtime_error causes problems with MSVC DLLs (GH #340) Effectively reverts 2837e915d82e43
* Update and consolidate the test framework.Jack Lloyd2015-11-111-1/+1
| | | | | | | | | | | The tests previously had used 4 to 6 different schemes internally (the vec file reader framework, Catch, the old InSiTo Boost.Test tests, the PK/BigInt tests which escaped the rewrite in 1.11.7, plus a number of one-offs). Converge on a design that works everywhere, and update all the things. Fix also a few bugs found by the test changes: SHA-512-256 name incorrect, OpenSSL RC4 name incorrect, signature of FFI function botan_pubkey_destroy was wrong.
* Add check for path validation result in Credentials_Manager. GH #324Jack Lloyd2015-11-042-1/+4
|
* Merge pull request #313 from randombit/path-validation-fixesJack Lloyd2015-10-267-96/+148
|\ | | | | Fix cert validation bugs found by x509test.
| * Fix cert validation bugs found by x509test.Jack Lloyd2015-10-237-96/+148
| | | | | | | | Add test suite with certs from x509test
* | Update doc for issuer_dn() and subject_dn()Simon Warta2015-10-202-8/+2
|/ | | | [ci skip]
* Export X.509 certificates to ffi and pythonJack Lloyd2015-10-011-0/+1
| | | | Missing path validation, probably other things
* Avoid concatination of charsSimon Warta2015-09-221-1/+1
| | | | | | | Ever tried? auto str = "some long string"; auto str2 = str + '\n'; It's not with the brainfuck finding the bug.
* Remove use of lookup.h in favor of new T::create API.Jack Lloyd2015-09-213-7/+8
|
* Sometimes we don't know the input format. But it is one of twoSimon Warta2015-08-113-6/+6
|
* Remove string constructor of X509_Time()Simon Warta2015-08-114-10/+10
| | | | | | | | | | | * Break down string representations to to_string() and readable_string() * Add m_ prefix to member variable names * Fix order of methods * Move comments Doxygen friendly to header * Make set_to() private (future subjejt of refectoring); People should use constructor Closes #185
* Remove unused pkcs8 includesSimon Warta2015-08-034-4/+0
| | | | Only botan-cli, botan-tests and the FFI module depend on PKCS8
* x509: Add missing overridesDaniel Seither2015-07-306-77/+90
|
* Fix typosSimon Warta2015-07-242-3/+3
| | | | Thanks to @vlajos https://github.com/vlajos/misspell_fixer
* Refactor internal/filesystem.hSimon Warta2015-07-161-2/+2
| | | | Closes #198
* Make Botan compile when only some modules are enabledSimon Warta2015-07-031-1/+0
| | | | Fixes #146.
* Fix module dependencies of x509 and pubkeySimon Warta2015-06-301-0/+2
|
* lib/cert: Convert &vec[0] to vec.data()Simon Warta2015-06-272-6/+10
|
* Fix code that triggers a strange MSVC 'performance warning'git2015-04-081-1/+1
| | | | Github pull 74 from Chris Desjardins
* Fix memory leak in TLS tests. Remove last few remaining uses of auto_ptr.lloyd2015-03-082-0/+7
|
* Hide all uses of boost filesystem in fs.cpp. Use readdir as anlloyd2015-02-212-22/+7
| | | | | alternate implementation for Unix and add some feature checks so a boost-free build of the tests and command line are possible again.
* Remove algo factory, engines, global RNG, global state, etc.lloyd2015-02-046-12/+21
| | | | | | | | | | | | | | | Convert all uses of Algorithm_Factory and the engines to using Algo_Registry The shared pool of entropy sources remains but is moved to EntropySource. With that and few remaining initializations (default OIDs and aliases) moved elsewhere, the global state is empty and init and shutdown are no-ops. Remove almost all of the headers and code for handling the global state, except LibraryInitializer which remains as a compatability stub. Update seeding for blinding so only one hacky almost-global RNG instance needs to be setup instead of across all pubkey uses (it uses either the system RNG or an AutoSeeded_RNG if the system RNG is not available).
* Ensure all files have copyright and license info.lloyd2015-01-1045-51/+51
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* If no certificate stores at all are available skip OCSP checkslloyd2015-01-041-5/+7
|
* Fix a couple things pointed out by VC++ warnings.lloyd2014-12-221-4/+3
|
* On Windows fs::path::native() is a u16 stringlloyd2014-11-221-1/+1
|
* Remove unused includeslloyd2014-11-182-2/+0
|