aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1
Commit message (Collapse)AuthorAgeFilesLines
* Fix various x509 path validation bugs + path building with ambiguous DNsFabian Weissberg2017-12-201-1/+3
| | | | Signed-off-by: Fabian Weissberg <[email protected]>
* Add accessors to ASN1_Attribute and AlgorithmIdentifierJack Lloyd2017-12-194-27/+49
|
* Fix some other copy+paste code in BER_DecoderJack Lloyd2017-12-194-77/+58
|
* Simplify overloads in DER_EncoderJack Lloyd2017-12-192-37/+15
|
* Remove use of "using namespace std"Jack Lloyd2017-12-041-8/+10
|
* Simplify date conversion by avoiding OS utilitiesJack Lloyd2017-12-041-6/+6
| | | | | | | We have to rely on non-portable OS calls to convert UTC times, and they are not available on many systems (including Solaris and MinGW). But instead there is a simple algorithm due to Howard Hinnant that does the same job. Woo.
* Avoid uncontrolled recusion on indefinite length encodingsJack Lloyd2017-11-201-17/+26
| | | | | A sufficiently nested indefinite length construction would cause stack exhaustion and a crash. Found by OSS-Fuzz - issue 4353
* Update ASN.1 fuzzerJack Lloyd2017-11-151-3/+3
|
* Correct handling of nested context specificJack Lloyd2017-11-151-4/+3
|
* Move ASN1 printer to the libraryJack Lloyd2017-11-154-0/+415
|
* Increase the size of an ASN.1 tag enum to 32-bitsJack Lloyd2017-11-151-1/+1
| | | | Fixes GH #751
* Consolidate function for testing for ASN.1 string typesJack Lloyd2017-11-142-8/+21
|
* Move X509_DN and AlternativeName from asn1 to x509Jack Lloyd2017-11-144-730/+0
|
* Add OIDS::oid2str and str2oidJack Lloyd2017-11-141-0/+10
| | | | Using the name "lookup" for both directions is confusing.
* Remove use of transcodeJack Lloyd2017-11-095-112/+62
|
* FIX: linker error on windows (VSO#143857)René Meusel2017-11-091-2/+14
|
* add conversion from UCS-2/4 to UTF-8Rene Meusel2017-11-091-11/+42
|
* introduce UNIVERSAL_STRING (UCS-4)Rene Meusel2017-11-092-1/+3
|
* add coding clarificationsRene Meusel2017-11-091-2/+6
|
* allow encoding of UTF-8 stringsRene Meusel2017-11-091-4/+1
|
* switch to default utf-8 string in ASN1_StringRene Meusel2017-11-092-8/+8
|
* X.509 RSA-PSS verificationDaniel Neus2017-10-201-1/+11
|
* Additional final annotationsJack Lloyd2017-10-151-1/+1
|
* Address some bool/int conversion warnings from SonarJack Lloyd2017-10-061-1/+1
| | | | Nothing major but probably good to clean these up.
* Correct the SHA-3 PKCSv1.5 IDsJack Lloyd2017-10-051-1/+3
| | | | | | | Thanks to @noloader for pointing me at draft-jivsov-openpgp-sha3-01 which has the correct values. Adds a test so this can't happen again.
* Avoid empty methods, use =default or add a commentJack Lloyd2017-10-032-8/+1
| | | | Sonar
* Add wrappers for reinterpret_cast between char* and uint8_t*Jack Lloyd2017-10-031-1/+1
| | | | | | | Generally speaking reinterpret_cast is sketchy stuff. But the special case of char*/uint8_t* is both common and safe. By isolating those, the remaining (likely sketchy) cases are easier to grep for.
* Uppercase constantsJack Lloyd2017-10-021-12/+15
|
* Retract explicit on OIDJack Lloyd2017-09-301-1/+1
| | | | This conversion is often useful
* Use explicit on more single-argument constructorsJack Lloyd2017-09-301-1/+1
|
* Use class instead of struct for objects with member functionsJack Lloyd2017-09-301-5/+7
| | | | Flagged by Sonar and quite reasonable
* Further header cleanupsJack Lloyd2017-09-281-0/+1
|
* Refactor to avoid explicit delete in BER_DecoderJack Lloyd2017-09-222-26/+12
|
* Apply final annotations to the library alsoJack Lloyd2017-09-223-4/+4
| | | | | Done by a perl script which converted all classes to final, followed by selective reversion where it caused compilation failures.
* Header file cleanupsJack Lloyd2017-09-214-5/+1
| | | | Some help from include-what-you-use
* Change header guard format to BOTAN_FOO_H_Jack Lloyd2017-09-2011-22/+22
| | | | | | ISO C++ reserves names with double underscores in them Closes #512
* Add API stability annotations.Jack Lloyd2017-09-1911-31/+31
| | | | | Defined in build.h, all equal to BOTAN_DLL so ties into existing system for exporting symbols.
* Fix various MSVC warningsJack Lloyd2017-08-312-2/+6
| | | | Based on VC2017 output
* Add a guard to avoid doing &v[1] when v.size() == 1Jack Lloyd2017-08-251-2/+6
| | | | Found by running the fuzzers over corpus with debug iterators.
* Add Streebog hash (GOST R 34.11-2012).Daniel Wyatt2017-08-041-1/+5
|
* Add SM2 signature schemeJack Lloyd2017-06-291-1/+9
| | | | | | From https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02 This is a contribution from Ribose Inc (@riboseinc).
* Moved to draft-ietf-curdle-pkix assigned OIDsFrancis Dupont2017-06-121-5/+5
|
* Add Ed25519 key type and testsJack Lloyd2017-06-071-1/+3
| | | | This work was sponsored by Ribose Inc
* Add SM3 OIDs and PKCSv1.5 hash prefixJack Lloyd2017-05-191-1/+5
|
* Avoid recursion in BER_Decoder::get_next_objectJack Lloyd2017-04-091-11/+16
|
* Content:Tomasz Frydrych2017-04-034-4/+7
| | | | | | | | | * fixes for deprecated constructions in c++11 and later (explicit rule of 3/5 or implicit rule of 0 and other violations) * `default` specifier instead of `{}` in some places(probably all) * removal of unreachable code (for example `return` after `throw`) * removal of compilation unit only visible, but not used functions * fix for `throw()` specifier - used instead `BOTAN_NOEXCEPT` * removed not needed semicolons
* Remove "Dirty hack" for multiple defines in lex_me_harder()Simon Warta2017-04-021-1/+3
|
* Fix some compiler warnings.Jack Lloyd2017-03-221-1/+1
|
* Merge GH #897 Add generic memory type BER decoderJack Lloyd2017-03-221-0/+32
|\
| * Add generic memory type value BER decoderNuno Goncalves2017-03-071-0/+32
| | | | | | | | Signed-off-by: Nuno Goncalves <[email protected]>