mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-07 19:47:08 +00:00
ssl: Improve error message in cert chain verification
It contains the same information as before, but should be more readable.
This commit is contained in:
parent
7e8ba10779
commit
b34169feb6
@ -424,8 +424,8 @@ static int openssl_verify(int preverify_ok, X509_STORE_CTX *ctx)
|
||||
err = X509_STORE_CTX_get_error(ctx);
|
||||
if (depth > 0) {
|
||||
if (!preverify_ok) {
|
||||
spice_warning("openssl verify:num=%d:%s:depth=%d:%s", err,
|
||||
X509_verify_cert_error_string(err), depth, buf);
|
||||
spice_warning("Error in certificate chain verification: %s (num=%d:depth%d:%s)",
|
||||
X509_verify_cert_error_string(err), err, depth, buf);
|
||||
v->all_preverify_ok = 0;
|
||||
|
||||
/* if certificate verification failed, we can still authorize the server */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user