summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-12-27spelling fixes; from paul tagliamontejmc8-15/+15
any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
2022-12-26spelling fix; from paul tagliamontejmc1-2/+2
ok tb
2022-12-26Prepare to provide X509_CRL_get0_sigalg()tb2-2/+12
This is an obvious omission from the OpenSSL 1.1 and OpenSSL 3 API which does not provide a way to access the tbs sigalg of a CRL. This is needed in security/pivy. From Alex Wilson ok jsing
2022-12-26fix another typo in comment in a line touched by the last commit (thissthen1-1/+1
one wouldn't have triggered a spell checker though)
2022-12-26spelling fixes; from paul tagliamontejmc10-23/+23
ok tb
2022-12-26spelling fixes; from paul tagliamontejmc100-265/+265
i removed the arithmetics -> arithmetic changes, as i felt they were not clearly correct ok tb
2022-12-24Zap trailing whitespace in license and add some empty linestb5-10/+18
2022-12-23Add the missing Copyright and license headers in the libcrypto/comp directory.schwarze6-9/+570
Requested some time ago by tb@. According to OpenSSL git history, the original version of this code appeared in SSLeay 0.9.1b (July 6, 1998). The LICENSE file in that release states that the Copyright of SSLeay belongs to Eric Young, and we believe that Eric still maintained SSLeay himself at that time. We have seen a small number of examples where Eric credited outside contributors for code that he included in his distribution, including citing Copyright notices and license headers as appropriate. We found no such hints regarding this code, so it is reasonable to assume that he wrote this code himself. Regarding subsequent changes and additions, i inspected the OpenSSL git repository. No code change; only Copyright and license comments are added.
2022-12-23Document the deprecated wrappers BIO_set_app_data(3) and BIO_get_app_data(3).schwarze1-5/+36
Some code roams the wild still calling them.
2022-12-23Mark BIO_buffer_get_num_lines(3) as intentionally undocumented.schwarze1-2/+5
Contrary to what bio.h says, it does not *not* retrieve some "IO type", whatever that is supposed to be, but it is a NOOP, and nothing uses it. Despite its name, it is unrelated to BIO_f_buffer(3), and please be careful to not confuse it with BIO_get_buffer_num_lines(3).
2022-12-23Mark BIO_f_nbio_test(3) as intentionally undocumented.schwarze1-2/+5
It exposes absurd functionality, and according to codesearch.debian.net, it is unused except in openssl(1) s_client/s_server -nbio_test.
2022-12-23new manual page BIO_s_datagram(3);schwarze3-3/+577
feedback and OK tb@
2022-12-23Simplify BN_cmp() and BN_ucmp().jsing1-46/+15
The only real difference between BN_cmp() and BN_ucmp() is that one has to respect the sign of the BN (although BN_cmp() also gets to deal with some insanity from accepting NULLs). Rewrite/cleanup BN_ucmp() and turn BN_cmp() into code that handles differences in sign, before calling BN_ucmp(). ok tb@
2022-12-23Consistently check for NULL early.jsing1-64/+89
Also be more consistent with variable naming. ok tb@
2022-12-23Fix an unchecked strdup() in UI_create_method().jsing1-6/+15
ok tb@
2022-12-23Make UI_destroy_method() NULL safe.jsing1-5/+7
ok tb@
2022-12-23Remove unhelpful comment.jsing1-6/+1
Remove a comment that tells you not to call a function that internally calls free, with a stack allocated pointer... ok tb@
2022-12-23Remove compatibility "glue" for des_read_pw{_string}()jsing2-35/+2
Nothing can be actually using these as the symbols are not exported from libcrypto... hopefully ui_compat.h can also go away entirely. ok tb@
2022-12-23Add regress coverage for shifts of zero bits.jsing1-1/+38
2022-12-23Do similar setup for lshift and rshift benchmarks.jsing1-1/+13
This prevents realloc from unnecessarily impacting the lshift benchmarks.
2022-12-22new manual page BIO_accept(3)schwarze3-3/+387
2022-12-22in case of failure, always report the error with BIOerror();schwarze1-4/+14
OK tb@
2022-12-22Denote multiple arguments with 'arg ...' not 'args'kn1-4/+4
A few programs used the plural in their synopsis which doesn't read as clear as the obvious triple-dot notation. mdoc(7) .Ar defaults to "file ..." if no arguments are given and consistent use of 'arg ...' matches that behaviour. Cleanup a few markups of the same argument so the text keeps reading naturally; omit unhelpful parts like 'if optional arguments are given, they are passed along' for tools like time(1) and timeout(1) that obviously execute commands with whatever arguments where given -- just like doas(1) which doesn't mention arguments in its DESCRIPTION in the first place. For expr(1) the difference between 'expressions' and 'expression ...' is crucial, as arguments must be passed as individual words. Feedback millert jmc schwarze deraadt OK jmc
2022-12-22Mark BIO_s_log(3) as intentionally undocumented.schwarze1-3/+4
Ben Laurie invented the system logging BIO in 1999 and yet, nothing whatsoever uses it according to codesearch.debian.net. Besides, it is poorly designed and a crypto library is absolutely not the place for putting a clumsy system logging facility. Not everything needs to be a BIO!
2022-12-21Mark BIO_nread0(3), BIO_nread(3), BIO_nwrite0(3), and BIO_nwrite(3)schwarze1-2/+8
as intentionally undocumented. Bodo Moeller invented this "non-copying I/O" API in 1999, but according to codesearch.debian.net, it is still completely unused by anything. On top of that, it appears to be inflexible in so far as it only supports BIO pairs and no other BIO types and fragile in so far as it exposes pointers to internal storage and runs contrary to expectations of how BIO objects are supposed to work.
2022-12-20Mark BIO_dump_cb(3) and BIO_dump_indent_cb(3) as intentionally undocumented.schwarze1-2/+5
It appears Richard Levitte succumbed to everything-needs-a-callback-paranoia in 2004, but nobody is going to be surprised that nothing whatsoever wants to use this particular callback, according to codesearch.debian.net.
2022-12-20document BIO_fd_non_fatal_error(3) and BIO_fd_should_retry(3)schwarze1-8/+76
2022-12-19WTRAPPED is now supported by waitid(2)guenther1-3/+3
Don't test waitid(WUNTRACED) as that's not portable and only 'works' due to an implementation decision
2022-12-19document BIO_copy_next_retry(3)schwarze1-5/+34
2022-12-18document BIO_FLAGS_MEM_RDONLYschwarze1-2/+17
2022-12-18document BIO_set_retry_read(3), BIO_set_retry_write(3),schwarze1-5/+95
BIO_set_retry_special(3), BIO_clear_retry_flags(3), BIO_get_retry_flags(3), and the BIO_FLAGS_* constants
2022-12-18document the interaction with BIO_dup_chain(3)schwarze1-2/+14
2022-12-18new manual page BIO_dup_chain(3)schwarze9-19/+206
2022-12-18correct the prototypes of BIO_get_conn_ip(3) and BIO_get_conn_int_port(3);schwarze1-5/+3
from Richard Levitte via OpenSSL commit 0e474b8b in the 1.1.1 branch, which is still under a freee license
2022-12-18document BIO_number_read(3) and BIO_number_written(3)schwarze1-5/+67
2022-12-18nc: skip connection info on failed or skipped udptest()tb1-5/+8
In udp mode, nc would always print that the connected succeeded independently of whether that was actually the case. Don't do that. idea/ok mpf
2022-12-18nc: do not test the connection in non-interactive modetb1-1/+5
The connection test writes four X to the socket, which corrupts data that we may want to pipe into nc. So don't do that if stdin is not a tty but still do it in scan mode, this is needed according to chris. based on a diff by and ok mpf
2022-12-18nc: clean up and simplify connection_infO()tb1-7/+7
ok mpf as part of a larger diff
2022-12-18nc: pass protocol name to connection_info()tb1-7/+9
Avoids repeated use of ternary operator on globals.
2022-12-18nc: factor printing of connection info into a functiontb1-25/+28
This simply moves a chunk of code in this spaghetti mess into its own function with minimal changes. idea from a diff by mpf
2022-12-18Use volatile sig_atomic_t for flag set in signal handlertb1-2/+2
2022-12-17Switch to using BN_zero() instead of BN_zero_ex()tb1-2/+2
2022-12-17Move benchmark target up a bit and mark it phonytb1-4/+5
2022-12-17Zap some whitespacetb1-2/+2
2022-12-17Merge documentation of UI_null() from OpenSSL 1.1tb1-5/+21
jsing doesn't like it, but it's better than nothing. ok jsing
2022-12-17Document BIO_set_flags(3), BIO_clear_flags(3), BIO_test_flags(3),schwarze1-4/+88
and BIO_get_flags(3).
2022-12-17Link ui_null.c to buildtb1-1/+2
2022-12-17Prepare to provide UI_null()tb3-2/+24
xmlsec needs this, nothing else. Our linkers link libxmlsec1-openssl, only warns and since nothing uses this library in ports, this wasn't noticed for a long time. Reported by Thomas Mitterfellner ok jsing
2022-12-17Provide regress coverage for BN shift functions.jsing2-1/+543
Provide regress coverage for BN_lshift1(), BN_rshift1(), BN_lshift() and BN_rshift(), along with basic benchmarking functionality (run via 'make benchmark').
2022-12-17Revise cipher list regress coverage of SSL_set_security_level().jsing1-21/+43
A SSL_set_security_level() call was added to the cipher list regress, which expects a failure - however, it should succeed and fails for a completely unrelated reason. Rework this regress so that it actually passes and tests for the expected behaviour.