aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/asn1/asn1.c
Commit message (Collapse)AuthorAgeFilesLines
* Moved debug.[ch] to utils folderTobias Brunner2012-10-241-1/+1
|
* Properly encode 0 in ASN.1.Tobias Brunner2012-06-111-10/+7
| | | | | According to X.690 an INTEGER object always has at least one content octet.
* Don't use chunk_skip() in asn1_length().Tobias Brunner2012-06-111-1/+2
| | | | | | | | chunk_skip() returns chunk_empty if the length of the chunk is equal to the number of bytes to skip, this is problematic as asn1_length() modifies the original chunk. asn1_parser_t for instance uses the modified chunk to later calculate the length of the resulting ASN.1 object which produces incorrect results if it is based on chunk_empty.
* Added support for PKCS#5 v2 schemes when decrypting PKCS#8 files.Tobias Brunner2012-02-011-7/+11
|
* Added support for encrypted PKCS#8 files (for some PKCS#5 v1.5 schemes).Tobias Brunner2012-02-011-3/+7
|
* Return parsed parameters from algorithmIdentifier if they are an OID (aka EC ↵Tobias Brunner2012-02-011-1/+1
| | | | | | | named curve). Explicit EC parameters are not supported with this function, but before this change no parameters were actually ever returned.
* Allow callers to force ASN.1 date encoding as GENERALIZEDTIME.Tobias Brunner2011-12-231-4/+5
|
* Avoid integer overflow when parsing ASN.1 dates.Tobias Brunner2011-12-231-2/+2
| | | | This only works properly if sizeof(time_t) > 4.
* Properly ASN.1 encode dates in certificates depending on the year.Tobias Brunner2011-12-231-2/+6
|
* Log ASN.1 parsing in new ASN debug group.Tobias Brunner2011-12-161-17/+17
|
* fixed asn1_oid_from_string(), allowing it to handle up to 32 bit node numbersAndreas Steffen2011-03-121-11/+12
|
* output unknown OIDs in dot string notationAndreas Steffen2011-03-111-4/+14
|
* fixed asn1_oid_to_string() conversionAndreas Steffen2011-03-091-15/+9
|
* Added conversion functions between string OIDs and its DER encodingMartin Willi2011-01-051-0/+94
|
* Double-check that a blob passed to is_asn1() is not emptyMartin Willi2010-05-051-1/+7
|
* Adding DBG_LIB to all calls of libstrongswan's version of DBG*.Tobias Brunner2010-04-061-17/+18
|
* Fixing some includes by replacing <> with "".Tobias Brunner2010-03-021-1/+0
| | | | I changed only the includes needed to fix the build on Android, which has an utils.h system header file, but we should probably change all the local includes in libstrongswan to "" and relative paths.
* Whitespace cleanup.Tobias Brunner2009-12-231-10/+10
|
* Using the thread wrapper in charon, libstrongswan and their plugins.Tobias Brunner2009-12-231-1/+0
|
* define TIME_32_BITS_SIGNED_MAX in utils.hAndreas Steffen2009-11-081-5/+3
|
* Removed chunk_from_buf() in favor of a simpler chunk_from_chars() macroMartin Willi2009-09-111-8/+4
|
* replaces four spaces by tabs, where appropriateMartin Willi2009-09-041-5/+5
|
* removed trailing spaces ([[:space:]]+$)Martin Willi2009-09-041-54/+54
|
* accept octet strings in is_asn1() checkMartin Willi2009-09-031-1/+1
|
* OID_EC_PUBLICKEY has a parameters field, defining the elliptic curveAndreas Steffen2009-08-271-1/+0
|
* added OID_EC_PUBLIC_KEY algorithmIdentifierAndreas Steffen2009-08-271-5/+6
|
* do not append a NULL paramter to ECDSA algorithmIdentifiersMartin Willi2009-08-271-3/+17
|
* create algorithmIdentifier dynamically from OID databaseMartin Willi2009-08-271-140/+3
|
* in addition to 'm'/'c' mode, asn1_wrap accepts a 's' mode clearing sensitive ↵Martin Willi2009-08-261-2/+9
| | | | information
* asn1_unwrap() function to parse ASN.1 objects with length/typeMartin Willi2009-07-061-0/+47
|
* added additional sanity checks to asn1_length() parsingMartin Willi2009-07-031-9/+16
|
* additional check in case of non-positive monthsAndreas Steffen2009-06-101-2/+2
|
* fixed typo in asn1.cAndreas Steffen2009-06-101-1/+1
|
* fixed DoS vulnerability in the parsing of ASN.1 time stringsAndreas Steffen2009-06-101-4/+17
|
* fixed DoS vulnerability in the parsing of distinguished namesAndreas Steffen2009-06-091-0/+5
|
* pluto and scepclient use private and public key plugins of libstrongswanAndreas Steffen2009-06-091-2/+37
|
* more intuitive leap year checkTobias Brunner2009-05-151-3/+3
|
* fixed 32 bit overflow checkAndreas Steffen2009-05-141-1/+1
|
* compute ASN.1 to UTC time without time functionsAndreas Steffen2009-05-141-54/+39
|
* fixed timezone compensation when parsing ASN.1 datesTobias Brunner2009-05-081-6/+29
|
* removing svn keyword $Id$ from all filesTobias Brunner2009-04-301-2/+0
|
* merging changes from portability branch back to trunkTobias Brunner2009-04-301-3/+10
| | | | | important change for developers: %Y replaces %D to print identities!
* scepclient and pluto use asn1 from libstrongswanAndreas Steffen2009-04-201-1/+1
|
* fixed OID encodingMartin Willi2009-04-171-2/+2
|
* asn1_build_known_oid() includes ASN1_OID tag and lengthAndreas Steffen2009-04-161-2/+5
|
* added missing curly bracketsAndreas Steffen2009-04-151-0/+4
|
* implemented asn1_get_known_oid(), mapping OID index to ASN1 OIDMartin Willi2009-04-141-0/+29
|
* remove ambiguity by setting parenthesesAndreas Steffen2009-03-271-1/+1
|
* fixed ASN.1 to time_t conversion on 32-bit system for dates after Jan 19 ↵Andreas Steffen2009-03-271-8/+13
| | | | 03:14:07 UTC 2038
* the parameters field in an ASN.1 algorithmIdentifier is optionalAndreas Steffen2009-03-131-14/+1
|