Add executable to ignore, add check for FP_MAX_BITS

pull/206/head
kaleb-himes 2020-05-27 14:35:39 -06:00
parent 5bac34359e
commit 05009a6255
3 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -184,6 +184,7 @@ pk/ED25519/sign_and_verify
pk/ecdh_generate_secret/ecdh_gen_secret
pk/rsa-kg/rsa-kg-sv
pk/dh-pg/dh-pg-ka
pk/test_cert_and_private_keypair/test-cert-privkey-pair
wolfCLU/tests/somejunk/*somejunk*.txt

View File

@ -47,9 +47,17 @@ int main(int argc, char** argv)
svrKeyFile = argv[1];
svrCertFile = argv[2];
} else {
#if defined(FP_MAX_BITS) && (FP_MAX_BITS >= 8192) && \
defined(USE_FAST_MATH)
printf("\nUsing defaults server.key and server.cert\n");
printf("To test other key/cert pair run with:\n");
printf("./test-cert-privkey-pair yourkey.pem yourcert.pem\n\n\n");
#else
printf("FP_MAX_BITS set too low to run the default 4096-bit pair\n");
printf("Please build with FP_MAX_BITS set to 8192 or greater when\n"
"using fastmath to test the defaults\n");
return -1;
#endif
}
ctx = wolfSSL_CTX_new(wolfSSLv23_server_method());