summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/wcscpy.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-07-09{malloc,reallocarray} + memset(,0,) -> callocmiod4-14/+10
ok tedu@
2014-07-09Clean up after arc4random u_int32_t uint32_t changebeck1-5/+5
ok jsing@
2014-07-09changes to improve portabilitybcook1-10/+11
ok beck@ deraadt@ jsing@ guenther@
2014-07-09Replace memset(a, 0, ...); free(a); by explicit_bzero(a, ...); free(a); inmiod2-4/+4
fear a smartass-optimizing compiler decides memset is useless immediately before free(). ok jsing@ deraadt@ tedu@
2014-07-09Remove leading underscore from _BYTE_ORDER and _{LITTLE,BIG}_ENDIAN, to bemiod22-120/+120
more friendly to systems where the underscore flavours may be defined as empty. Found the hard way be bcook@; joint brainstrom with bcook beck and guenther
2014-07-09miod@ fixed the "bug" so remove reference to it in the man pod^Wpage.jsing2-10/+0
2014-07-09add <sys/filio.h> header for FIONBIObcook2-2/+4
ok beck@
2014-07-09check for EINTR when calling waitpid.bcook1-2/+13
ok jsing@
2014-07-09check if we were previously on a signal stack before restoring.bcook1-2/+3
OS X fails to restore the old signal stack because the signal stack is not enabled by default. This causes sigaltstack(2) to fail with ENOMEM as ss_size is 0, < MINSIGSTCKSZ. ok jsing@
2014-07-09Clean up and simplify SSL_CIPHER_description by always using asprintf. Ifjsing2-108/+108
a buffer was supplied then we copy the result into it. Also make the failure case return values match the documentation. Joint work with beck@
2014-07-09Simplify error path of DH_check_pub_key()miod2-16/+8
2014-07-09KNFmiod18-1134/+1198
2014-07-09remove unused variables getentropy for OS Xbcook2-6/+6
ok beck@
2014-07-09Rewrite gcm128test as a table-driven regress instead of using defines.jsing2-293/+852
This avoids compiler warnings for always true/false conditionals and makes the code readable. Also avoid pulling in modes_lcl.h, which should not be used outside the library.
2014-07-09tedu the SSL export cipher handling - since we do not have enabled exportjsing21-724/+93
ciphers we no longer need the flags or code to support it. ok beck@ miod@
2014-07-09cast ASN1_STRING (unsigned char *) to match strlcat's argument (char *)bcook2-4/+4
ok beck@
2014-07-09remove unused, private version strings except SSL_version_strbcook72-340/+70
Also remove unused des_ver.h, which exports some of these strings, but is not installed. ok miod@ tedu@
2014-07-09Make use of this wonderful modern C construct known as a `switch', instead ofmiod2-22/+34
8-line if() tests.
2014-07-09KNFmiod22-1812/+1878
2014-07-09Kill more FIPS tentacles by removing the private_AES_set_{enc,dec}rypt_key()miod16-168/+120
internal interfaces, and promoting them to being the public AES_set_{enc,dec}rypt_key() interfaces. In non-FIPS mode, these public interfaces were directly calling the private ones. ok guenther@ jsing@
2014-07-09Be more strict in RSA_padding_check_X931(), and thus avoid a possiblemiod2-4/+4
memcpy() with a negative size. ok tedu@
2014-07-09Remove typecasts on password_callback.bcook3-20/+15
Rather than casting password_callback to the correct function pointer signature at every call site, change it to match the signature instead. ok miod@ deraadt@ tedu@
2014-07-09In the old days (not in this century), SSLeay 0.4.5 would create X.509 RSAmiod2-28/+6
signatures using the wrong oid for the signature type. The signature verification code has thus been modified to allow these signatures to be accepted, with a printf to stderr to notify the user something was fishy. Remove this chunk; these signatures will no longer get accepted. ok deraadt@ guenther@ jsing@ tedu@
2014-07-09Remove RSA_memory_lock(). This undocumented function sort-of serializes yourmiod4-102/+4
RSA components to memory and clears them, but there is no unserializing function, so its usefulness is close to zero. A grep through the ports tree sources show that it is only present in ports embedding their own openssl copy, and never used otherwise. ok jsing@
2014-07-09remove unused dynamic_cmd_defns_empty structure.bcook2-8/+2
ok miod@ deraadt@ guenther@
2014-07-09RSA_NULL used to be a compile option allowing the RSA interfaces to bemiod9-354/+10
compiled-in, with nonfunctional code, to be able to cope with the RSA patent. However, we don't use this option, and the RSA patent has expired more than 10 years ago, so just drop this piece.
2014-07-09KNFmiod38-3934/+3918
2014-07-09format string should be a string literal.bcook1-2/+2
ok beck@ jsing@
2014-07-08Mark the weakened 40-bit export ciphers as invalid - no one in their rightjsing2-18/+18
mind should be using them. ok deraadt@ miod@
2014-07-08Remove SSL_FIPS.jsing6-188/+172
ok deraadt@ miod@
2014-07-08Nuke SSL_NOT_EXP since it does nothing.jsing4-252/+250
ok deraadt@ miod@
2014-07-08Document SSL_CIPHER_description() will now use asprintf if passed a NULLmiod1-5/+5
buffer.
2014-07-08Do not suggest using BUF_strdup() preferably to strdup() for fallaciousmiod1-4/+1
reasons.
2014-07-08Match the current state of the code.miod1-3/+3
2014-07-08remove use of internally-deprecated OPENSSL_malloc/freebcook1-3/+2
ok jsing@
2014-07-08replace malloc(strlen())/strlcpy with strdupbcook2-6/+4
ok beck@ jsing@
2014-07-08Define SMALL_REGISTER_BANK on arm and vax, for it generates faster code formiod2-2/+10
these systems (vax being 30% faster!). (surprisingly, the prime candidate for SMALL_REGISTER_BANK, SuperH, runs actually slower in that case)
2014-07-08Remove undocumented _des_crypt() interface and its companion header file,miod5-464/+2
which had never been installed, so it's unlikely something ever used this in the last 15~20 years. ok deraadt@ jsing@ beck@
2014-07-08pedantic avoidance of division by zero, likely not actuallybeck2-2/+12
possible to hit for real. ok miod@ jsing@
2014-07-08Include -DLIBRESSL_INTERNAL in regress makefiles.jsing39-78/+78
ok miod@
2014-07-08add missing stdint. include for uint32_t, etc.bcook2-2/+8
ok beck@ jsing@
2014-07-08string.h is the correct file, not strings.hbcook1-2/+2
ok beck@ jsing@
2014-07-08We do not care about broken Borland C pre-processors.jsing2-10/+6
ok beck@ deraadt@
2014-07-08Pretty much everything has SO_REUSEADDR - nuke the #ifdefs.jsing2-10/+2
ok beck@
2014-07-08We have EAI_FAMILY - remove the #ifdefs.jsing2-10/+2
ok beck@
2014-07-08getentropy for osx and solaris. will be needed for a portable releasebeck4-0/+1676
2014-07-08More KNF.jsing2-22/+42
2014-07-08Avoid locking in BIO_get_port() by using getservbyname_r() instead ofjsing2-62/+62
getservbyname(). While here, provide a common/single return path. ok deraadt@
2014-07-08fix oops, accidental delete.. darn copying of files between machinesbeck2-4/+4
2014-07-08j should be an int, like repeatbeck2-6/+8