Добавлена возможность не указывать пароль от контейнера с сертификатом

This commit is contained in:
alashkova 2024-11-29 13:18:39 +03:00
parent 5f8438c600
commit 1ffe42a385

View file

@ -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");