Добавлена возможность не указывать пароль от контейнера с сертификатом
This commit is contained in:
parent
5f8438c600
commit
1ffe42a385
1 changed files with 4 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue