summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-01-05 10:15:36 +0000
committertb <>2024-01-05 10:15:36 +0000
commitc4e83596b3492a70dacecd0d71cf4bbf246fa5aa (patch)
tree8a1cd7f867f4bd0f2f2ace957ccab4479646f5a2 /src
parent4e9c1dd37b2c84e683b606d19f2625d47f57e083 (diff)
downloadopenbsd-c4e83596b3492a70dacecd0d71cf4bbf246fa5aa.tar.gz
openbsd-c4e83596b3492a70dacecd0d71cf4bbf246fa5aa.tar.bz2
openbsd-c4e83596b3492a70dacecd0d71cf4bbf246fa5aa.zip
Minor tweaks in EVP_read_pw_string_min()
Remove unnecessary parentheses and use a better place to break an overlong line.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/evp/evp_key.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/evp/evp_key.c b/src/lib/libcrypto/evp/evp_key.c
index 16c002fe67..d6ce373735 100644
--- a/src/lib/libcrypto/evp/evp_key.c
+++ b/src/lib/libcrypto/evp/evp_key.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_key.c,v 1.31 2024/01/05 10:14:08 tb Exp $ */ 1/* $OpenBSD: evp_key.c,v 1.32 2024/01/05 10:15:36 tb 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 *
@@ -109,7 +109,7 @@ EVP_read_pw_string_min(char *buf, int min, int len, const char *prompt,
109 if (min < 0 || len - 1 < min) 109 if (min < 0 || len - 1 < min)
110 goto err; 110 goto err;
111 111
112 if ((prompt == NULL) && (prompt_string[0] != '\0')) 112 if (prompt == NULL && prompt_string[0] != '\0')
113 prompt = prompt_string; 113 prompt = prompt_string;
114 114
115 if ((ui = UI_new()) == NULL) 115 if ((ui = UI_new()) == NULL)
@@ -117,8 +117,8 @@ EVP_read_pw_string_min(char *buf, int min, int len, const char *prompt,
117 if (UI_add_input_string(ui, prompt, 0, buf, min, len - 1) < 0) 117 if (UI_add_input_string(ui, prompt, 0, buf, min, len - 1) < 0)
118 goto err; 118 goto err;
119 if (verify) { 119 if (verify) {
120 if (UI_add_verify_string(ui, prompt, 0, buff, min, len - 1, buf) 120 if (UI_add_verify_string(ui, prompt, 0, buff, min, len - 1,
121 < 0) 121 buf) < 0)
122 goto err; 122 goto err;
123 } 123 }
124 124