summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/enc.c
diff options
context:
space:
mode:
authordoug <>2014-09-01 20:54:37 +0000
committerdoug <>2014-09-01 20:54:37 +0000
commita7ac30e7ed8aea1757edfca3d7d31bbca2d3e006 (patch)
tree97288f64885dc93f5729da15f1f84bf81947bf85 /src/usr.bin/openssl/enc.c
parent3a73303a1e6380909be747996eb639ebc395fab6 (diff)
downloadopenbsd-a7ac30e7ed8aea1757edfca3d7d31bbca2d3e006.tar.gz
openbsd-a7ac30e7ed8aea1757edfca3d7d31bbca2d3e006.tar.bz2
openbsd-a7ac30e7ed8aea1757edfca3d7d31bbca2d3e006.zip
Enable -Wshadow in openssl(1) and fix a few shadow warnings.
ok jsing@
Diffstat (limited to 'src/usr.bin/openssl/enc.c')
-rw-r--r--src/usr.bin/openssl/enc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr.bin/openssl/enc.c b/src/usr.bin/openssl/enc.c
index eff49818f9..1a3b8f21b3 100644
--- a/src/usr.bin/openssl/enc.c
+++ b/src/usr.bin/openssl/enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: enc.c,v 1.1 2014/08/26 17:47:24 jsing Exp $ */ 1/* $OpenBSD: enc.c,v 1.2 2014/09/01 20:54:37 doug 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 *
@@ -374,12 +374,12 @@ enc_main(int argc, char **argv)
374 if ((str == NULL) && (cipher != NULL) && (hkey == NULL)) { 374 if ((str == NULL) && (cipher != NULL) && (hkey == NULL)) {
375 for (;;) { 375 for (;;) {
376 char buf[200]; 376 char buf[200];
377 int ret; 377 int retval;
378 378
379 ret = snprintf(buf, sizeof buf, "enter %s %s password:", 379 retval = snprintf(buf, sizeof buf, "enter %s %s password:",
380 OBJ_nid2ln(EVP_CIPHER_nid(cipher)), 380 OBJ_nid2ln(EVP_CIPHER_nid(cipher)),
381 (enc) ? "encryption" : "decryption"); 381 (enc) ? "encryption" : "decryption");
382 if (ret == -1 || ret >= sizeof buf) { 382 if ((size_t)retval >= sizeof buf) {
383 BIO_printf(bio_err, "Password prompt too long\n"); 383 BIO_printf(bio_err, "Password prompt too long\n");
384 goto end; 384 goto end;
385 } 385 }