From 1ffe42a385595dc36b86760c4c4959e84c53b37b Mon Sep 17 00:00:00 2001 From: alashkova Date: Fri, 29 Nov 2024 13:18:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D1=8C=20=D0=BD=D0=B5=20=D1=83=D0=BA=D0=B0=D0=B7?= =?UTF-8?q?=D1=8B=D0=B2=D0=B0=D1=82=D1=8C=20=D0=BF=D0=B0=D1=80=D0=BE=D0=BB?= =?UTF-8?q?=D1=8C=20=D0=BE=D1=82=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B5=D0=B9?= =?UTF-8?q?=D0=BD=D0=B5=D1=80=D0=B0=20=D1=81=20=D1=81=D0=B5=D1=80=D1=82?= =?UTF-8?q?=D0=B8=D1=84=D0=B8=D0=BA=D0=B0=D1=82=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/cryptopro.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/cryptopro.c b/src/utils/cryptopro.c index e7a8de1..d15bdd3 100644 --- a/src/utils/cryptopro.c +++ b/src/utils/cryptopro.c @@ -383,8 +383,10 @@ get_signer_cert(const cryptopro_context_t *ctx, HCERTSTORE hStoreHandle) goto error; } - if (set_password(cert_ctx, ctx->password)) { - goto error; + if (!str_t_is_null(*ctx->password)) { + if (set_password(cert_ctx, ctx->password)) { + goto error; + } } LOG_DEBUG("The signer's certificate was found");