summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/qdiv.c (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2014-07-08KNF.jsing32-1312/+1514
2014-07-08unbreak last commit - but same intent, make re-seed less expensivebeck2-24/+32
2014-07-08More KNF.jsing2-32/+36
2014-07-08Simplify various BIO_sock_* fuctions - less code, better variable names,jsing2-54/+24
correct types and fewer casts. ok deraadt@ miod@
2014-07-08repeat calls to getentrypy() with the same pid likely indicate reseeds.deraadt2-6/+20
Since we assume the PRNG above is doing "something old, something new" folding, shortcut and do fewer repeats through the timing loop. ok beck
2014-07-03Memory-leak-in-error-path of the day in X509_ATTRIBUTE_set1_data().miod2-4/+6
ok logan@ beck@
2014-07-03Enter the REGRESS_FULL target subdirs for clean, cleandir and obj targets.miod2-4/+4
2014-07-02Memory leak in error path of the day, from clang via dhill@bitrig;miod2-4/+6
ok dhill@bitrig
2014-07-02Warnings. I haz them.miod1-2/+11
2014-07-02pk7_doit.c r1.20 introduced a NULL check that ensures that the signaturejsing2-4/+4
contents are not NULL, however this breaks detached signature processing. Fix this by allowing the signature contents to be NULL when operating with a detached signature. Found the hard way by sthen@. ok sthen@