verify_cb.diff

Ippei Obayashi, 02/25/2011 12:09 AM

Download (662 Bytes)

View differences:

ext/openssl/ossl.c
217 217
	    args.proc = proc;
218 218
	    args.preverify_ok = ok ? Qtrue : Qfalse;
219 219
	    args.store_ctx = rctx;
220
	    ret = rb_ensure(ossl_call_verify_cb_proc, (VALUE)&args,
221
			    ossl_x509stctx_clear_ptr, rctx);
220
	    ret = rb_protect((VALUE(*)(VALUE))ossl_call_verify_cb_proc,
221
			     (VALUE)&args, &state);
222
	    ossl_x509stctx_clear_ptr(rctx);
222 223
	}
223
	if (ret == Qtrue) {
224
	if (ret == Qtrue && !state) {
224 225
	    X509_STORE_CTX_set_error(ctx, X509_V_OK);
225 226
	    ok = 1;
226 227
	}