Lines Matching refs:ctx
72 static int MS_CALLBACK cb(int ok, X509_STORE_CTX *ctx);
73 static int check(X509_STORE *ctx, char *file, STACK_OF(X509) *uchain, STACK_OF(X509) *tchain, int purpose, ENGINE *e);
239 static int check(X509_STORE *ctx, char *file, STACK_OF(X509) *uchain, STACK_OF(X509) *tchain, int purpose, ENGINE *e)
256 X509_STORE_set_flags(ctx, vflags);
257 if(!X509_STORE_CTX_init(csc,ctx,x,uchain))
327 static int MS_CALLBACK cb(int ok, X509_STORE_CTX *ctx)
333 if (ctx->current_cert)
336 X509_get_subject_name(ctx->current_cert),buf,
340 printf("error %d at %d depth lookup:%s\n",ctx->error,
341 ctx->error_depth,
342 X509_verify_cert_error_string(ctx->error));
343 if (ctx->error == X509_V_ERR_CERT_HAS_EXPIRED) ok=1;
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;
359 if (ctx->error == X509_V_ERR_NO_EXPLICIT_POLICY)
360 policies_print(NULL, ctx);
364 if ((ctx->error == X509_V_OK) && (ok == 2))
365 policies_print(NULL, ctx);