aboutsummaryrefslogtreecommitdiff
path: root/apps
AgeCommit message (Collapse)AuthorFilesLines
2015-10-30Replace "SSLeay" in API with OpenSSLRich Salz6-36/+20
All instances of SSLeay (any combination of case) were replaced with the case-equivalent OpenSSL. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-30Remove SSL_state and SSL_set_stateMatt Caswell1-1/+1
SSL_state has been replaced by SSL_get_state and SSL_set_state is no longer supported. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-30Remove a call to SSL_set_state from s_serverMatt Caswell1-7/+19
s_server was (ab)using SSL_set_state to force a renegotiation. This is a bad way to do things and does not work with the new state machine code, so we need to do it a different way. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-30Remove redundant codeMatt Caswell1-1/+1
Clean up and remove lots of code that is now no longer needed due to the move to the new state machine. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-23Remove useless codeAlessandro Ghedini5-21/+3
RT#4081 Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-23Do not treat 0 return value from BIO_get_fd() as errorAlessandro Ghedini1-1/+1
0 is a valid file descriptor. RT#4068 Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-18Move auto Host adding to query_responderDr. Stephen Henson1-14/+11
Check for Host header in query_responder instead of process_responder. This also fixes a memory leak in the old code if the headers was NULL. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-18Fix memory leak with -issuer option.Dr. Stephen Henson1-3/+5
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-16Fix error message when loading engines from configDmitry Belyavsky1-4/+4
When using command line applications errors occur when trying to load engines specified in a config file. Introduced by commit a0a82324f96 RT#4093 Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
2015-10-12Rename -set-serial command to reqMatt Caswell1-1/+1
Previous OpenSSL versions used -set_serial, but master was using -set-serial - so rename it back to the old version. RT#4059 Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-12Centralise loading default apps config fileMatt Caswell38-114/+19
Loading the config file after processing command line options can cause problems, e.g. where an engine provides new ciphers/digests these are not then recoginised on the command line. Move the default config file loading to before the command line option processing. Whilst we're doing this we might as well centralise this instead of doing it individually for each application. Finally if we do it before the OpenSSL_add_ssl_algorithms() call then ciphersuites provided by an engine (e.g. GOST) can be available to the apps. RT#4085 RT#4086 Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-12Fix option name discrepancyMatt Caswell1-2/+2
There used to be options -macopt and -sigopt in <=1.0.2 for the dgst command line app. These were incorrectly spelled as -macop and -sigop in master. RT#4072 Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-10-11Make no-psk compile without warnings.Dr. Stephen Henson1-4/+0
PR#4035 Reviewed-by: Matt Caswell <matt@openssl.org>
2015-10-09DTLS: remove unused cookie fieldEmilia Kasper2-2/+2
Note that this commit constifies a user callback parameter and therefore will break compilation for applications using this callback. But unless they are abusing write access to the buffer, the fix is trivial. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-10-06Don't try and parse boolean type.Dr. Stephen Henson1-2/+2
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-10-05Address Windows warnings in apps/.Andy Polyakov2-25/+1
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-05Explicitly cast INVALID_SOCKET to (int) to address warnings on Windows.Andy Polyakov1-6/+6
Even though SOCKET is effectively declared as (void *) on Windows, it's not actually a pointer, but an index within per-process table of kernel objects. The table size is actually limited and its upper limit is far below upper limit for signed 32-bit integer. This is what makes cast in question possible. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-09-30Display brief help if no options for list.Ben Laurie1-1/+8
Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-09-29Fix -Wshadow warnings in mingw builds.Andy Polyakov1-3/+3
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-09-28Print debug info for extended master secret extensionAlessandro Ghedini1-0/+3
Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-09-28RT4053: Typo in error messageMichal Bozon1-1/+1
Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-09-28SRP memory leak fixDr. Stephen Henson1-0/+3
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-09-28Silence Wconditional-uninitializedEmilia Kasper1-1/+1
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-09-25GH408 follow-on: update buflenAlessandro Ghedini1-1/+5
Some builds break, as documented in: https://github.com/openssl/openssl/pull/408#issuecomment-142971427 This fixes it. Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-09-25Add support for -no-CApath and -no-CAfile optionsMatt Caswell11-58/+170
For those command line options that take the verification options -CApath and -CAfile, if those options are absent then the default path or file is used instead. It is not currently possible to specify *no* path or file at all. This change adds the options -no-CApath and -no-CAfile to specify that the default locations should not be used to all relevant applications. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-09-24fix compilation on SolarisVladimir Kotal1-3/+2
Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-09-24Restore the old interactive prompt.Rich Salz1-12/+1
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-09-23Fix s_server DTLSv1_listen issuesMatt Caswell1-5/+4
Use sockaddr_storage not sockaddr for the client IP address to allow for IPv6. Also fixed a section of code which was conditional on OPENSSL_NO_DTLS1 which should not have been. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-09-23Add support for DTLSv1_listen in s_serverMatt Caswell1-3/+41
DTLSv1_listen is a commonly used function within DTLS solutions for listening for new incoming connections. This commit adds support to s_server for using it. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-09-22Remove "noise" comments from TS files.Rich Salz1-134/+29
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-09-21Fix -srpvfile option in srp command lineMatt Caswell1-12/+16
The -srpvfile option was broken in the srp command line app. Using it would always result in "-dbfile and -configfile cannot be specified together." The error message is also wrong because the option is "-srpvfile" not "-dbfile", so that has been fixed too. Reviewed-by: Emilia Käsper <emilia@openssl.org>
2015-09-20Make SRP work with -wwwDr. Stephen Henson1-0/+45
PR#3817 Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-09-20make no-dh workDr. Stephen Henson2-3/+14
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-09-20Finally, remove a possibly disabled featureRichard Levitte1-3/+0
I have no clue why MD_GHOST94 was checked on, there is no OPENSSL_NO_MD_GHOST94 in sight anywhere Reviewed-by: Stephen Henson <steve@openssl.org>
2015-09-20Add more features that may be disabledRichard Levitte1-0/+6
Have a look at the directories in crypto/, I found reason to add checks on CMAC and HMAC. This might be completely irrelevant, but I prefered covering too much than not enough. Reviewed-by: Stephen Henson <steve@openssl.org>
2015-09-20Add more features that may be disabledRichard Levitte1-1/+19
A grep of OPENSSL_NO_ in the rest of the source tree revealed a few more features to check. NOTE: there are some of those macros that I ignore because a check of them doesn't seem useful to external apps. This might change later on. Reviewed-by: Stephen Henson <steve@openssl.org>
2015-09-20Add more features that may be disabledRichard Levitte1-3/+21
After a grep of OPENSSL_NO_ in apps/*.c, a few more features that may be interesting to check the availability of came up. Reviewed-by: Stephen Henson <steve@openssl.org>
2015-09-20Add more features that may be disabledRichard Levitte1-0/+63
I've tried to make this list as complete as possible, based on information found in apps/progs.pl. Reviewed-by: Stephen Henson <steve@openssl.org>
2015-09-20Sort the disabled features alphabeticallyRichard Levitte1-7/+7
Reviewed-by: Stephen Henson <steve@openssl.org>
2015-09-20Small typoRichard Levitte1-1/+1
OPENSSL_NO_ECA changed to OPENSSL_NO_EC Reviewed-by: Stephen Henson <steve@openssl.org>
2015-09-19Print out a list of disabled features.Dr. Stephen Henson1-1/+36
New option "openssl list -disabled" this lists a set of disabled features in a form which can be conveniently parsed by the test framework so it knows which tests to skip. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-09-17RT4033: Use OPENSSL_SYS_UNIX not "unix"Rich Salz2-2/+3
Real fix for RT 4033 Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-09-11Use default field separator.Dr. Stephen Henson1-1/+5
If the field separator isn't specified through -nameopt then use XN_FLAG_SEP_CPLUS_SPC instead of printing nothing and returing an error. PR#2397 Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-09-11Enable -Wmissing-variable-declarations andBen Laurie10-17/+26
-Wincompatible-pointer-types-discards-qualifiers (the latter did not require any code changes). Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-09-10Unwriteable directories are errorsRich Salz1-1/+1
Make the script and app match the documentation. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-09-08Fix rehash/c_rehash doc and behavior.Rich Salz1-0/+4
Both now warn once if directory isn't writeable. Both now warn on file-write errors (multiple times). Update manpage to describe both program and script correctly. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-09-08Fix uninit warning. Remove unnecessary casts. Nothing to add is an error.Ben Laurie1-5/+10
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-09-07add support for apple os/xRich Salz1-3/+2
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-09-07GH391: Apple portRich Salz1-28/+57
Also make internal functions consistently return values, and add a comment documenting them. Reviewed-by: Ben Laurie <ben@openssl.org>
2015-09-06fix build breakage on windowsRich Salz1-0/+3
Reviewed-by: Tim Hudson <tjh@openssl.org>