ssl_cert.c (76866) | ssl_cert.c (89837) |
---|---|
1/*! \file ssl/ssl_cert.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 447 unchanged lines hidden (view full) --- 456 * or vice versa. 457 */ 458 459 if(s->server) i = X509_PURPOSE_SSL_CLIENT; 460 else i = X509_PURPOSE_SSL_SERVER; 461 462 X509_STORE_CTX_purpose_inherit(&ctx, i, s->purpose, s->trust); 463 | 1/*! \file ssl/ssl_cert.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 447 unchanged lines hidden (view full) --- 456 * or vice versa. 457 */ 458 459 if(s->server) i = X509_PURPOSE_SSL_CLIENT; 460 else i = X509_PURPOSE_SSL_SERVER; 461 462 X509_STORE_CTX_purpose_inherit(&ctx, i, s->purpose, s->trust); 463 |
464 if (s->verify_callback) 465 X509_STORE_CTX_set_verify_cb(&ctx, s->verify_callback); 466 |
|
464 if (s->ctx->app_verify_callback != NULL) 465 i=s->ctx->app_verify_callback(&ctx); /* should pass app_verify_arg */ 466 else 467 { 468#ifndef NO_X509_VERIFY 469 i=X509_verify_cert(&ctx); 470#else 471 i=0; --- 286 unchanged lines hidden --- | 467 if (s->ctx->app_verify_callback != NULL) 468 i=s->ctx->app_verify_callback(&ctx); /* should pass app_verify_arg */ 469 else 470 { 471#ifndef NO_X509_VERIFY 472 i=X509_verify_cert(&ctx); 473#else 474 i=0; --- 286 unchanged lines hidden --- |