summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/qdiv.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-07-16Only call getauxval(3) if HAVE_GETAUXVAL is defined. Fixes build on olderkettenis2-2/+6
Linux (such as Ubuntu 12.04LTS) that don't have it yet. Seems the AT_XXX defines are pulled in by <link.h> now. ok beck@
2014-07-16do not need a variable to track locking, since all code paths have itderaadt2-10/+4
locked throughout.
2014-07-16#ifdef wrap the _rs_forkhandlerderaadt1-1/+3
2014-07-16added handler for an atfork hook from kettenis@bcook1-1/+10
ok deraadt@ beck@ kettenis@
2014-07-14not needed anymorederaadt2-1173/+0
2014-07-14Fix memory leak upon error in ssl_parse_clienthello_use_srtp_ext().miod2-12/+12
From BoringSSL.
2014-07-14whitespacederaadt45-172/+172
2014-07-14Improve RAND_write_file(), chmod crud, etc.deraadt2-54/+38
ok tedu
2014-07-13Add configuration handling for certificate and key files.jsing3-7/+22
2014-07-13Add stubs for the proposed server API.jsing3-1/+72
2014-07-13Stop leaking internal library pointers in error messages.jsing2-4/+4
Requested by miod@
2014-07-13Tabs, not spaces.jsing3-22/+22
2014-07-13Rename the context allocation from ressl_new to ressl_client, which makesjsing3-1/+30
it completely obvious what the context is for. Ensure client functions are used on client contexts.
2014-07-13Split the context allocation out from the configuration. This will allowjsing2-5/+14
us to properly report errors that occur during configuration processing. Discussed with tedu@
2014-07-13Move the client code into a separate file.jsing3-161/+185
2014-07-13Rename various configuration handling functions.jsing2-13/+14
Requested by and discussed with tedu@.
2014-07-13Use a single ressl.h header file.jsing5-45/+18
Discussed with beck@ and tedu@.
2014-07-13Explicitly initialise slen - this was not previously done due to a missingjsing2-2/+4
M_ASN1_D2I_begin macro.
2014-07-13Convert error handling to SSLerr and ERR_asprintf_error_data.jsing2-118/+108
2014-07-13tweak previous;jmc1-2/+2
2014-07-13missing bracket in previous;jmc1-2/+2
2014-07-13Convert d2i_SSL_SESSION to ASN1 primitives, instead of the horrificjsing2-52/+594
asn1_mac.h macros. This still needs a lot of improvement, but immediately becomes readable. ok miod@ (sight unseen!)
2014-07-13Remove license introduced with the PSK code, which has since been removed.jsing2-54/+2
ok deraadt@
2014-07-13Another compression remnant.jsing2-4/+2
2014-07-13Expand the tlsext_sigalg macros. The end result is about the same numberjsing2-32/+38
of lines and much more readable. ok miod@
2014-07-13Rewrite i2d_SSL_SESSION to use the ASN1 primitives, rather than using thejsing2-150/+196
horrific macros from asn1_mac.h. This is a classic example of using macros to obfuscate code, in an attempt to reduce the line count. The end result is so ridiculously convoluted that it is completely unreadable and it takes hours to deconstruct the macros and figure out what is actually going on behind the scenes. ok miod@
2014-07-13Add a regress test for the ASN1 handling of SSL session tickets.jsing3-1/+389
2014-07-13The bell tolls for BUF_strdup - Start the migration to usingbeck40-145/+155
intrinsics. This is the easy ones, a few left to check one at a time. ok miod@ deraadt@
2014-07-13Fix memory leak.logan2-2/+4
OK from beck@ and miod@
2014-07-13OPENSSL_{malloc,free} -> {malloc,free}miod19-27/+27
2014-07-13Warn about the use of BUF_strdup.miod1-2/+4
2014-07-13Update BUGS section.miod1-4/+6
2014-07-13oops, i deleted the wrong wordtedu1-2/+2
2014-07-13remove a lie spotted by guenthertedu1-5/+4
2014-07-13once srandomdev() is called, switch to using arc4random() but mask off thetedu1-12/+10
high bit as required by posix. wouldn't want to break any standards. idea and ok deraadt
2014-07-13unbreak build this needed to be an and..beck8-16/+16
ok jsing@
2014-07-13Use dl_iterate_phdr() to iterate over the segments and throw the addressesderaadt4-4/+56
into the hash; hoping the system has some ASLR or PIE. This replaces and substantially improves upon &main which proved problematic with some picky linkers. Work with kettenis, testing by beck
2014-07-13Split out ntoh[ls] and hton[ls] into their own manpage.guenther3-136/+199
Update byteorder(3) to cover the new functions in <endian.h> ok deraadt@ millert@
2014-07-13Provide a link to the canonical API specification.deraadt8-8/+32
ok beck
2014-07-13Make sure all error conditions in RSA_padding_add_PKCS1_PSS_mgf1() causemiod2-6/+8
EVP_MD_CTX_cleanup() to be called.
2014-07-13Possible PBEPARAM leak in the error path.miod2-12/+16
2014-07-13dsa_priv_decode(): only destroy the object we've created, and with themiod2-6/+10
appropriate function. Checking for privkey != NULL is not enough since privkey points to a member of ndsa if ndsa != NULL. dsa_priv_encode(): possible double free in error path.
2014-07-13Check X509_NAME_oneline() return value when it will have to allocate memory.miod2-2/+6
2014-07-13EVP_DigestInit_ex() may be used to recycle an existing EVP_MD_CTX without havingmiod2-6/+18
to reinitialize all of it, especially if it is used with the same MD algorithm. However, when the MD algorithm changes, it needs to perform more cleanups. Make that code more closer to what EVP_MD_CTX_cleanup() does by: - only freeing md_data if EVP_MD_CTX_FLAG_REUSE is not set - performing an explicit_bzero of md_data before freeing it - making sure we call EVP_PKEY_CTX_free on the pctx if the allocation for the new md_data fails. ok tedu@
2014-07-13Don't include asn1_mac.h if all you need is asn1.h.miod2-4/+4
2014-07-13Take out __bounded__ in the include files we use it in when not on OpenBSD.beck8-10/+32
while we can take it out in portable at compile time, it is still a problem when we install this header file on a system that doesn't support __bounded__ if this is unguarded. ok miod@ bcook@
2014-07-13While we thought this would make portable life easier it actuallybeck1-3/+1
makes it much harder. ok bcook@ kettenis@
2014-07-13No need to include evp_locl.h in there.miod12-36/+12
2014-07-13Take away the use of the address of main as a source of entropy. Causesbeck6-6/+30
distractions to people testing and seeing link errors in some setups. This will come back in another form ok deraadt@
2014-07-13KNF and some code cleaning.jsing2-72/+92