Lines Matching refs:ok
72 static int MS_CALLBACK cb(int ok, X509_STORE_CTX *ctx);
327 static int MS_CALLBACK cb(int ok, X509_STORE_CTX *ctx)
331 if (!ok)
343 if (ctx->error == X509_V_ERR_CERT_HAS_EXPIRED) ok=1;
345 * ok if they are self signed. But we should still warn
348 if (ctx->error == X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT) ok=1;
350 if (ctx->error == X509_V_ERR_INVALID_CA) ok=1;
351 if (ctx->error == X509_V_ERR_INVALID_NON_CA) ok=1;
352 if (ctx->error == X509_V_ERR_PATH_LENGTH_EXCEEDED) ok=1;
353 if (ctx->error == X509_V_ERR_INVALID_PURPOSE) ok=1;
354 if (ctx->error == X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT) ok=1;
355 if (ctx->error == X509_V_ERR_CRL_HAS_EXPIRED) ok=1;
356 if (ctx->error == X509_V_ERR_CRL_NOT_YET_VALID) ok=1;
357 if (ctx->error == X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION) ok=1;
361 return ok;
364 if ((ctx->error == X509_V_OK) && (ok == 2))
368 return(ok);