* second argument.
             */
            set_default_rights(xs, rights);
        }
    }
    return ok;
}

static int my_X509_verify_cert(X509_STORE_CTX *ctx,
                               YOUR_RIGHTS *needed_rights)
{
    int ok;
    int (*save_verify_cb)(int ok,X509_STORE_CTX *ctx) =
        X509_STORE_CTX_get_verify_cb(ctx);
    YOUR_RIGHTS rights;

    X509_STORE_CTX_set_verify_cb(ctx, verify_callback);
    X509_STORE_CTX_set_ex_data(ctx, get_proxy_auth_ex_data_idx(ctx),
                         