Good feedback about adding wolfCrypt error codes to .cs layer. Partially added useful ones.

This commit is contained in:
David Garske
2025-06-20 09:41:35 -07:00
parent 9b50708741
commit 4c6279c6c7
2 changed files with 24 additions and 8 deletions

View File

@@ -60,9 +60,7 @@ public class wolfSSL_TLS_Client
/* X509_STORE_CTX_get_error API can be enabled with
* OPENSSL_EXTRA_X509_SMALL or WOLFSSL_EXTRA */
int error = wolfssl.X509_STORE_CTX_get_error(x509_ctx);
const int ASN_BEFORE_DATE_E = -150; /* ASN date error, current date before */
if (error == ASN_BEFORE_DATE_E) {
if (error == wolfcrypt.ASN_BEFORE_DATE_E) {
verify = 1; /* override error */
}