diff options
Diffstat (limited to 'src/usr.bin/openssl/apps.c')
-rw-r--r-- | src/usr.bin/openssl/apps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr.bin/openssl/apps.c b/src/usr.bin/openssl/apps.c index 3803cc3bc6..acd95abc7f 100644 --- a/src/usr.bin/openssl/apps.c +++ b/src/usr.bin/openssl/apps.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: apps.c,v 1.33 2015/07/21 03:47:17 bcook Exp $ */ | 1 | /* $OpenBSD: apps.c,v 1.34 2015/09/10 16:01:06 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -431,7 +431,7 @@ password_callback(char *buf, int bufsiz, int verify, void *arg) | |||
431 | UI_ctrl(ui, UI_CTRL_IS_REDOABLE, 0, 0, 0)); | 431 | UI_ctrl(ui, UI_CTRL_IS_REDOABLE, 0, 0, 0)); |
432 | 432 | ||
433 | if (buff) { | 433 | if (buff) { |
434 | OPENSSL_cleanse(buff, (unsigned int) bufsiz); | 434 | explicit_bzero(buff, (unsigned int) bufsiz); |
435 | free(buff); | 435 | free(buff); |
436 | } | 436 | } |
437 | if (ok >= 0) | 437 | if (ok >= 0) |
@@ -439,12 +439,12 @@ password_callback(char *buf, int bufsiz, int verify, void *arg) | |||
439 | if (ok == -1) { | 439 | if (ok == -1) { |
440 | BIO_printf(bio_err, "User interface error\n"); | 440 | BIO_printf(bio_err, "User interface error\n"); |
441 | ERR_print_errors(bio_err); | 441 | ERR_print_errors(bio_err); |
442 | OPENSSL_cleanse(buf, (unsigned int) bufsiz); | 442 | explicit_bzero(buf, (unsigned int) bufsiz); |
443 | res = 0; | 443 | res = 0; |
444 | } | 444 | } |
445 | if (ok == -2) { | 445 | if (ok == -2) { |
446 | BIO_printf(bio_err, "aborted!\n"); | 446 | BIO_printf(bio_err, "aborted!\n"); |
447 | OPENSSL_cleanse(buf, (unsigned int) bufsiz); | 447 | explicit_bzero(buf, (unsigned int) bufsiz); |
448 | res = 0; | 448 | res = 0; |
449 | } | 449 | } |
450 | UI_free(ui); | 450 | UI_free(ui); |