summaryrefslogtreecommitdiff
path: root/regress/lib
AgeCommit message (Collapse)Author
2018-04-26Prefer <fcntl.h> over <sys/fcntl.h> in userlandPhilip Guenther
While here, delete some extra #includes and apply style(9) sort rules. ok deraadt@ krw@ mpi@
2018-04-23Test X509_CRL_METHOD_free(NULL)Theo Buehler
2018-04-23About half of the listed functions are wrappers of ASN1_item_free().Theo Buehler
Annotate them.
2018-04-23Add a big pile of *_free() functions which I audited to be NULL-safe.Theo Buehler
2018-04-14Make ENGINE_free() succeed on NULL. Matches OpenSSL's behavior andTheo Buehler
simplifies the caller side. tested by & ok inoguchi; discussed with schwarze
2018-04-07Revise regress to match tls_keypair_clear() removal.Joel Sing
2018-04-07test X509_NAME_add_entry_by_txt(3); feedback and OK jsing@Ingo Schwarze
2018-03-29Fix three bugs in setlocale(3):Ingo Schwarze
1. setlocale(LC_ALL, "A"); setlocale(LC_CTYPE, "T"); setlocale(LC_ALL, NULL); must return "A/T/A/A/A/A", not "A". Fix this by always initializing the LC_ALL entry of newgl to "" in dupgl(). Reported by Karl Williamson <public at khwilliamson dot com> on bugs@, thanks! 2. Do not leak newgl when strdup(3) fails in setlocale(3). 3. For setlocale(LC_ALL, "C/C/fr_FR.UTF-8/C/C/C"); correctly set _GlobalRuneLocale; i found 2. and 3. while looking at the code. Feedback on a buggy earlier version and OK martijn@.
2018-03-19Remove the now unnecessary tls_init() call.Joel Sing
2018-03-19Add regress test ensuring autoinit stays pledge("stdio") safe.Bob Beck
2018-03-15Fix a format string issue that Go 1.10 complains about.Joel Sing
2018-03-15Provide SSL_CTX_get_min_proto_version and SSL_CTX_get_max_proto_versionJeremie Courreges-Anglas
We already provided the setters, so also provide the getters like OpenSSL does. Addition prompted by the use of those functions in recent openvpn releases. manpage diff from schwarze@ (thanks!) with input from jsing@, ok tb@ jsing@
2018-03-10Implement sicos(3), sincosf(3) and sincosl(3). These functions are commonMark Kettenis
extensions and modern compilers (such as clang) will use them to optimize separate calculations of sine and cosine. ok tom@, patrick@, deraadt@, jmc@
2018-02-14Update keypair regress to match revised keypair hash handling.Joel Sing
Apparently I failed to commit this when I committed the libtls change...
2018-02-08Update regress to use tlsext_serverhello_parse().Joel Sing
2018-02-08Update regress to match change to tls_keypair_pubkey_hash().Joel Sing
2018-02-08Add a regress test that covers libtls keypairs.Joel Sing
2018-02-08Tweak compiler flags to include -DLIBRESSL_INTERNAL and make more warningsJoel Sing
fatal.
2018-02-07Add more free functions for NULL checks.Joel Sing
2018-02-07Add more functions (based on those used in OpenSSH) to the free NULL test.Joel Sing
2018-01-28typoOtto Moerbeek
2018-01-28add malloc_threaderrOtto Moerbeek
2018-01-28Test for correct error when on thread allocates, and another does a double freeOtto Moerbeek
2018-01-27Update regress to match removal of ssl_parse_clienthello_tlsext().Joel Sing
2017-12-28Initialise new_cipher in the serverhello TLS extensions test, to avoid aJoel Sing
NULL pointer dereference in ssl_using_ecc_cipher(). Some compilers avoid triggering this, likely due to the EC formats list also being NULL. While here, setup the EC formats list so that we actually include the EC points format extension in the server hello extensions. Found the hard way by bcook@
2017-12-13If the list of templates 'o' passed to fuse_opt_parse(3) is NULL thenhelg
the processing function should be called in the same way as if no match was found. ok mpi@
2017-12-11sscanf(3) is now used to parse templates that contain format specifiershelg
(e.g. %u, %o) other than %s. This aligns libfuse with the Linux reference implementation. ok mpi@
2017-12-11The fuse_opt_match(3) library function does not match options correctly.helg
libfuse supports option templates of the following form that can be used to automatically parse arguments supplied on the command line. "-p " argument that takes an option e.g -p 22 or -p22 "-p %x" argument that takes an option parsed like sscanf(3) "cache=yes" matches -ocache=yes or -o cache=yes "cache=%s" matches -ocache=<string> or -o cache=<string> "cache=" matches same as above but value is passed to option proc "noatime" matches -onoatime or -o atime For example, it does not match options of the form "-p 22" or "cache=yes" to the corresponding templates "-p " and "cache=yes". This patch fixes that and updates the regression tests accordingly. ok mpi@
2017-12-09Add a regress test for tls_config_parse_protocols().Joel Sing
2017-12-09Use a test value that fits into a long on both 32-bit and 64-bitJoel Sing
architectures, so that the regress passes on both.
2017-11-28Add regress coverage for ASN1_TYPE_{get,set}_int_octetstring()Joel Sing
2017-11-28Add regress test coverage for building clienthello and serverhelloJoel Sing
extensions, both with extensions being present and not present. The not present case currently fails.
2017-11-28Add regress for CBB_discard_child().Joel Sing
Converted from BoringSSL.
2017-11-16Add regress tests for fuse_opt_parse() and fuse_parse_cmdline()helg
ok mpi@
2017-11-16Disable the pthread_once subtest until the problem with samba portAlexander Bluhm
is resolved and libpthread can be fixed. discussed with guenther@
2017-11-03Tests of libexpat 2.2.5 also need source file structdata.c.Alexander Bluhm
2017-10-16Add regress test for cancellation of pthread_once()'s init_routinePhilip Guenther
From Scott Cheloha (scottcheloha (at) gmail.com)
2017-10-15Add a regression test for ldexp(3).Visa Hankala
2017-10-11Update regress now that ssl_cipher_list_to_bytes() takes a CBB.Joel Sing
Based on a diff from doug@
2017-10-10Revise regress now that ssl_bytes_to_cipher_list() takes a CBS.Joel Sing
2017-09-07Try both libpthread and RTLD_DEFAULT when looking up functionsPhilip Guenther
so the test can find everything after the libpthread->libc move
2017-08-29When parsing extensions by calling the parse functions directly, ensureJoel Sing
that we have consumed all of the extension data. This catches the ALPN extension handling issue that was just fixed.
2017-08-28Some style(9).Joel Sing
2017-08-28Remove chacha20-poly1305-old regress and test vectors.Joel Sing
2017-08-28Use current chacha20-poly1305 cipher suite values.Joel Sing
2017-08-28Update due to removal of original chacha20-poly1305 cipher suites.Joel Sing
2017-08-27Rewrite SRTP extension using CBB/CBS and the new extension framework.Doug Hogan
input + ok beck@, jsing@
2017-08-27check return value from CBB_initBob Beck
2017-08-26Rewrite ALPN extension using CBB/CBS and the new extension framework.Doug Hogan
ok bcook@ beck@ input + ok jsing@
2017-08-16test locale priorities and overridesIngo Schwarze