From b008274afdbe375b32a7e66dbd073e200f6f0587 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 4 Feb 2011 12:57:53 +0100 Subject: Nuked almost all trailing white space. We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again. --- common/tlv.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'common/tlv.c') diff --git a/common/tlv.c b/common/tlv.c index 3453b29f6..54ef6fca6 100644 --- a/common/tlv.c +++ b/common/tlv.c @@ -45,7 +45,7 @@ do_find_tlv (const unsigned char *buffer, size_t length, size_t len; int this_tag; int composite; - + for (;;) { buffer = s; @@ -97,7 +97,7 @@ do_find_tlv (const unsigned char *buffer, size_t length, nesting. */ const unsigned char *tmp_s; size_t tmp_len; - + tmp_s = do_find_tlv (s, len, tag, &tmp_len, nestlevel+1); if (tmp_s) { @@ -152,7 +152,7 @@ find_tlv_unchecked (const unsigned char *buffer, size_t length, on success. */ gpg_error_t _parse_ber_header (unsigned char const **buffer, size_t *size, - int *r_class, int *r_tag, + int *r_class, int *r_tag, int *r_constructed, int *r_ndef, size_t *r_length, size_t *r_nhdr, gpg_err_source_t errsource) @@ -220,11 +220,11 @@ _parse_ber_header (unsigned char const **buffer, size_t *size, } *r_length = len; } - + /* Without this kludge some example certs can't be parsed. */ if (*r_class == CLASS_UNIVERSAL && !*r_tag) *r_length = 0; - + *buffer = buf; *size = length; return 0; @@ -251,7 +251,7 @@ _parse_ber_header (unsigned char const **buffer, size_t *size, while (!(err = parse_sexp (&buf, &buflen, &depth, &tok, &toklen)) && depth) process_token (tok, toklen); - if (err) + if (err) handle_error (); */ gpg_error_t @@ -302,4 +302,3 @@ _parse_sexp (unsigned char const **buf, size_t *buflen, *buflen = n; return 0; } - -- cgit v1.2.3