From a2755b1695e8f58c3b531a53058aba5146ea075b Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 28 Jun 2017 13:01:29 +0200 Subject: [PATCH] test/uitest.c's pem_password_cb returned 1 instead of the password length Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/3791) --- test/uitest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /* -- 2.25.1