mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-05 21:54:41 +02:00
Translate verify callback error with compat layer
This commit is contained in:
@@ -11992,7 +11992,11 @@ int DoVerifyCallback(WOLFSSL_CERT_MANAGER* cm, WOLFSSL* ssl, int ret,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef OPENSSL_COMPATIBLE_DEFAULTS
|
||||||
store->error = ret;
|
store->error = ret;
|
||||||
|
#else
|
||||||
|
store->error = GetX509Error(ret);
|
||||||
|
#endif
|
||||||
store->error_depth = args->certIdx;
|
store->error_depth = args->certIdx;
|
||||||
store->discardSessionCerts = 0;
|
store->discardSessionCerts = 0;
|
||||||
store->domain = domain;
|
store->domain = domain;
|
||||||
|
@@ -161,7 +161,7 @@ void wolfSSL_X509_STORE_CTX_trusted_stack(WOLFSSL_X509_STORE_CTX *ctx, WOLF_STAC
|
|||||||
|
|
||||||
|
|
||||||
/* Returns corresponding X509 error from internal ASN error <e> */
|
/* Returns corresponding X509 error from internal ASN error <e> */
|
||||||
static int GetX509Error(int e)
|
int GetX509Error(int e)
|
||||||
{
|
{
|
||||||
switch (e) {
|
switch (e) {
|
||||||
case ASN_BEFORE_DATE_E:
|
case ASN_BEFORE_DATE_E:
|
||||||
|
@@ -5605,6 +5605,9 @@ WOLFSSL_LOCAL int wolfSSL_StaticEphemeralKeyLoad(WOLFSSL* ssl, int keyAlgo, void
|
|||||||
WOLFSSL_LOCAL int wolfSSL_ASN1_STRING_canon(WOLFSSL_ASN1_STRING* asn_out,
|
WOLFSSL_LOCAL int wolfSSL_ASN1_STRING_canon(WOLFSSL_ASN1_STRING* asn_out,
|
||||||
const WOLFSSL_ASN1_STRING* asn_in);
|
const WOLFSSL_ASN1_STRING* asn_in);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef OPENSSL_EXTRA
|
||||||
|
WOLFSSL_LOCAL int GetX509Error(int e);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_EX_DATA) && \
|
#if defined(HAVE_EX_DATA) && \
|
||||||
|
Reference in New Issue
Block a user