diff options
| author | miod <> | 2014-06-01 14:47:14 +0000 |
|---|---|---|
| committer | miod <> | 2014-06-01 14:47:14 +0000 |
| commit | 6b8bbf5f4a65c20c4b46db917994f581df398522 (patch) | |
| tree | 5241f2707aa94b0d15bad9c799e4ad0ea7cfa480 /src | |
| parent | 14e8975850ef5082517c85a1744c3440f6202c23 (diff) | |
| download | openbsd-6b8bbf5f4a65c20c4b46db917994f581df398522.tar.gz openbsd-6b8bbf5f4a65c20c4b46db917994f581df398522.tar.bz2 openbsd-6b8bbf5f4a65c20c4b46db917994f581df398522.zip | |
Build with WARNINGS=Yes and Werror.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libssl/ssl/Makefile | 4 | ||||
| -rw-r--r-- | src/regress/lib/libssl/ssl/ssltest.c | 12 |
2 files changed, 4 insertions, 12 deletions
diff --git a/src/regress/lib/libssl/ssl/Makefile b/src/regress/lib/libssl/ssl/Makefile index 35a7a9a6be..b7359155da 100644 --- a/src/regress/lib/libssl/ssl/Makefile +++ b/src/regress/lib/libssl/ssl/Makefile | |||
| @@ -1,8 +1,10 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.1 2014/05/24 14:56:32 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 14:47:14 miod Exp $ |
| 2 | 2 | ||
| 3 | PROG= ssltest | 3 | PROG= ssltest |
| 4 | LDADD= -lcrypto -lssl | 4 | LDADD= -lcrypto -lssl |
| 5 | DPADD= ${LIBCRYPTO} ${LIBSSL} | 5 | DPADD= ${LIBCRYPTO} ${LIBSSL} |
| 6 | WARNINGS= Yes | ||
| 7 | CFLAGS+= -Werror | ||
| 6 | 8 | ||
| 7 | REGRESS_TARGETS=regress-ssltest | 9 | REGRESS_TARGETS=regress-ssltest |
| 8 | 10 | ||
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); |
