summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/wcscpy.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-01-20Missing $OpenBSD$'s.krw5-0/+5
ok deraadt@
2015-01-19Add arc4random/getentropy shims for NetBSD.bcook4-0/+300
The latest NetBSD (6.1.5) arc4random does not appear to reseed the CRNG state after a fork, so provide an override until the fork-safe version in CVS appears in a release. These are the same as the FreeBSD shims. ok deraadt@
2015-01-17Improve wording in alloca.tedu1-7/+5
1. it's not a bug; it's a caveat. 2. "slightly unsafe" gives me the willies. 3. one .Xr to malloc should suffice ok deraadt jmc
2015-01-16Use ">", not ">=" when comparing length to HOST_NAME_MAX sincemillert1-3/+3
otherwise we end up needlessly replacing a NUL with a NUL. OK deraadt@
2015-01-16Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@millert2-8/+8
2015-01-16Replace check for ">= HOST_NAME_MAX+1" with "> HOST_NAME_MAX".millert1-1/+1
OK deraadt@
2015-01-16Move to the <limits.h> universe.deraadt23-57/+40
review by millert, binary checking process with doug, concept with guenther
2015-01-16The SSL/TLS session Id context is limited to 32 bytes. Instead ofreyk1-1/+13
using the name of relayd relay or smtpd pki, use a 32 byte arc4random buffer that should be unique for the context. This fixes an issue in OpenSMTPD when a long pki name could break the configuration. OK gilles@ benno@
2015-01-16Delete the MANLINT variable and the related SUFFIXES rules becauseschwarze2-4/+4
since yesterday, "mandoc -Tlint -Wfatal" can no longer fail. Instead, as suggested by deraadt@, provide a manlint target that is *not* run during make build, but can be run whenever you want to check syntax of manuals. "nice stuff" deraadt@
2015-01-15remove unused variablechl1-2/+1
ok tedu@
2015-01-15back in september I did the large abstraction refactoring to allow thesederaadt14-14/+28
other systems to fit into the same mold, so add copyright
2015-01-15Make strlcpy/strlcat slightly easier to read.millert4-86/+82
2015-01-13For non-blocking sockets tls_connect_fds() could fail with EAGAIN.bluhm2-7/+22
Use the same logic from the read, write, accept functions to inform the caller wether a readable or writable socket is needed. After that event, the connect function must be called again. All the checks before connecting are done only once. OK tedu@
2015-01-13Document the openssl s_client -proxy feature.bluhm1-2/+14
OK jmc@
2015-01-13Add the possibility to use the openssl s_client tool with an httpbluhm1-4/+24
proxy. Implement the -proxy feature in the same hackish way as -starttls. OK jsing@
2015-01-13Implement more thorough error checks:lteo1-12/+38
- Check the return value of every relevant function call. - If BIO_new() returns NULL instead of a valid BIO, do not attempt to blindly use the NULL value as a BIO throughout the rest of the code. - Ensure that bio_out is freed by BIO_free_all() at the end of all error paths. ok doug@
2015-01-12rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks,tedu1-9/+9
nor are they the same size.
2015-01-12Fix a memory leak in bss_dgram.doug2-6/+26
Free data->saved_message.data. Based on OpenSSL commit: 41cd41c4416f545a18ead37e09e437c75fa07c95 except this version sets a->ptr to NULL to avoid accidental reuse and handles malloc failing. ok beck@, input + ok miod@
2015-01-08Convert spkac.c to the new option handling code.doug1-100/+137
input + ok jsing@
2015-01-08Convert pkcs8.c to the new option handling code.doug1-157/+220
Minor KNF in a few places too. input + ok jsing@
2015-01-08Convert asn1pars.c to the new option handling.doug1-137/+206
Also, removed a few useless if null checks. input from bcook@ input + ok jsing@
2015-01-08missing , found by Dongsheng Songderaadt1-3/+3
2015-01-08Avoid a double-free in an error path.doug2-2/+4
ok jsing@ beck@
2015-01-07stupid me. need errno.htedu1-1/+2
2015-01-07set errno = EINVAL for invalid salts and hashes in most functions.tedu1-12/+20
remember to set EACCES in bcrypt_checkpass for hash differences. the higher level crypt_checkpass function will reset errno to EACCES in all cases, which is probably the right behavior, but this change gives code working with the lower level functions the correct errno if they care.
2015-01-07mix in more virtual memory and process informationbcook2-4/+8
2015-01-06add initial HP-UX getentropy/arc4random support.bcook4-0/+992
patch from Kinichiro Inoguchi, tested on HP-UX 11.31 ok deraadt@
2015-01-05rename kern enter/exit macros to malloc enter/leave to better reflecttedu1-7/+7
what's going on.
2015-01-05Convert openssl(1) passwd to new option handling.jsing1-119/+151
ok doug@
2015-01-05convert clock() to clock_gettime() for improved precision (and accuracy?)tedu1-7/+9
guenther suggested using thread time, which actually may improve accuracy if somebody puts this in a threaded program.
2015-01-05Zap a reference to .rnd, which is likely the last RANDFILE remnant onlteo1-3/+2
this man page. ok jsing@
2015-01-03Fix incorrect OPENSSL_assert() usage.doug2-48/+106
Instead of asserting, return an error code for I/O errors. This is based on OpenSSL commit 2521fcd8527008ceb3e4748f95b0ed4e2d70cfef. Added checks for two calloc()s while I'm here. ok miod@
2015-01-03Check the return values of several reallocarray() calls. While here,lteo3-3/+17
also check the return value of an adjacent malloc() call. ok jsing@
2015-01-02Rename the tls_connect_socket() parameter 'socket' to 's' to avoidbluhm1-4/+4
a compiler warning about shadowing a global declaration. OK jsing@
2015-01-02Remove ifdef statements for TIMES and USE_TOD; they don't do anything,lteo1-5/+1
apart from introducing a bug where the -elapsed option is not listed in the usage output when it should be. feedback/ok bcook@ jsing@
2015-01-01Provide option types for binary AND, binary OR and silently discarding anjsing2-2/+13
option.
2015-01-01Convert the openssl(1) enc command to the new option parsing and usage.jsing1-250/+382
With input from doug@
2015-01-01Revert previous; tls_accept_socket() was intentionally undocumentedschwarze1-7/+1
because the API design isn't fully settled. Requested by jsing@ and tedu@.
2015-01-01minimally document tls_accept_socket();schwarze1-2/+8
patch from Sunil at Nimmagadda dot net
2014-12-30copy bcrypt autotune from encrypt(1) and expose via crypt_newhashtedu2-5/+43
ok deraadt miod
2014-12-29don't leak timing info about padding errors by generating a fake keytedu2-10/+20
afterwards. openssl has a more complicated fix, but it's less intrusive for now to simply hoist the expensive part (fake key generation) up without sweating a branch or two. ok bcook jsing
2014-12-28Fix subtle typo.jsing1-2/+2
2014-12-28Add regress tests for default option handling.jsing1-1/+48
2014-12-28Allow a default option to be specified by having a NULL name, but a validjsing1-4/+4
option type. In this case process the option as per normal.
2014-12-28Add regress tests for multiple argument callback functions.jsing1-1/+38
2014-12-28Provide an option type that allows for a callback function to consume anjsing2-3/+12
arbitrary number of arguments. This will allow for more complex option handling as required by some of the openssl(1) applications.
2014-12-28Add option parsing regress tests with end of options handling.jsing1-17/+50
2014-12-28Teach option parsing that a single hyphen denotes the end of named optionsjsing1-2/+14
(as currently only implemented by some of the openssl(1) applications).
2014-12-28Add regress tests for option parsing with multiple unnamed arguments.jsing1-3/+45
2014-12-28Provide a mechanism for option parsing to return the number of argumentsjsing7-14/+22
that it has consumed. This allows for the handling of multiple unnamed arguments, including lists of filenames.