summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/f_string.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Consolidate various ASN.1 code.jsing2021-12-151-186/+0
| | | | | | | | | Rather than having multiple files per type (with minimal code per file), use one file per type (a_<type>.c). No functional change. Discussed with tb@
* Make the public API function a2i_ASN1_STRING(3) actually work.schwarze2021-11-191-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@
* Add const to functions in asn1/asn1.h as they did in OpenSSL.tb2018-04-251-2/+2
| | | | | | | BIO_f_asn1() will be taken care of later. Tested in a bulk by sthen ok bcook jca jsing
* Send the function codes from the error functions to the bit bucket,beck2017-01-291-8/+5
| | | | | | as was done earlier in libssl. Thanks inoguchi@ for noticing libssl had more reacharounds into this. ok jsing@ inoguchi@
* Only import cryptlib.h in the four source files that actually need it.jsing2014-07-111-3/+4
| | | | | | | | Remove the openssl public includes from cryptlib.h and add a small number of includes into the source files that actually need them. While here, also sort/group/tidy the includes. ok beck@ miod@
* Use size_t as realloc() size argument whenever possible. ok tedu@miod2014-07-101-3/+4
|
* tags as requested by miod and teduderaadt2014-06-121-1/+1
|
* If you need to allocate `a + b' bytes of memory, then don't allocate `a + b*2',miod2014-05-181-2/+2
| | | | | | this is confusing and unnecessary. Help (coz I got confused) and ok guenther@ beck@
* static const char * = "" -> static const char[] = "", to produce shorter code.miod2014-04-271-1/+1
| | | | No functional change.
* fix memory leaks. from Dirk Englingtedu2014-04-221-7/+4
|
* improve realloc/calloc/malloc patterns; ok guentherderaadt2014-04-211-6/+1
|
* More KNF.jsing2014-04-191-74/+90
|
* lob a few more knf grenades in here to soften things up.tedu2014-04-181-31/+15
|
* putting most of the braces in the right column is the very least we can do.tedu2014-04-181-31/+31
|
* Change library to use intrinsic memory allocation functions instead ofbeck2014-04-171-3/+3
| | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
* Send the rotIBM stream cipher (ebcdic) to Valhalla to party for eternitybeck2014-04-151-9/+0
| | | | | with the bearded ones... some API's that nobody should be using will dissapear with this commit.
* openssl-engine-0.9.6 mergebeck2000-12-151-3/+3
|
* OpenSSL 0.9.5 mergebeck2000-03-191-1/+1
| | | | | | *warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2 if you are using the ssl26 packages for ssh and other things to work you will need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs
* OpenSSL 0.9.4 mergebeck1999-09-291-12/+14
|
* Import of SSLeay-0.9.0b with RSA and IDEA stubbed + OpenBSD buildryker1998-10-051-0/+210
functionality for shared libs. Note that routines such as sslv2_init and friends that use RSA will not work due to lack of RSA in this library. Needs documentation and help from ports for easy upgrade to full functionality where legally possible.