]> git.ipfire.org Git - thirdparty/curl.git/commit
curl_sspi: support more revocation error names in error messages
authorJay Satiro <raysatiro@yahoo.com>
Wed, 1 Nov 2023 07:18:53 +0000 (03:18 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 3 Nov 2023 07:50:59 +0000 (03:50 -0400)
commit7e828fe503ed1966252d68cedcdb7d92adb7807d
tree8d0aa1f2fbba61c2f9cde516339e327473f3bc58
parent4855debd8a2c1cbd0b0dbbb8319b1743c4644873
curl_sspi: support more revocation error names in error messages

- Add these revocation errors to sspi error list:
  CRYPT_E_NO_REVOCATION_DLL, CRYPT_E_NO_REVOCATION_CHECK,
  CRYPT_E_REVOCATION_OFFLINE and CRYPT_E_NOT_IN_REVOCATION_DATABASE.

Prior to this change those error codes were not matched to their macro
name and instead shown as "unknown error".

Before:

schannel: next InitializeSecurityContext failed:
Unknown error (0x80092013) - The revocation function was
unable to check revocation because the revocation server was offline.

After:

schannel: next InitializeSecurityContext failed:
CRYPT_E_REVOCATION_OFFLINE (0x80092013) - The revocation function was
unable to check revocation because the revocation server was offline.

Bug: https://github.com/curl/curl/issues/12239
Reported-by: Niracler Li
Closes https://github.com/curl/curl/pull/12241
lib/curl_sspi.h
lib/strerror.c