summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-06-28 13:01:29 +0200
committerRichard Levitte <levitte@openssl.org>2017-06-28 14:24:28 +0200
commita2755b1695e8f58c3b531a53058aba5146ea075b (patch)
treef91cc52c8551abc2fd80daf6e8c4869131cdc3e8
parent3816be5d4a6a1f17dc4b7d398c42398c48e62e1a (diff)
downloadopenssl-new-a2755b1695e8f58c3b531a53058aba5146ea075b.tar.gz
test/uitest.c's pem_password_cb returned 1 instead of the password length
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3791)
-rw-r--r--test/uitest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/uitest.c b/test/uitest.c
index 68b4b8cbd9..469e2304f8 100644
--- a/test/uitest.c
+++ b/test/uitest.c
@@ -24,7 +24,7 @@ char *default_config_file = NULL;
static int test_pem_password_cb(char *buf, int size, int rwflag, void *userdata)
{
OPENSSL_strlcpy(buf, (char *)userdata, (size_t)size);
- return 1;
+ return strlen(buf);
}
/*