summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/enc.c
diff options
context:
space:
mode:
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 }