aboutsummaryrefslogtreecommitdiff
path: root/test_params.c
AgeCommit message (Collapse)AuthorFilesLines
2021-12-11MSVC: Fix 'no OPENSSL_Applink' errorVitaly Chikunov1-0/+5
Error message: OPENSSL_Uplink(00007FF9FB00F600,08): no OPENSSL_Applink Link: https://www.openssl.org/docs/faq.html#PROG3 Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
2021-12-11MSVC: Fix signed/unsigned mismatch errorsVitaly Chikunov1-1/+1
test_digest.c(513,2): warning C4389: '==': signed/unsigned mismatch test_digest.c(820,5): warning C4389: '==': signed/unsigned mismatch test_sign.c(241,22): warning C4389: '==': signed/unsigned mismatch test_params.c(1131,16): warning C4018: '<': signed/unsigned mismatch test_sign.c(241,22): warning C4389: '==': signed/unsigned mismatch Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
2021-12-11MSVC: No support for GCC's compound statement expressionsVitaly Chikunov1-11/+11
Error messages: test_ciphers.c(329,5): error C2059: syntax error: '{' test_ciphers.c(329,5): error C2059: syntax error: '}' test_ciphers.c(329,5): error C2059: syntax error: ')' Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
2021-05-02Make test programs less hard-codedRichard Levitte1-9/+0
The following programs had a hard coded load of the gost engine. This changes them to rely more on the testing environment, and to load engines through configuration files. This affects: test_ciphers.c, test_context.c, test_derive.c, test_digest.c, test_params.c, test_sign.c, test_tls.c
2021-02-22Always cNORM before "\n"Richard Levitte1-7/+7
Using cNORM after "\n" may or may not work, probably because of the line buffered nature of standard output. If an error is displayed immediately after a printf that has cNORM after "\n", the error output sometimes "overrides" the cNORM, and you may end up with a surprisingly colorful error message, not to mention that this may also affect your prompt in the same manner. The lesson is to always output cNORM before the ending "\n".
2020-05-21test_params: Test conversion of cert to PEM and backVitaly Chikunov1-1/+72
Test for conversion errors.
2019-02-15tests: Load just built engine from the output directoryVitaly Chikunov1-1/+8
Define ENGINE_DIR for all binary tests. Instead of auto-loading engine using `example.conf' load it directly from the OUTPUT_DIRECTORY for curves tests.
2019-02-02Fix memory leaks in the testsVitaly Chikunov1-0/+4
In preparation for memory leak detector fix them in the tests.
2019-01-28test_params: additional testsVitaly Chikunov1-7/+50
- Manually verify cert using EVP_Verify API. (In addition to X509_verify). - Add test using EVP_DigestVerifyInit API for raw vectors.
2019-01-27test_params: Avoid calls to fill_GOST_EC_params and bind_gostVitaly Chikunov1-5/+24
Use external API to generate key with parameters instead of calling fill_GOST_EC_params(). Use OPENSSL_CONF trick like in test_sign to avoid calling bind_gost(). Reverting 1716316de77 ("Export bind_gost to allow local engine init") as not needed anymore.
2019-01-21test_params: signature verify tests for different curvesVitaly Chikunov1-0/+1043
Interoperability with third party software.