summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-07-14Convert ssl_parse_clienthello_use_srtp_ext to CBS.doug4-84/+50
ok miod@ jsing@
2015-07-14Convert ssl3_get_cert_status to CBS.doug2-34/+52
ok miod@ jsing@
2015-07-14Convert ssl3_get_server_certificate to CBS.doug2-34/+36
ok miod@
2015-07-13Unhook tls_ext_alpn test until the code passes it.doug1-2/+5
2015-07-12Convert openssl(1) dh to the new option handling.doug1-98/+111
ok jsing@
2015-07-12Convert openssl(1) dsa to the new option handling.doug1-154/+208
ok jsing@
2015-07-12Convert openssl(1) ec to the new option handling.doug1-170/+247
ok jsing@
2015-07-12Convert gendh.c to the new option handling.doug1-54/+79
ok jsing@
2015-07-12Convert openssl(1) dsaparam to the new option handling.doug1-154/+123
This also removes support for -timebomb related code which was only enabled for GENCB_TEST. ok jsing@
2015-07-12Convert openssl(1) crl2pkcs7 to the new option handling.doug1-95/+110
input + ok jsing@
2015-07-11Convert openssl(1) dhparam to new option handling.jsing1-121/+160
ok doug@
2015-07-09Add tests for parsing TLS extension ALPN (RFC 7301).doug2-2/+446
The current libssl code does not pass these tests yet.
2015-07-08switch "openssl dhparam" default from 512 to 2048 bits, ok jsing@sthen2-6/+6
2015-07-07add setlocale testsemarie1-1/+3
2015-07-07add regress test for setlocale(3) and some relatedsemarie2-0/+140
functions (MB_CUR_MAX, isalpha() for ctype. some tips from stsp@
2015-07-03Repair algorithm name array after 1.6.miod1-4/+4
2015-07-01specify the array initializer valuelibressl-v2.2.1bcook1-2/+2
noted by kinichiro from github
2015-06-29fix the build on arm after the recent addition of -Wundefjsg2-4/+4
ok doug@ deraadt@
2015-06-28Convert ssl_bytes_to_cipher_list to CBS.doug6-23/+59
Link in the new 'unit' regress and expand the invalid tests to include some that would fail before the CBS conversion. input + ok miod@ jsing@
2015-06-27Add unit tests for LibreSSL.doug3-0/+256
cipher_list.c is based on code from jsing@. Discussed with jsing@
2015-06-27Fix pointer to unsigned long conversion.doug4-10/+14
bcook@ notes that this check really only impacted 64-bit Windows. Also, changed the check to be unsigned for consistency. ok bcook@
2015-06-24Put BUF_memdup() and BUF_reverse() under #ifndef LIBRESSL_INTERNAL.jsing2-6/+4
2015-06-24Stop using BUF_memdup() within the LibreSSL code base - it is correctlyjsing4-12/+14
spelt malloc+memcpy, which is what is used in all except two places. ok deraadt@ doug@
2015-06-23Change CBS_dup() to also sync the offset.doug3-3/+41
Previously, CBS_dup() had its own offset. However, it is more consistent to copy everything. ok miod@ jsing@
2015-06-23Convert bytestringtest to individual checks and don't short circuit.doug1-321/+337
The statements were chained together with OR which makes it more annoying to debug. Also, it was short circuiting all tests as soon as one function failed. Since the functions are independent, they should each run until error. Discussed with miod@ and jsing@
2015-06-23Remove unnecessary regress target.doug1-7/+2
2015-06-21Check for failure with CBB_init() in bs_ber.c.doug2-4/+6
From BoringSSL commit 3fa65f0f05f67615d9daf48940e07f84d094ac6e.
2015-06-21Just return if nmemb is 0. Avoids a NULL dereference and ismillert1-1/+4
consistent with the behavior of the other libc sort functions. OK deraadt@
2015-06-20Convert ssl3_get_new_session_ticket to CBS.doug2-48/+48
tweak + ok miod@ jsing@
2015-06-20Convert ssl3_get_next_proto to CBS.doug2-28/+38
tweak + ok miod@ jsing@
2015-06-20Convert ssl_parse_serverhello_renegotiate_ext to CBS.doug4-38/+42
ok miod@ jsing@
2015-06-20Handle NIST curve names in openssl(1) ecparam.jsing1-1/+4
From OpenSSL.
2015-06-20Handle NIST curve names.jsing2-4/+8
From OpenSSL. ok miod@ (a while ago)
2015-06-20Have ECPKParameters_print() include the NIST curve name, if known.jsing2-2/+20
From OpenSSL. ok miod@ (a while ago).
2015-06-20Less mdc2.jsing1-4/+1
2015-06-20Provide EC_curve_nid2nist() and EC_curve_nist2nid().jsing4-4/+114
From OpenSSL. Rides libcrypto bump. ok miod@ (a while ago)
2015-06-20Make SSL_OP_ALL readable.jsing2-4/+18
ok deraadt@ doug@ millert@ miod@ sthen@
2015-06-20Put CRYPTO_memcmp() under #ifndef LIBRESSL_INTERNAL.jsing2-2/+6
ok doug@ deraadt@
2015-06-20Replace remaining CRYPTO_memcmp() calls with timingsafe_memcmp().jsing6-12/+12
ok doug@ deraadt@
2015-06-20Convert ssl_parse_clienthello_renegotiate_ext to CBS.doug4-30/+28
ok miod@, tweak + ok jsing@
2015-06-20Replace internal call to CRYPTO_memcmp with timingsafe_memcmp.doug2-4/+4
Suggested by jsing@. ok jsing@ miod@
2015-06-20Fix warning on vax due to old gcc.doug2-8/+8
Old gcc warns when parameters have the same names as functions. Noticed by deraadt@. ok deraadt@ jsing@
2015-06-20Crank major for libcrypto, ssl and tls due to MDC-2DES removal.doug5-6/+6
ok miod@ jsing@
2015-06-20Remove obsolete MDC-2DES from libcrypto.doug46-1239/+59
ok deraadt@ jsing@ miod@
2015-06-19Remove needless casts. There's no reason to cast delim to char *millert1-5/+4
when we can just make spanp const char * to match it. OK deraadt@
2015-06-19Add missing message digests to function table.jsing1-3/+27
Diff from kinichiro via github. ok doug@
2015-06-19Remove fallback dynamic engine loading support.bcook1-18/+2
Since we no longer have dynamic engines, don't bother falling back to them if a builtin engine is not found first. Before: $ openssl dgst -engine unknown invalid engine "unknown" 27256010481532:error:2606A074:engine routines:ENGINE_by_id:no such engine:/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/engine/eng_list.c:384:id=unknown 27256010481532:error:2606A074:engine routines:ENGINE_by_id:no such engine:/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/engine/eng_list.c:384:id=dynamic After: $ openssl dgst -engine unknown invalid engine "unknown" 27256010481532:error:2606A074:engine routines:ENGINE_by_id:no such engine:/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/engine/eng_list.c:384:id=unknown ok doug@
2015-06-19Return the failing engine ID in the error stack.bcook2-4/+8
Noted by doug@ in an earlier revision of the dynamic engine removal patch, but I had forgotten to include it in the latest version.
2015-06-19Add standard headers, C++ support to tls.h.bcook1-1/+12
This makes using libtls easier to include by including dependent headers, making something like this work as expected: #include <iostream> #include <tls.h> int main() { std::cout << "tls_init: " << tls_init() << "\n"; } This also makes building a standalone libtls-portable simpler. ok doug@, jsing@
2015-06-19Disable ENGINE_load_dynamic (dynamic engine support).bcook34-1060/+22
We do not build, test or ship any dynamic engines, so we can remove the dynamic engine loader as well. This leaves a stub initialization function in its place. ok beck@, reyk@, miod@