summaryrefslogtreecommitdiff
path: root/lib/decoding.c
AgeCommit message (Collapse)AuthorFilesLines
2019-08-28Imported Upstream version 4.14upstream/4.14Pawel Kowalski1-13/+15
2018-06-15Imported Upstream version 4.13upstream/4.13Dariusz Michaluk1-2/+26
2018-06-15Imported Upstream version 4.12upstream/4.12Dariusz Michaluk1-7/+24
2018-06-15Imported Upstream version 4.10upstream/4.10Dariusz Michaluk1-14/+14
2018-06-15Imported Upstream version 4.9upstream/4.9Dariusz Michaluk1-7/+11
2016-06-08Imported Upstream version 4.8upstream/4.8submit/upstream/20160613.071414sangsu1-233/+511
Change-Id: I25e57ece28b9ebb637a2b7356f57e11b7f2eb807 Signed-off-by: sangsu <sangsu.choi@samsung.com>
2014-06-20Renamed asn1_der_decoding_relaxed(), added ASN1_DECODE_FLAG_ALLOW_PADDING.Karel Slany1-21/+11
2014-06-20Added asn1_der_decoding_relaxed().Karel Slany1-13/+56
2014-06-09decoding: corrected the end position of the total structure.Nikos Mavrogiannopoulos1-1/+1
2014-06-05Document that ider and ider_len are optional in asn1_der_decoding_startEnd()Nikos Mavrogiannopoulos1-0/+6
2014-06-04DER decoding: optimize tail seek by using the value providing by ↵Nikos Mavrogiannopoulos1-6/+2
_asn1_append_sequence_set.
2014-06-04Optimized _asn1_append_sequence_set() by caching the tail of the element to ↵Nikos Mavrogiannopoulos1-3/+7
append on.
2014-06-04optimized _asn1_find_up().Nikos Mavrogiannopoulos1-10/+10
2014-06-03Add a sanity check in asn1_der_decoding_startEnd()Nikos Mavrogiannopoulos1-0/+3
2014-05-30doc updateNikos Mavrogiannopoulos1-4/+5
2014-05-30simplified and optimized asn1_der_decoding_startEnd().Nikos Mavrogiannopoulos1-372/+30
The second pass decoding is now avoided as the start and end values are cached during decoding.
2014-05-30Simplify temporary value storage during decoding.Nikos Mavrogiannopoulos1-20/+13
2014-05-26removed unnecessary and wrong test.Nikos Mavrogiannopoulos1-3/+0
2014-05-26fixes in length calculation in _asn1_extract_der_octet().Nikos Mavrogiannopoulos1-2/+2
2014-05-26asn1_der_decoding_element() is no more; it is simply an alias to ↵Nikos Mavrogiannopoulos1-751/+1
asn1_der_decoding().
2014-05-25doc updateNikos Mavrogiannopoulos1-2/+2
2014-05-22Allow a NULL value in asn1_read_value() for all types.Nikos Mavrogiannopoulos1-3/+3
2014-05-17Reverted ltostr() changes as the cause a significant delay to the library.Nikos Mavrogiannopoulos1-3/+3
The best approach would be to eliminate the need for ltostr() completely. Added LTOSTR_MAX_SIZE, to avoid overflows.
2014-05-17Revert "made _asn1_ltostr() safer."Nikos Mavrogiannopoulos1-5/+5
This reverts commit 07a5adb87880f3fce80aa12121409bbf652f1b6d.
2014-05-17doc updateNikos Mavrogiannopoulos1-1/+2
2014-05-17Marked asn1_der_decoding_element() as deprecated.Nikos Mavrogiannopoulos1-0/+2
2014-05-17Use the new functions in asn1_decoding_element()Nikos Mavrogiannopoulos1-7/+5
2014-05-17Revert "asn1_der_decoding_element is just an alias of asn1_der_decoding()."Nikos Mavrogiannopoulos1-6/+761
This reverts commit a8866ebf9a62386bd24f107e8384bbbf032baa52.
2014-05-17made _asn1_ltostr() safer.Nikos Mavrogiannopoulos1-5/+5
2014-05-17check for zero size in time and object ids.Nikos Mavrogiannopoulos1-2/+4
2014-05-17Allow for zero strings.Nikos Mavrogiannopoulos1-4/+10
2014-05-16Do not return illegal values in asn1_get_bit_der().Nikos Mavrogiannopoulos1-2/+5
2014-05-16removed debug definitionNikos Mavrogiannopoulos1-2/+0
2014-05-16use DECR_LEN() in _asn1_get_indefinite_length_string().Nikos Mavrogiannopoulos1-11/+17
2014-05-16use DECR_LEN in _asn1_get_octet_string()Nikos Mavrogiannopoulos1-2/+12
2014-05-16Fixes in _asn1_extract_der_octet() and usage of DECR_LEN().Nikos Mavrogiannopoulos1-12/+19
2014-05-16use DECR_LEN() in _asn1_extract_tag_der()Nikos Mavrogiannopoulos1-14/+14
2014-05-16simplified check for indefinite.Nikos Mavrogiannopoulos1-27/+24
2014-05-16expanded usage of DECR_LEN().Nikos Mavrogiannopoulos1-38/+131
2014-05-16simplified _asn1_get_octet_string().Nikos Mavrogiannopoulos1-10/+8
2014-05-16simplified _asn1_get_indefinite_length_string()Nikos Mavrogiannopoulos1-12/+10
2014-05-16More precise tracking of data.Nikos Mavrogiannopoulos1-48/+124
2014-05-16asn1_der_decoding_element is just an alias of asn1_der_decoding().Nikos Mavrogiannopoulos1-761/+6
This eliminates the need of massive code duplication.
2014-05-16More precise length check in _asn1_get_indefinite_length_string().Nikos Mavrogiannopoulos1-1/+1
2014-05-16Use the correct max length definition.Nikos Mavrogiannopoulos1-1/+1
2014-05-04Corrected an off-by-one error.Nikos Mavrogiannopoulos1-1/+1
The issue was discovered using the codenomicon TLS suite.
2014-04-22Update copyright years.Simon Josefsson1-1/+1
2014-04-17simplified asn1_find_structure_from_oid() and asn1_expand_any_defined_by().Nikos Mavrogiannopoulos1-7/+5
2014-03-28extract_tag_der_recursive: fix compilation errorsJean-Louis Thekekara1-2/+2
Fix the following errors introduced by extract_tag_der_recursive usage: decoding.c: In function 'extract_tag_der_recursive': decoding.c:560:5: error: 'ris' may be used uninitialized in this function [-Werror=maybe-uninitialized] decoding.c: In function 'asn1_der_decoding_startEnd': decoding.c:2192:40: error: unused variable 'p3' [-Werror=unused-variable] Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
2014-03-14corrected delete_unneeded_choice_fields().Nikos Mavrogiannopoulos1-2/+5