summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strdup.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-05-04Improve line wrapping for lines exceeding 80 chars.jim128-497/+714
ok jmc@
2014-05-04Add missing SEE ALSO section header.jim1-0/+2
yup jmc@
2014-05-04Remove trailing whitespace.jim140-345/+345
fine jmc@
2014-05-04Remove a leading whitespace.jim1-1/+1
ok jmc@
2014-05-04Add missing SEE ALSO section header.jim2-0/+4
ok jmc@
2014-05-04Improve line wrapping for lines exceeding 80 chars.jim43-58/+115
ok jmc@
2014-05-04Remove trailing whitespace.jim22-36/+36
ok jmc@
2014-05-04delete useless test codederaadt1-23/+1
2014-05-04Remove trailing whitespace.jim37-176/+176
no objection jmc@
2014-05-04i give up. reuse problem is unfixable. dlg says puppet crashes.tedu2-16/+8
2014-05-04Enable the assembler code for BN, which was lost quite some time ago.miod2-0/+38
2014-05-04Remove the !SSLASM conditional. Either there is an arch-specific Makefile.inc,miod1-4/+2
or the !SSLASM list of files applies. This allows for an arch-specific Makefile.inc to not specify SSLASM.
2014-05-03Enable assembler code for AES, DES, GCM, SHA1, SHA256 and SHA512.miod2-0/+92
The sparcv9 BN code is not enabled, as it expects to run on a 32-bit userland and will need to be fixed for 64-bit userland first.
2014-05-03Enable assembler code for AES, BN (Montgomery), GCM128, SHA1, SHA256 and SHA512.miod2-0/+90
Note that GCM128 Neon code is currently not built (and thus not tested), as the current toolchain does not support Neon instructions.
2014-05-03Do not compile the neon probe code until __ARM_ARCH__ >= 7. Neon-specific codemiod4-4/+28
will not get referenced if this condition is not met.
2014-05-03typosmiod2-4/+4
2014-05-03Correctly enable Montgomery code.miod2-2/+4
2014-05-03now that 5.5 has been released with compatibility for 2b hashes,tedu1-2/+2
switch to generating them by default. prodded by deraadt and sthen
2014-05-03Update the base64 regress test and enable a test that would previouslyjsing1-19/+28
have resulted in a segfault. Also update the resulting output bytes now that the invalid/corrupt input is detected and rejected; unless you're using BIO_FLAGS_BASE64_NO_NL, in which case you still get a stream of zero value bytes and no way of knowing that the data is invalid/corrupt.
2014-05-03Add checks for invalid base64 encoded data, specifically relating to thejsing2-0/+24
handling of padding. This fixes a crash that can be triggered by feeding base64 data followed by 64 or more padding characters, which results in a negative output length. This issue was reported by David Ramos, although the same bug has been sitting in the OpenSSL RT since 2011: https://rt.openssl.org/Ticket/Display.html?id=2608 Worse still, BIO_read seems to be completely unable to detect that the base64 input was invalid/corrupt - in particular, enabling BIO_FLAGS_BASE64_NO_NL results in a stream of zero value bytes rather than no input (possibly a good replacement for /dev/null...), which could result in nasty consequences. Prior to this fix some zero value bytes were also injected without this flag being enabled. The recently added base64 regress triggers and documents these issues (and also ensures that this change retains functional behaviour).
2014-05-031. Drop support for no minor. This variant doesn't exist anymore.tedu1-44/+30
2. Pull up the actual minor processing code into the switch that parses it. 3. atoi is actually simpler than strtonum in this case, but check the input beforehand so we don't get unexpected results. 4. Slightly more consistent style between various parse and check and increment operations on salt. ok deraadt
2014-05-03It is definitly not the correct spelling.jsing2-4/+4
2014-05-03KNF.jsing8-1864/+1820
2014-05-03Nuke more defines - we have setvbuf() and _IONBF.jsing2-16/+0
ok deraadt@
2014-05-03KNF.jsing8-990/+1028
2014-05-03Initial version of a base64 regress.jsing3-1/+382
2014-05-03Enable assembler bits for BN (Montgomery), SHA1 and SHA256.miod2-0/+88
Assembler bits for AES remain commented out as they run slower than the C code.
2014-05-03Detect Altivec support with the machdep.altivec sysctl rather than setmp andmiod4-204/+40
a SIGILL handler. Do not attempt to detect and use a 64-bit FPU yet.
2014-05-02Correctly enable assembler Montgomery routine.miod2-2/+4
2014-05-02More use of 64-bit registers which needs to be disabled under OpenBSD.miod4-0/+8
2014-05-02Correctly enable assembler Montgomery routine.miod2-2/+4
2014-05-02Reenable assembler code for SHA384 and SHA512 now that it no longer miscomputesmiod2-6/+6
things. Worth doing as it's twice faster than the C code.
2014-05-02The assembly sha512 code detects at runtime if it is running on a 64-bitmiod2-0/+12
processor (PA2.0) and, if so, switches to 64-bit code. However, when running under a 32-bit OpenBSD/hppa kernel, there is no guarantee that the upper part of the registers will be preserved accross context switches (or even userland->kernel boundaries), which causes this code to fail. Wrap the generated code within #ifndef __OpenBSD__ in that case, to avoid using the 64-bit code completely. (OpenBSD/hppa64, once stable, will not be affected by this)
2014-05-02Simple sha{224,256,384,512} test using the FIPS 180-2 test vectors availablemiod2-2/+45
from http://csrc.nist.gov/groups/ST/toolkit/examples.html
2014-05-02Disable assembler version of SHA512 for now, it produces wrong results.miod2-6/+6
2014-05-02Add ChaCha as a cipher.jsing1-0/+3
ok beck@ miod@
2014-05-02remove crazy #undefs; ok jsingderaadt10-13/+0
2014-05-02Nuke OPENSSL_NO_SOCK since any half sane operating system has sockets.jsing9-35/+0
ok beck@
2014-05-02Sort and group includes. We also do not need to include openssl/evp.h morejsing1-45/+47
than once. ok beck@
2014-05-02Sort function prototypes and group/sort entries within the functions array.jsing1-237/+125
ok beck@
2014-05-01Enable use of assembly code for AES, BN (Montgomery), SHA1, SHA256 and SHA512.miod2-0/+100
RC4 assembler code is not used, as it runs about 35% slower than the C code.
2014-05-01Do not output SOM-specific directives.miod14-0/+80
2014-05-01Remove unreferenced OPENSSL_instrument_bus and OPENSSL_instrument_bus2 routines.miod4-210/+0
2014-05-01Make the implicit `l' in `impicit' explicit.miod2-2/+2
2014-05-01Enable use of the assembly code for BN (Montgomery) and SHA1.miod2-0/+80
2014-05-01Fix include filename to get register name aliases under BSDmiod6-36/+6
2014-05-01Pass -Werror in the !BN_LLONG !BN_UMULT_LOHI !BN_UMULT_HIGH case.miod2-8/+8
2014-05-01Enable use of the assembly code for AES, BN, SHA1, SHA256 and SHA512.miod2-0/+72
2014-05-01dead meatmiod4-5056/+0
2014-05-01tweak previous; ok sthenjmc1-3/+3