Commit Graph
48 Commits
Author SHA1 Message Date
Martin Willi 90855e965a added additional sanity checks to asn1_length() parsing 2009-07-03 09:26:48 +02:00
Andreas Steffen 355bab380c additional check in case of non-positive months 2009-06-10 15:33:39 +02:00
Andreas Steffen c04bf43363 fixed typo in asn1.c 2009-06-10 12:00:26 +02:00
Andreas Steffen 95c00dfcf9 fixed DoS vulnerability in the parsing of ASN.1 time strings 2009-06-10 11:39:17 +02:00
Andreas Steffen b29832c74f fixed DoS vulnerability in the parsing of distinguished names 2009-06-09 22:03:33 +02:00
Andreas Steffen 8b799d55ce pluto and scepclient use private and public key plugins of libstrongswan 2009-06-09 11:03:32 +02:00
Tobias Brunner 5020a456c0 more intuitive leap year check 2009-05-15 09:36:55 +02:00
Andreas Steffen 13bb168485 fixed 32 bit overflow check 2009-05-14 15:39:31 +02:00
Andreas Steffen 30a896173b compute ASN.1 to UTC time without time functions 2009-05-14 13:55:55 +02:00
Tobias Brunner 65ea37abcd fixed timezone compensation when parsing ASN.1 dates 2009-05-08 15:23:50 +02:00
Tobias Brunner 8c5d72cd0b removing svn keyword $Id$ from all files 2009-04-30 13:19:35 +00:00
Tobias Brunner d24a74c5b4 merging changes from portability branch back to trunk
important change for developers: %Y replaces %D to print identities!
2009-04-30 11:37:54 +00:00
Andreas Steffen 08b2d288a1 scepclient and pluto use asn1 from libstrongswan 2009-04-20 20:53:38 +00:00
Martin Willi 98e7317daa fixed OID encoding 2009-04-17 08:28:53 +00:00
Andreas Steffen cfa42285a4 asn1_build_known_oid() includes ASN1_OID tag and length 2009-04-16 08:18:22 +00:00
Andreas Steffen f3ec7ef7de added missing curly brackets 2009-04-15 18:37:59 +00:00
Martin Willi 56807f35b9 implemented asn1_get_known_oid(), mapping OID index to ASN1 OID 2009-04-14 13:50:23 +00:00
Andreas Steffen 9bada09057 remove ambiguity by setting parentheses 2009-03-27 08:58:48 +00:00
Andreas Steffen 5021380d35 fixed ASN.1 to time_t conversion on 32-bit system for dates after Jan 19 03:14:07 UTC 2038 2009-03-27 08:54:10 +00:00
Andreas Steffen 8065780f4a the parameters field in an ASN.1 algorithmIdentifier is optional 2009-03-13 20:22:24 +00:00
Tobias Brunner d25ce3701e printf hooks refactored to increase portability (i.e. support for platforms without glibc-compatible customizable printf - the Vstr string library is currently required on such platforms). 2009-03-12 18:07:32 +00:00
Martin Willi 5e5b2dc105 use thread-safe variant of gmtime 2008-12-09 15:00:30 +00:00
Tobias Brunner 468d45e68b making the parsing of parameters of a subjectAlgorithmIdentifier optional 2008-06-10 07:36:44 +00:00
Andreas Steffen 460025e253 introduced ASN1_EXIT command in ASN.1 object syntax definition 2008-04-28 16:00:52 +00:00
Andreas Steffen d3d7e46b8c refactoring of the ASN.1 parser 2008-04-26 09:24:14 +00:00
Martin Willi 552cc11b1f merged the modularization branch (credentials) back to trunk 2008-03-13 14:14:44 +00:00
Andreas Steffen 298c9c8eed some websites append a newline character to a DER-encoded binary blob 2008-02-05 19:27:05 +00:00
Andreas Steffen 2e3d4743d3 added md2WithRSA algorithm identifier 2008-01-22 10:52:03 +00:00
Andreas Steffen cd543a69a2 extended asn1_algorithmIdentifier() to SHA-2 2008-01-22 10:32:37 +00:00
Andreas Steffen aa57b221e3 added RCSID 2007-10-12 19:29:00 +00:00
Andreas Steffen 466c5439e5 cosmetics 2007-10-12 19:20:59 +00:00
Andreas Steffen e0b3a60578 replace sizeof(buf) by BUF_LEN 2007-09-18 22:10:52 +00:00
Andreas Steffen 230702901f recovered lost asn1_init() function 2007-09-18 21:21:19 +00:00
Andreas Steffen 03108e6dd1 moved position of timetoas1n 2007-09-18 21:04:39 +00:00
Andreas Steffen f749108056 increased debug level for errors to DBG1 2007-09-12 06:56:59 +00:00
Andreas Steffen 780390e96a added md2, sha256, sha384, and sha512 ASN.1 algorithm IDs 2007-09-11 16:25:28 +00:00
Andreas Steffen 854a96ae47 moved parse_time() from x509.c to asn1.c 2007-04-12 18:58:27 +00:00
Andreas Steffen e6b1066edc cosmetics 2007-02-27 22:05:49 +00:00
Andreas Steffen bc5c21baac cosmetics 2007-02-27 21:22:57 +00:00
Martin Willi 7006a51efc removed my time_t printf handler patch, applied the one of andreas (64bit save) 2007-02-08 15:22:21 +00:00
Martin Willi db7ef62494 better split up of library files "types.h" & "definitions.h"
centralized all printf specifier character definitions
reuse of arginfo handlers
more cleanups
fixed more AMD64 issues
added DEBUG_LEVEL compile flag to exclude DBGn() statements
2006-10-31 12:27:59 +00:00
Andreas Steffen e4738363c1 added private flag to asn1_ctx_t 2006-10-25 08:30:33 +00:00
Martin Willi 60356f3375 introduced new logging subsystem using bus:
passive listeners can register on the bus
  active listeners wait for signals actively
  multiplexing allows multiple listeners to receive debug signals
  a lot more...
2006-10-18 11:46:13 +00:00
Martin Willi b12af2ead6 fixed compiler warnings 2006-07-05 10:09:42 +00:00
Andreas Steffen 5407d563b7 changed ASN.1 CONTROL log output to LEVEL2 2006-06-09 05:45:37 +00:00
Andreas Steffen c2e7442fc1 moved timetoa() from asn1.c to types.c 2006-05-29 07:02:12 +00:00
Martin Willi 86a7937b45 - applied patch from andreas, which allows certificate listing via stroke 2006-05-19 06:44:08 +00:00
Martin Willi 95806de938 2006-05-10 07:58:29 +00:00