aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2015-04-28remove malloc castsRich Salz2-4/+4
Following ANSI C rules, remove the casts from calls to OPENSSL_malloc and OPENSSL_realloc. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-26Remove the special list-xxxx commandsRich Salz2-2/+2
There's a new "list" command, which takes a flag to say what to list. Removing the old hacky commands. Re-ordered some functions to remove some needless declarations. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-21ssltest output cleanupRich Salz1-45/+36
Make only errors go to stderr. Print count and size before the loop, so you can see it's an 838K message that will take a few moments. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-21test/Makefile dclean cleans out a few files too many.Richard Levitte1-2/+1
The files removed are the ones that were symbolic links before, but aren't now, so we should not remove them any more. Reviewed-by: Stephen Henson <steve@openssl.org>
2015-04-20Use 2K RSA and SHA256 in testsRich Salz6-9/+9
Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-04-17SunOS non-posix shells do not grok export name=valueViktor Dukhovni1-3/+5
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-16Code style: space after 'if'Viktor Dukhovni2-35/+35
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-04-11free NULL cleanup 9Rich Salz2-5/+1
Ongoing work to skip NULL check before calling free routine. This gets: ecp_nistz256_pre_comp_free nistp224_pre_comp_free nistp256_pre_comp_free nistp521_pre_comp_free PKCS7_free PKCS7_RECIP_INFO_free PKCS7_SIGNER_INFO_free sk_PKCS7_pop_free PKCS8_PRIV_KEY_INFO_free PKCS12_free PKCS12_SAFEBAG_free PKCS12_free sk_PKCS12_SAFEBAG_pop_free SSL_CONF_CTX_free SSL_CTX_free SSL_SESSION_free SSL_free ssl_cert_free ssl_sess_cert_free Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-04-11free NULL cleanup 10Rich Salz1-9/+5
Avoid checking for NULL before calling free functions. This gets ssl.*free: ssl_sess_cert_free ssl_free ssl_excert_free ssl_cert_free SSL_free SSL_SRP_CTX_free SSL_SESSION_free SSL_CTX_free SSL_CTX_SRP_CTX_free SSL_CONF_CTX_free Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-04-10Fix ECDH detection, add ECDH keyid test.Dr. Stephen Henson1-1/+9
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-04-10Polish shell script to avoid needless complexity.Viktor Dukhovni1-23/+9
No need for here documents, just use "yes" or </dev/null. No need for "|| exit 1" clauses, just use "set -e". Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-10fix to "test script cleanup"Rich Salz1-3/+3
Fix commit 30f54ad295d58ff8c6d28c1fd612d23c2c343d19 which used non-portable syntax for checking exit status. Reviewed-by: Matt Caswell <matt@openssl.org>
2015-04-10test script cleanupRich Salz12-507/+204
Removed commented-out tests Standardize on doing cmd ... || exit 1 instead of cmd ... if [ $? != 0] ; then exit 1 fi where that if statement has ben one, three, or four lines, variously. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-08Drop CA.sh for CA.plRich Salz4-9/+10
Remove CA.sh script and use CA.pl for testing, etc. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-08consistent test-start loggingRich Salz14-82/+105
Output a consistent "start" marker for each test. Remove "2>/dev/null" from Makefile command lines. Add OPENSSL_CONFIG=/dev/null for places where it's needed, in order to suppress a warning message from the openssl CLI. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-02Fewer newlines in comp method outputRich Salz1-3/+5
Print "supported compression methods" all on one line. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-04-01make updateEmilia Kasper1-18/+9
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-31Remove EXHEADER, TEST, APPS, links:, install: and uninstall: where relevantRichard Levitte1-11/+2
With no more symlinks, there's no need for those variables, or the links target. This also goes for all install: and uninstall: targets that do nothing but copy $(EXHEADER) files, since that's now taken care of by the top Makefile. Also, removed METHTEST from test/Makefile. It looks like an old test that's forgotten... Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-31Stop symlinking, move files to intended directoryRichard Levitte38-0/+21281
Rather than making include/openssl/foo.h a symlink to crypto/foo/foo.h, this change moves the file to include/openssl/foo.h once and for all. Likewise, move crypto/foo/footest.c to test/footest.c, instead of symlinking it there. Originally-by: Geoff Thorpe <geoff@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-03-29Add private/public key conversion testsDr. Stephen Henson8-87/+145
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-25RAND_bytes updatesMatt Caswell1-4/+4
Ensure RAND_bytes return value is checked correctly, and that we no longer use RAND_pseudo_bytes. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-24make dependDr. Stephen Henson1-10/+11
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-20Add DTLS tests to make testMatt Caswell1-0/+24
Updated test/testssl script to include the new DTLS capability in ssltest. Reviewed-by: Emilia Käsper <emilia@openssl.org>
2015-03-05Catch up the VMS build.Richard Levitte2-4/+10
crypto/crypto-lib.com - catch up with the OCSP changes test/maketest.com and test/tests.com - catch up with the addition of test_evp_extra Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-02-25Import evp_test.c from BoringSSL. Unfortunately we already have a fileMatt Caswell1-19/+36
called evp_test.c, so I have called this one evp_extra_test.c Reviewed-by: Emilia Käsper <emilia@openssl.org>
2015-02-06ui_compat cleanup; makefiles and vmsRich Salz1-2/+2
Remove ui_compat.h from Makefile dependencies And from two VMS build/install scripts. Reviewed-by: Matt Caswell <matt@openssl.org>
2015-02-04More unused FIPS module code.Dr. Stephen Henson2-313/+1
Remove fips_algvs.c Remove unused fips module build code from Configure and Makefile.org Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-02-02Remove old DES APIRich Salz1-2/+2
Includes VMS fixes from Richard. Includes Kurt's destest fixes (RT 1290). Closes tickets 1290 and 1291 Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-02-02cms-test.pl: "localize" /dev/null even further [as follow-up to VMS].Andy Polyakov1-3/+3
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-01-30Since SHA0 was completely removed, also remove the related testRichard Levitte1-16/+4
Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-01-30VMS exit codes weren't handled well enough and were unclearRichard Levitte1-3/+11
Making a specific variable $failure_code and a bit of commenting in the VMS section should help clear things up. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-01-30VMS adjustments:Richard Levitte1-4/+9
test/cms-test.pl adjusted to handle NL: instead of /dev/null on VMS Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-01-30VMS adjustments:Richard Levitte3-73/+281
catch up with the Unix build. A number of new tests, among others test/tocsp.com Define INTERNAL in ssl/ssl-lib.com to allow for '#include "internal/foo.h"' Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-01-22More comment realignmentmaster-post-reformatMatt Caswell1-6/+6
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell7-791/+764
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-12RT478: Add uninstall make targetRich Salz1-0/+2
Add INSTALLDIRS variable, list of directories where things get installed. Change install_html_docs to use perl mkdir-p script. Add uninstall, uninstall_sw, uninstall_docs, uninstall_html_docs to Makefile.org. The actions of these targets were figured out by "inverting" the install target. Recurse into subdirs to do uninstall as needed. Added uninstall targets whose actions were similarly figured out by "inverting" the install target. Also remove some 'space before tab' complaints in Makefile.org Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-30mark all block comments that need format preserving so thatTim Hudson3-4/+5
indent will not alter them when reformatting comments Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
2014-12-18make update following changes to default config settingsMatt Caswell1-13/+11
Reviewed-by: Rich Salz <rsalz@openssl.org>
2014-12-16Rename gost2814789t.c to gost2814789test.c. The old name caused problemsMatt Caswell1-15/+16
for dummytest if gost is compiled out, since the name of the test is not standard (dummytest segfaults). Also the old name caused problems for git because the executable was not in the .gitignore file Reviewed-by: Emilia Käsper <emilia@openssl.org>
2014-12-16Add OPENSSL_NO_ECDH guardsMatt Caswell1-0/+20
Reviewed-by: Emilia Käsper <emilia@openssl.org>
2014-12-11make updateMatt Caswell1-2/+5
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Prepare for bn opaquify. Implement internal helper functions.Matt Caswell1-16/+16
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08make dependDr. Stephen Henson1-113/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Remove fips utility build rules from test/MakefileDr. Stephen Henson1-104/+2
The fips test utilities are only build if an FIPS module is being built from source. As this isn't done in master these are redundant. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-04Remove SSLv2 supportKurt Roeckx4-81/+38
The only support for SSLv2 left is receiving a SSLv2 compatible client hello. Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-11-28Remove all .cvsignore filesRich Salz1-43/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-11-18Fixed cms-test.pl for no-ec2mMatt Caswell1-1/+21
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2014-09-23make updateEmilia Kasper1-2/+5
Sync libeay.num from 1.0.2 Reviewed-by: Dr Stephen Henson <steve@openssl.org>
2014-09-05make updateEmilia Kasper1-5/+2
Reviewed-by: Dr Stephen Henson <steve@openssl.org>
2014-08-28Constant-time utilitiesEmilia Kasper1-4/+17
Pull constant-time methods out to a separate header, add tests. Reviewed-by: Bodo Moeller <bodo@openssl.org>