summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/labs.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-11-19minor KNF improvement, changing only whitespace, no code change:schwarze1-4/+4
say: return_type *function_name(args); not: return_type* function_name (args); OK tb@
2021-11-19new manual page ASN1_BIT_STRING_num_asc(3)schwarze4-5/+154
documenting the three functions using the BIT_STRING_BITNAME structure
2021-11-19add two missing .Dv macros;schwarze1-4/+4
markup bug found with regress/lib/libcrypto/man/check_complete.pl
2021-11-19Make the public API function a2i_ASN1_STRING(3) actually work.schwarze1-14/+6
It contained two bugs: 1. If an input line ended in a backslash requesting line continuation, there was duplicate code for removing that backslash, erroneously removing another byte from the input and often causing the function to return failure instead of correctly parsing valid input. 2. According to a comment in the source code, the former big "for" loop was intended to "clear all the crap off the end of the line", but actually, if there were multiple characters on the line that were not hexadecimal digits, only the last of those and everything following it was deleted, while all the earlier ones remained. Besides, code further down clearly intends to error out when there are invalid characters, which makes no sense if earlier code already deletes such characters. Hence the comment did not only contradict the code above it - but contradicted the code below it, too. Resolve these contradiction in favour of stricter parsing: No longer skip invalid characters but always error out when any are found. OK & "Unbelievable" tb@