Loading apps/verify.c +27 −24 Original line number Diff line number Diff line Loading @@ -263,16 +263,17 @@ static int check(X509_STORE *ctx, char *file, x = load_cert(file, FORMAT_PEM, NULL, e, "certificate file"); if (x == NULL) goto end; printf("%s: ", (file == NULL) ? "stdin" : file); csc = X509_STORE_CTX_new(); if (csc == NULL) { ERR_print_errors(bio_err); printf("error %s: X.509 store context allocation failed\n", (file == NULL) ? "stdin" : file); goto end; } X509_STORE_set_flags(ctx, vflags); if (!X509_STORE_CTX_init(csc, ctx, x, uchain)) { ERR_print_errors(bio_err); printf("error %s: X.509 store context initialization failed\n", (file == NULL) ? "stdin" : file); goto end; } if (tchain) Loading @@ -281,7 +282,7 @@ static int check(X509_STORE *ctx, char *file, X509_STORE_CTX_set0_crls(csc, crls); i = X509_verify_cert(csc); if (i > 0) { printf("OK\n"); printf("%s: OK\n", (file == NULL) ? "stdin" : file); ret = 1; if (show_chain) { int j; Loading @@ -301,6 +302,8 @@ static int check(X509_STORE *ctx, char *file, } sk_X509_pop_free(chain, X509_free); } } else { printf("error %s: verification failed\n", (file == NULL) ? "stdin" : file); } X509_STORE_CTX_free(csc); Loading Loading
apps/verify.c +27 −24 Original line number Diff line number Diff line Loading @@ -263,16 +263,17 @@ static int check(X509_STORE *ctx, char *file, x = load_cert(file, FORMAT_PEM, NULL, e, "certificate file"); if (x == NULL) goto end; printf("%s: ", (file == NULL) ? "stdin" : file); csc = X509_STORE_CTX_new(); if (csc == NULL) { ERR_print_errors(bio_err); printf("error %s: X.509 store context allocation failed\n", (file == NULL) ? "stdin" : file); goto end; } X509_STORE_set_flags(ctx, vflags); if (!X509_STORE_CTX_init(csc, ctx, x, uchain)) { ERR_print_errors(bio_err); printf("error %s: X.509 store context initialization failed\n", (file == NULL) ? "stdin" : file); goto end; } if (tchain) Loading @@ -281,7 +282,7 @@ static int check(X509_STORE *ctx, char *file, X509_STORE_CTX_set0_crls(csc, crls); i = X509_verify_cert(csc); if (i > 0) { printf("OK\n"); printf("%s: OK\n", (file == NULL) ? "stdin" : file); ret = 1; if (show_chain) { int j; Loading @@ -301,6 +302,8 @@ static int check(X509_STORE *ctx, char *file, } sk_X509_pop_free(chain, X509_free); } } else { printf("error %s: verification failed\n", (file == NULL) ? "stdin" : file); } X509_STORE_CTX_free(csc); Loading