From: DaanDeMeyer Date: Tue, 23 Dec 2025 16:24:01 +0000 (+0100) Subject: repart: Fix OpenSSL UI X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=875b568f56e3a8a23edd9f20463c9019ec098900;p=thirdparty%2Fsystemd.git repart: Fix OpenSSL UI Follow up for 0158eabb01d19b6901b5c3af7d8863b73e93dc73 --- diff --git a/src/repart/repart.c b/src/repart/repart.c index 8768375d475..e3a6e7efafe 100644 --- a/src/repart/repart.c +++ b/src/repart/repart.c @@ -538,6 +538,7 @@ struct Context { #if HAVE_OPENSSL X509 *certificate; + OpenSSLAskPasswordUI *ui; EVP_PKEY *private_key; #endif @@ -948,6 +949,7 @@ static Context* context_free(Context *context) { #if HAVE_OPENSSL X509_free(context->certificate); + openssl_ask_password_ui_free(context->ui); EVP_PKEY_free(context->private_key); #endif @@ -8913,7 +8915,7 @@ static int context_load_keys(Context *context) { .hup_fd = -EBADF, }, &context->private_key, - /* ret_user_interface= */ NULL); + &context->ui); if (r < 0) return log_error_errno(r, "Failed to load private key from %s: %m", arg_private_key); }