Commit 93b0d8d2 authored by Baligh GUESMI's avatar Baligh GUESMI Committed by Sevan Janiyan
Browse files

Fix sslkeypass not working #297 (#319)

This patch is about passphrase support in the openssl, which is contain
a problem in the password callback return value. This function must
return the length of the password to the calling function.
Thanks to @miglio
Signed-off-by: default avatarBaligh GUESMI <>
parent b3fa1bfa
......@@ -167,7 +167,7 @@ _openssl_env_init(openssl_env *env, char *engine, int server) {
static int _openssl_passwd(char *buf, int size, int rwflag, void *ud) {
strlcpy(buf, _options.sslkeypass, size);
return 0;
return strlen(buf);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment