summaryrefslogtreecommitdiff
path: root/usr.bin/openssl
AgeCommit message (Collapse)Author
2018-08-19Don't leak a strdup()'ed string on error in do_accept().Theo Buehler
CID #154702. input & ok inoguchi, ok mestre on first version
2018-08-18Plug SSL object leaks in doConnection().cheloha
Move SSL_new/SSL_free up into benchmark() to restrict the responsibility for the SSL object to a single scope. Make doConnection() return an int, openssl-style. Some miscellaneous cleanup, too. Discussed with tb, jsing, and jca. Basic idea from jsing, lots of patch input from tb. ok deraadt on an earlier version ok tb jsing
2018-08-16Revert previous, which was wrong as noted by schwarze. Also revert a hunkTheo Buehler
from r1.45 and thereby avoid a use-after-free spotted by schwarze. ok schwarze
2018-08-16Remove unused variable.rob
From Nan at chinadtrace dot org. Thanks!
2018-08-14Don't fail by default in the -new case; ok tb jcacheloha
2018-08-11Refactor the nearly identical benchmark loops into a single loop.cheloha
Move all of the benchmark code -- loop initialization, the loops, and the report printing -- into a new function, benchmark(). Eliminates lots of duplicate code. Regressions to 1.20 caught by tb@ and inoguchi@. Tweaked by tb@. ok tb@, jsing@
2018-07-13openssl app timers: TM_START -> TM_RESET, TM_STOP -> TM_GETcheloha
Much more apt than the current operation names. Names suggested by jca@ ages ago. ok jca, jsing
2018-04-25The cookie in the cookie verify callback needs to be const.Theo Buehler
ok jsing (as part of a larger diff)
2018-04-10Delete the description of the argument of the "ciphers" commandIngo Schwarze
because it was (1) woefully incomplete, (2) partially outdated and wrong, (3) in parts imprecisely worded and hard to understand, (4) excessively technical for a section 1 manual, (5) of excessive size for this particular page, (6) and didn't belong here in the first place because it essentially tried to document a C API - SSL_CTX_set_cipher_list(3), which is now documented, so point to it.
2018-03-31Improve description of openssl(1) ciphers.Ingo Schwarze
* Remove -tls1 option which has no effect. * For -V, sort the fields in the order they are printed, and do not talk about key size restrictions, nothing like that is printed.
2018-03-30Updates to the description of "openssl ca" from OpenSSL.Ingo Schwarze
Some options were missing, some were in the wrong section (CRL-related or not), and there were some minor errors, typos, and omissions.
2018-03-30checked the content against the current version of OpenSSL openssl.pod;Ingo Schwarze
resulting fixes: markup of "command" below SYNOPSIS and links to the config file formats below SEE ALSO
2018-03-22organizationUnitName -> organizationalUnitName;Jason McIntyre
from matt schwartz
2018-02-28ca start/enddates require all 4 yyyy from 2050 on; first twoJason McIntyre
are otherwise optional diff from holger mikolon, tweaked a bit by me
2018-02-18document s_client -groups;Jason McIntyre
2018-02-11typo in output string; from edgar pettijohnJason McIntyre
2018-02-08Convert option handling for openssl(1) genpkey.Joel Sing
ok beck@ inoguchi@
2018-02-07Restore a check before BN_free() that needs to exist and write it such thatJoel Sing
the intent is more obvious.
2018-02-07Nuke some more free NULL guards.Joel Sing
2018-02-07Indent labels with a single space so that diff prototypes are more useful.Joel Sing
2018-02-07Remove guards around *_free() calls since these functions handle NULL.Joel Sing
2018-02-07Remove guards around *_free() calls since these functions handle NULL.Joel Sing
2018-02-06Remove manual shutdown and close of the socket since in this caseTheo Buehler
SSL_free will do this a second time. ok jsing
2018-01-28Initialize variables to avoid compiler warningsKinichiro Inoguchi
ok jsing@
2018-01-15Add s_server and s_client -tlsextdebug messagesKinichiro Inoguchi
ok sthen@ jsing@
2018-01-07Remove unused extern variable in openssl(1) s_timeKinichiro Inoguchi
This extern variable appears not to be used. And it is overridden by local variable in doConnection(). This causes MSVC warning C4459 "declaration of 'verify_error' hides global declaration". OK millert@
2017-12-05Seperate real and user timer interfacesJeremie Courreges-Anglas
Use more descriptive names, and make it clearer that real and user timers work on different static storage. The end goal is to be able to reuse those timer functions, instead of inlining other timer implementations subject to clock jumps. Discussed with Scott Cheloha
2017-11-29Mixing -url with any of -host, -port, or -path should be a usage errorPhilip Guenther
instead of trying to work and then triggering a double-free(). problem noted by trondd (trondd (at) kagu-tsuchi.com) ok beck@
2017-11-24Use clock_gettime and getrusage to compute real and user time.Jeremie Courreges-Anglas
Better handling of clock jumps, from Scott Cheloa.
2017-11-02openssl s_time -connect host:port needs dns promise for pledge(2) otherwise itRicardo Mestre
will SIGABRT Bug found by Scott Cheloha <scottcheloha at gmail.com> OK deraadt@
2017-10-07Fix cast-pasto's in commentsPhilip Guenther
2017-08-28Remove SSLv23 padding mode.Joel Sing
2017-08-13Switch to -Werror with clang for libressl.Doug Hogan
Discussed with beck@ and jsing@ ok beck@
2017-08-12Remove NPN support - the -nextprotoneg options now become no-ops.Joel Sing
ok bcook@ beck@ doug@
2017-07-09remove redundant variable declarations in Makefiles, since those areMarc Espie
the default. okay millert@
2017-05-16typo: ket -> key.Theo Buehler
from "fenderq" on freenode via tj
2017-05-08simplify startdate/enddate validationBob Beck
ok jsing@
2017-05-07Limit -Werror to gcc4 as was done in libcrypto/libssl/libtls to avoidJonathan Gray
failed builds with different compilers. ok jsing@
2017-05-04Fix the ca command so that certs it generates have RFC5280 conformant time.Bob Beck
Problem noticed by Harald Dunkel <harald.dunkel@aixigo.de>
2017-04-18use freezero() instead of 4-line conditional explicit_bzero + freeTheo de Raadt
2017-01-24Add a -groups option to openssl s_client, which allows supported EC curvesJoel Sing
to be specified as a colon separated list. ok beck@
2017-01-21whitespaceTheo de Raadt
2017-01-20rearrange pledge promises into the canonical order; easier to eyeballTheo de Raadt
2017-01-20fix pledge for openssl ocsp - we will need tty to ask for a cert pwBob Beck
2017-01-19fix openssl ocsp to not report sucess when the ocsp responder rejects usBob Beck
ok deraadt@ krw@
2017-01-03consistently spell ASN.1;Jason McIntyre
2016-12-30Display details of the server ephemeral key, based on OpenSSL.Joel Sing
ok doug@
2016-12-30Expand ASN1_ITEM_rptr macros here as well... used with NETSCAPE_X509 of allJoel Sing
things...
2016-12-30Stop using M_PKCS12_* compatibility macros here as well.Joel Sing
2016-10-06typoChristian Weisgerber