diff options
author | miod <> | 2014-06-01 14:47:14 +0000 |
---|---|---|
committer | miod <> | 2014-06-01 14:47:14 +0000 |
commit | 80aec33a6fd0623b001a8f27386db1459998842b (patch) | |
tree | 5241f2707aa94b0d15bad9c799e4ad0ea7cfa480 /src/regress/lib/libssl/ssl/ssltest.c | |
parent | cfa204ac71b41465595c9237c888f02fd34c65e5 (diff) | |
download | openbsd-80aec33a6fd0623b001a8f27386db1459998842b.tar.gz openbsd-80aec33a6fd0623b001a8f27386db1459998842b.tar.bz2 openbsd-80aec33a6fd0623b001a8f27386db1459998842b.zip |
Build with WARNINGS=Yes and Werror.
Diffstat (limited to 'src/regress/lib/libssl/ssl/ssltest.c')
-rw-r--r-- | src/regress/lib/libssl/ssl/ssltest.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/regress/lib/libssl/ssl/ssltest.c b/src/regress/lib/libssl/ssl/ssltest.c index 879bf4b3ed..38c70906bb 100644 --- a/src/regress/lib/libssl/ssl/ssltest.c +++ b/src/regress/lib/libssl/ssl/ssltest.c | |||
@@ -458,16 +458,6 @@ main(int argc, char *argv[]) | |||
458 | 458 | ||
459 | CRYPTO_set_locking_callback(lock_dbg_cb); | 459 | CRYPTO_set_locking_callback(lock_dbg_cb); |
460 | 460 | ||
461 | /* enable memory leak checking unless explicitly disabled */ | ||
462 | if (!((getenv("OPENSSL_DEBUG_MEMORY") != NULL) && (0 == strcmp(getenv("OPENSSL_DEBUG_MEMORY"), "off")))) { | ||
463 | CRYPTO_malloc_debug_init(); | ||
464 | CRYPTO_set_mem_debug_options(V_CRYPTO_MDEBUG_ALL); | ||
465 | } else { | ||
466 | /* OPENSSL_DEBUG_MEMORY=off */ | ||
467 | CRYPTO_set_mem_debug_functions(0, 0, 0, 0, 0); | ||
468 | } | ||
469 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); | ||
470 | |||
471 | bio_stdout = BIO_new_fp(stdout, BIO_NOCLOSE|BIO_FP_TEXT); | 461 | bio_stdout = BIO_new_fp(stdout, BIO_NOCLOSE|BIO_FP_TEXT); |
472 | 462 | ||
473 | argc--; | 463 | argc--; |
@@ -2148,7 +2138,7 @@ psk_client_callback(SSL *ssl, const char *hint, char *identity, | |||
2148 | unsigned int psk_len = 0; | 2138 | unsigned int psk_len = 0; |
2149 | 2139 | ||
2150 | ret = snprintf(identity, max_identity_len, "Client_identity"); | 2140 | ret = snprintf(identity, max_identity_len, "Client_identity"); |
2151 | if (ret >= max_identity_len || ret == -1) | 2141 | if (ret == -1 || (unsigned int)ret >= max_identity_len) |
2152 | goto out_err; | 2142 | goto out_err; |
2153 | if (debug) | 2143 | if (debug) |
2154 | fprintf(stderr, "client: created identity '%s' len=%d\n", identity, ret); | 2144 | fprintf(stderr, "client: created identity '%s' len=%d\n", identity, ret); |