summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcheloha <>2018-08-14 15:25:04 +0000
committercheloha <>2018-08-14 15:25:04 +0000
commita68a512f39fd049728cc0d7de693ebd091c84f8d (patch)
tree5db02d660f4262c8b27a2c1994037e118e4d9fe9 /src
parentfbb93e28c7775385e0c6e76f6976dd1e0d16dac5 (diff)
downloadopenbsd-a68a512f39fd049728cc0d7de693ebd091c84f8d.tar.gz
openbsd-a68a512f39fd049728cc0d7de693ebd091c84f8d.tar.bz2
openbsd-a68a512f39fd049728cc0d7de693ebd091c84f8d.zip
Don't fail by default in the -new case; ok tb jca
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/s_time.c31
1 files changed, 12 insertions, 19 deletions
diff --git a/src/usr.bin/openssl/s_time.c b/src/usr.bin/openssl/s_time.c
index c5d2ede9bb..ef96fd59a7 100644
--- a/src/usr.bin/openssl/s_time.c
+++ b/src/usr.bin/openssl/s_time.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s_time.c,v 1.25 2018/08/11 16:07:36 cheloha Exp $ */ 1/* $OpenBSD: s_time.c,v 1.26 2018/08/14 15:25:04 cheloha Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -316,29 +316,22 @@ s_time_main(int argc, char **argv)
316 /* goto end; */ 316 /* goto end; */
317 } 317 }
318 318
319 if (!(s_time_config.perform & 1))
320 goto next;
321 printf("Collecting connection statistics for %lld seconds\n",
322 (long long)s_time_config.maxtime);
323
324 /* Loop and time how long it takes to make connections */ 319 /* Loop and time how long it takes to make connections */
325 320 if (s_time_config.perform & 1) {
326 if (benchmark(0)) 321 printf("Collecting connection statistics for %lld seconds\n",
327 goto end; 322 (long long)s_time_config.maxtime);
328 323 if (benchmark(0))
324 goto end;
325 }
329 /* 326 /*
330 * Now loop and time connections using the same session id over and 327 * Now loop and time connections using the same session id over and
331 * over 328 * over
332 */ 329 */
333 330 if (s_time_config.perform & 2) {
334 next: 331 printf("\n\nNow timing with session id reuse.\n");
335 if (!(s_time_config.perform & 2)) 332 if (benchmark(1))
336 goto end; 333 goto end;
337 printf("\n\nNow timing with session id reuse.\n"); 334 }
338
339 if (benchmark(1))
340 goto end;
341
342 ret = 0; 335 ret = 0;
343 end: 336 end:
344 if (tm_ctx != NULL) { 337 if (tm_ctx != NULL) {