summaryrefslogtreecommitdiff
path: root/lib/coding.c
AgeCommit message (Collapse)AuthorFilesLines
2019-08-28Imported Upstream version 4.14upstream/4.14Pawel Kowalski1-91/+96
2018-06-15Imported Upstream version 4.9upstream/4.9Dariusz Michaluk1-4/+4
2016-06-08Imported Upstream version 4.8upstream/4.8submit/upstream/20160613.071414sangsu1-5/+10
Change-Id: I25e57ece28b9ebb637a2b7356f57e11b7f2eb807 Signed-off-by: sangsu <sangsu.choi@samsung.com>
2014-06-09When encoding DER note the positions of the DER start and end.Nikos Mavrogiannopoulos1-0/+3
That will allow using asn1_der_decoding_startEnd() without performing decoding.
2014-06-04optimized _asn1_find_up().Nikos Mavrogiannopoulos1-2/+2
2014-05-30removed unused variableNikos Mavrogiannopoulos1-1/+1
2014-05-30Simplify temporary value storage during coding.Nikos Mavrogiannopoulos1-13/+7
2014-05-17Reverted ltostr() changes as the cause a significant delay to the library.Nikos Mavrogiannopoulos1-2/+2
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-3/+3
This reverts commit 07a5adb87880f3fce80aa12121409bbf652f1b6d.
2014-05-17made _asn1_ltostr() safer.Nikos Mavrogiannopoulos1-3/+3
2014-05-01Use the smallest of the 2 lengths for the comparisonKurt Roeckx1-7/+4
We're sorting 2 strings here based on X.690 section 11.6 and 6.3
2014-04-27Make asn1_ordering_set_of() return error if it can't find data for one of ↵Kurt Roeckx1-0/+5
the entries.
2014-04-27Check that p is not NULLKurt Roeckx1-0/+2
As far as I can tell this should never happen.
2014-04-26undid optimization in patch 057193dcc2089520ab36d95f42d12f4ffd8127b5Nikos Mavrogiannopoulos1-0/+1
2014-04-26_asn1_ordering_*(): Fix memory leak in case of errorKurt Roeckx1-14/+52
2014-04-26Make _asn1_ordering_* return error values and check them.Kurt Roeckx1-18/+30
2014-04-26Call ordering functions with the right lengthKurt Roeckx1-2/+2
We're going to insert the length of the set and at this point are going to order it. But we called it with the wrong length. Also updates the check to only do it when the buffer isn't to small.
2014-04-22Update copyright years.Simon Josefsson1-1/+1
2014-04-15fixed several coverity reported bugs.Nikos Mavrogiannopoulos1-6/+10
2013-11-13doc fixesNikos Mavrogiannopoulos1-1/+1
2013-03-24Fix syntax-check warnings.Simon Josefsson1-2/+2
2013-03-24Update copyright years.Simon Josefsson1-1/+1
2013-03-24Indent code.Simon Josefsson1-46/+70
2012-12-10Fix GTK-DOC warnings.Simon Josefsson1-2/+2
2012-11-24corrected typoNikos Mavrogiannopoulos1-1/+1
2012-11-24some simplifications in time handlingNikos Mavrogiannopoulos1-3/+2
2012-11-24Introduced ASN1_ETYPE_UTC_TIME and ASN1_ETYPE_GENERALIZED_TIMENikos Mavrogiannopoulos1-11/+9
2012-11-24updates in ETYPE_OKNikos Mavrogiannopoulos1-1/+0
2012-11-23simplified and renamed asn1_encode_string_der() and asn1_decode_string_der()Nikos Mavrogiannopoulos1-19/+22
2012-11-23renamed typesNikos Mavrogiannopoulos1-16/+16
2012-11-23Added asn1_decode_string_der() and asn1_encode_string_der().Nikos Mavrogiannopoulos1-27/+111
2012-11-22use const for the dataNikos Mavrogiannopoulos1-1/+1
2012-11-22better nameNikos Mavrogiannopoulos1-1/+1
2012-11-22small simplificationsNikos Mavrogiannopoulos1-40/+21
2012-11-22Added more ASN.1 string types and several simplifications.Nikos Mavrogiannopoulos1-116/+89
2012-10-11Renamed structures.Nikos Mavrogiannopoulos1-11/+11
Avoid using the reserved by POSIX _t. Suggested by Ivan Shmakov. asn1_static_node_t -> asn1_static_node asn1_node_t -> asn1_node
2012-10-06asn_ -> asn1_Nikos Mavrogiannopoulos1-11/+11
2012-10-01Renamed types.Nikos Mavrogiannopoulos1-11/+11
node_asn -> asn_node_st ASN1_TYPE -> node_asn_t ASN1_TYPE_EMPTY -> NULL
2012-10-01asn1_retCode -> intNikos Mavrogiannopoulos1-6/+6
2012-09-13Eliminated _asn1_malloc, _asn1_free and _asn_calloc.Nikos Mavrogiannopoulos1-10/+10
2012-03-19Indent code.Simon Josefsson1-2/+2
2012-03-14Simplify overflow check.Simon Josefsson1-1/+1
2012-03-13reverted to the old ABI.Nikos Mavrogiannopoulos1-1/+1
2012-03-13API is based on integers instead of long to prevent errors in systems where ↵Nikos Mavrogiannopoulos1-1/+1
sizeof(int)!=sizeof(long)
2012-01-23Bump copyright years.Simon Josefsson1-2/+1
2011-11-20Silence warnings.Simon Josefsson1-18/+19
2011-11-14Mark bit string bitmask variable with static and unsigned keywords.Simon Josefsson1-1/+2
2011-08-30small optimizationNikos Mavrogiannopoulos1-3/+5
2011-01-08Update copyright years.Simon Josefsson1-1/+1
2010-12-06Doc fix.Simon Josefsson1-10/+5
Reported by Jeffrey Walton <noloader@gmail.com>.