Deleted Added
full compact
ts_rsp_verify.c (291719) ts_rsp_verify.c (295009)
1/* crypto/ts/ts_resp_verify.c */
2/*
3 * Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL project
4 * 2002.
5 */
6/* ====================================================================
7 * Copyright (c) 2006 The OpenSSL Project. All rights reserved.
8 *

--- 241 unchanged lines hidden (view full) ---

250 X509 *signer, STACK_OF(X509) **chain)
251{
252 X509_STORE_CTX cert_ctx;
253 int i;
254 int ret = 1;
255
256 /* chain is an out argument. */
257 *chain = NULL;
1/* crypto/ts/ts_resp_verify.c */
2/*
3 * Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL project
4 * 2002.
5 */
6/* ====================================================================
7 * Copyright (c) 2006 The OpenSSL Project. All rights reserved.
8 *

--- 241 unchanged lines hidden (view full) ---

250 X509 *signer, STACK_OF(X509) **chain)
251{
252 X509_STORE_CTX cert_ctx;
253 int i;
254 int ret = 1;
255
256 /* chain is an out argument. */
257 *chain = NULL;
258 X509_STORE_CTX_init(&cert_ctx, store, signer, untrusted);
258 if (!X509_STORE_CTX_init(&cert_ctx, store, signer, untrusted))
259 return 0;
259 X509_STORE_CTX_set_purpose(&cert_ctx, X509_PURPOSE_TIMESTAMP_SIGN);
260 i = X509_verify_cert(&cert_ctx);
261 if (i <= 0) {
262 int j = X509_STORE_CTX_get_error(&cert_ctx);
263 TSerr(TS_F_TS_VERIFY_CERT, TS_R_CERTIFICATE_VERIFY_ERROR);
264 ERR_add_error_data(2, "Verify error:",
265 X509_verify_cert_error_string(j));
266 ret = 0;

--- 470 unchanged lines hidden ---
260 X509_STORE_CTX_set_purpose(&cert_ctx, X509_PURPOSE_TIMESTAMP_SIGN);
261 i = X509_verify_cert(&cert_ctx);
262 if (i <= 0) {
263 int j = X509_STORE_CTX_get_error(&cert_ctx);
264 TSerr(TS_F_TS_VERIFY_CERT, TS_R_CERTIFICATE_VERIFY_ERROR);
265 ERR_add_error_data(2, "Verify error:",
266 X509_verify_cert_error_string(j));
267 ret = 0;

--- 470 unchanged lines hidden ---