SUPPORT-8714. Добавлена возможность указывать несколько сертификатов ЕСИА
This commit is contained in:
parent
a6b1c50325
commit
5ac3357c80
6 changed files with 52 additions and 10 deletions
|
|
@ -499,6 +499,10 @@ get_verify_error(char** verify_error)
|
|||
|
||||
size_t size = strlen(err_string) + 4 /*error code*/ + 1 /*terminating null*/;
|
||||
|
||||
if (*verify_error != NULL) {
|
||||
free(*verify_error); // в ответе отдаем последнюю ошибку
|
||||
}
|
||||
|
||||
*verify_error = malloc(size);
|
||||
if (*verify_error == NULL) {
|
||||
LOG_ERROR("get_verify_error failed. Could not allocate memory for error string "
|
||||
|
|
@ -593,7 +597,8 @@ cryptopro_verify(const str_t* cert_thumbprint, const str_t* alg, const str_t* da
|
|||
if (*verify_error == NULL) {
|
||||
goto exit;
|
||||
}
|
||||
LOG_WARN("%s", *verify_error);
|
||||
LOG_WARN("%s, cert_thumbprint: %.*s", *verify_error,
|
||||
(int) cert_thumbprint->len, cert_thumbprint->data);
|
||||
}
|
||||
|
||||
rc = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue