mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 02:22:21 +01:00
fix indent
This commit is contained in:
@@ -440,26 +440,26 @@ static int X509StoreVerifyCert(WOLFSSL_X509_STORE_CTX* ctx)
|
||||
WOLFSSL_SUCCESS : ret;
|
||||
#endif
|
||||
}
|
||||
#if !defined(NO_ASN_TIME) && defined(OPENSSL_ALL)
|
||||
if (ret != WC_NO_ERR_TRACE(ASN_BEFORE_DATE_E) &&
|
||||
ret != WC_NO_ERR_TRACE(ASN_AFTER_DATE_E)) {
|
||||
/* With OpenSSL, we need to check the certificate's date
|
||||
* after certificate manager verification,
|
||||
* as it skips date validation when other errors are present.
|
||||
*/
|
||||
ret = X509StoreVerifyCertDate(ctx, ret);
|
||||
SetupStoreCtxError(ctx, ret);
|
||||
ret = ret == WOLFSSL_SUCCESS ? 1 : 0;
|
||||
if (ctx->store->verify_cb) {
|
||||
if (ctx->store->verify_cb(ret, ctx) == 1) {
|
||||
ret = WOLFSSL_SUCCESS;
|
||||
}
|
||||
else {
|
||||
ret = -1;
|
||||
}
|
||||
#if !defined(NO_ASN_TIME) && defined(OPENSSL_ALL)
|
||||
if (ret != WC_NO_ERR_TRACE(ASN_BEFORE_DATE_E) &&
|
||||
ret != WC_NO_ERR_TRACE(ASN_AFTER_DATE_E)) {
|
||||
/* With OpenSSL, we need to check the certificate's date
|
||||
* after certificate manager verification,
|
||||
* as it skips date validation when other errors are present.
|
||||
*/
|
||||
ret = X509StoreVerifyCertDate(ctx, ret);
|
||||
SetupStoreCtxError(ctx, ret);
|
||||
ret = ret == WOLFSSL_SUCCESS ? 1 : 0;
|
||||
if (ctx->store->verify_cb) {
|
||||
if (ctx->store->verify_cb(ret, ctx) == 1) {
|
||||
ret = WOLFSSL_SUCCESS;
|
||||
}
|
||||
else {
|
||||
ret = -1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user