summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-03-06Pull in a change from the bind 8 resolver that fixes a potentialmillert1-10/+16
crash when given a large hex number as part of the dotted quad. OK deraadt@ jsg@
2017-03-06Clean up and simplify the tls1_PRF() implementation now that we have ajsing1-48/+19
single EVP MD for the PRF hash. ok beck@ inoguchi@
2017-03-05Correctly convert an SSLv2 challenge into an SSLv3/TLS client random byjsing1-9/+27
truncating or left zero padding. ok beck@ inoguchi@ sthen@
2017-03-05Provide a rolling handshake hash that commences as soon as the cipherjsing8-54/+193
suite has been selected, and convert the final finish MAC to use this handshake hash. This is a first step towards cleaning up the current handshake buffer/digest code. ok beck@ inoguchi@
2017-03-05Convert various handshake message generation functions to CBB.jsing4-56/+113
ok beck@ inoguchi@
2017-03-05Add an initial regress test that covers the server-side of libssl, byjsing3-1/+220
providing SSL_accept() with fixed ClientHello messages.
2017-03-04Drop the second argument of dtls1_set_message_header() and make it a voidjsing3-13/+10
function. Nothing makes use of the return value and the second argument was only used to produce the return value...
2017-03-04Call ssl3_handshake_write() instead of ssl3_do_write() - this was missedjsing1-2/+2
when ssl3_send_client_certificate() was converted to the standard handshake functions in r1.150 of s3_clnt.c. This has no impact on TLS, however it causes the DTLS client to fail if the server sends a certificate request, since the TLS MAC is calculated on a non-populated DTLS header. Issue reported by umokk on github.
2017-03-04Treat "ERROR in STARTUP" as an actual error, rather than failing withoutjsing1-2/+2
exiting non-zero (which has been masking a DTLS related issue). Also make the message consistent with other errors. Spotted by inogochi@
2017-03-04Remove commented out code and fix indentation of surrounding statements.jsing1-12/+5
2017-03-04Remove handling for SSLv2.jsing1-14/+3
2017-03-03Ensure MD and key initialized before processing HMACinoguchi2-35/+224
Ensure both MD and key have been initialized before processing HMAC. Releasing HMAC_CTX in error path of HMAC(). In regress test, added test 4,5,6 and cleaned up the code. ok jsing@
2017-03-02fix error in Dt; from robert kleinjmc1-3/+3
2017-03-01Convert ssl3_{get,send}_server_key_exchange() to EVP_md5_sha1().jsing3-44/+29
ok inoguchi@
2017-03-01Add EVP test for MD5-SHA1.jsing1-0/+3
2017-03-01Include EVP_md5_sha1() via OpenSSL_add_all_digests().jsing1-1/+2
2017-02-28Bump minors due to symbol addition.jsing3-3/+3
2017-02-28Document EVP_md5_sha1().jsing1-2/+11
2017-02-28Add an EVP interface that provides concatenated MD5+SHA1 hashes, which arejsing4-2/+88
used in various parts of TLS 1.0/1.1. This will allow for code simplification in libssl. The same interface exists in OpenSSL 1.1. ok beck@ deraadt@ inoguchi@ millert@
2017-02-28Fix typo in issuingDistributionPoint description.jsing1-1/+1
2017-02-28Stop pretending that MD5 and SHA1 might not exist - rather than locatingjsing4-20/+8
"ssl3-md5" and "ssl-sha1", call the EVP_md5() and EVP_sha1() functions directly. ok beck@ inoguchi@
2017-02-27Add support for RES_USE_DNSSECjca1-5/+2
RES_USE_DNSSEC is implemented by setting the DNSSEC DO bit in outgoing queries. The resolver is then supposed to set the AD bit in the reply if it managed to validate the answer through DNSSEC. Useful when the application doesn't implement validation internally. This scheme assumes that the validating resolver is trusted and that the communication channel between the validating resolver and and the client is secure. ok eric@ gilles@
2017-02-25pledge stdio before parsing the http responsebeck1-9/+11
ok tb@
2017-02-25Add missing includes to avoid implicit function declarations.jsg4-3/+7
2017-02-24Add the following root CAs, from SECOM Trust Systems / Security Communicationsthen1-1/+126
of Japan, they are present in Mozilla's CA store. OK ajacoutot@ /C=JP/O=SECOM Trust Systems CO.,LTD./OU=Security Communication EV RootCA1 /C=JP/O=SECOM Trust Systems CO.,LTD./OU=Security Communication RootCA2 /C=JP/O=SECOM Trust.net/OU=Security Communication RootCA1
2017-02-23Check return value of every BN_* functions in bntestinoguchi1-393/+426
- add macro CHECK_GOTO - unify function return code to rc - add err: label for error goto ok bcook@
2017-02-21Remove STREEBOG 512 as a TLS MAC since there are currently no cipher suitesjsing2-26/+6
that make use of it. ok bcook@ inoguchi@
2017-02-21don;t end Nd with a full stop;jmc1-3/+3
2017-02-20Add missing $OpenBSD$beck1-0/+1
2017-02-20Mark ERR_add_error_data and ERR_add_error_vdata as not for internal use,beck5-14/+81
and document ERR_asprintf_error_data as their replacement. ok jsing@, ingo@
2017-02-20spelling fix;jmc1-2/+2
2017-02-20document tls_config_error(3) RETURN VALUES, improve what is saidschwarze2-6/+59
about tls_error(3), and warn about some traps; OK jmc@
2017-02-18Add EDNS0 support.jca1-4/+3
EDNS allows for various DNS extensions, among which UDP DNS packets size bigger than 512 bytes. The default is still to not advertize anything. ok eric@
2017-02-15Avoid dereferencing a pointer when reporting an error about the samejsing1-2/+2
pointer being NULL. Found by jsg@ with cppcheck; also detected by Coverity.
2017-02-15Add a NULL test to wrterror() to avoid a NULL deref when called from ajsg1-2/+2
free() error path. ok otto@
2017-02-14bump to 2.5.2bcook1-3/+3
2017-02-12malloc does not *need* to return page-aligned objects for size >=otto1-5/+2
a page. This is not required by any standard and other malloc implementation do not document (or implement) this. ok deraadt@
2017-02-09When netcat was started with -Uz, the exit status was always 1. Ifbluhm1-3/+4
the unix connect is successful, let nc -z close the socket and exit with 0. OK jca@
2017-02-09Document that -x can take an ipv6 address enclosed in square brackets.jca1-2/+5
2017-02-09When getaddrinfo fails, print the requested host and port.jca1-2/+3
Should make debugging easier, especially when using -x literal_ipv6_address
2017-02-09DES keys are not 7 days long. ok jsing@dtucker2-5/+5
2017-02-08Avoid a busy loop in netcat's tls_close(). Reuse the tls_handshake()bluhm1-18/+8
wrapper that calls poll(2) and handles the -w timeout. OK beck@
2017-02-08Avoid double close(2) in netcat. After every call to readwrite()bluhm1-13/+5
there is already a close(2), so do not do it in readwrite(). OK beck@
2017-02-08Due to non-blocking sockets, tls_handshake() could wait in a busybluhm1-21/+42
loop. Use an additional poll(2) during the handshake and also respect the -w timeout option there. From Shuo Chen; OK beck@
2017-02-07Revert previous; the implementation is incorrect since it assumes that thejsing2-20/+7
provided error code matches the error that is currently on the top of the error stack.
2017-02-07Remove unused variable in C source to make the test compile and pass.bluhm1-1/+0
2017-02-07Add file and line to the LibreSSL error strings sine we are no longer inbeck2-7/+20
1989, VMS, or MS/DOS and we all run Brobdingnagian C compilers that have can now be counted on to achieve this level of sophistication nearly everywhere. ok jsing@
2017-02-07Change SSLerror() back to taking two args, with the first one being an SSL *.beck25-573/+841
Make a table of "function codes" which maps the internal state of the SSL * to something like a useful name so in a typical error in the connection you know in what sort of place in the handshake things happened. (instead of by arcane function name). Add SSLerrorx() for when we don't have an SSL * ok jsing@ after us both being prodded by bluhm@ to make it not terrible
2017-02-05Define values for SSL_CTRL_SET_GROUPS{,_LIST} and wire them up to thejsing2-15/+19
SSL_{,CTX_}ctrl() functions. As crazy as it is, some software appears to call the control functions directly rather than using the macros (or functions) provided by the library. Discussed with beck@ and sthen@
2017-02-05Kill leak introduced with refactorbeck1-3/+6
ok jsing@