Don't use C++ reserved work "explicit".
authorDr. Stephen Henson <steve@openssl.org>
Fri, 1 Oct 2004 11:21:53 +0000 (11:21 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 1 Oct 2004 11:21:53 +0000 (11:21 +0000)
crypto/x509/x509_vfy.c
crypto/x509/x509_vfy.h

index 4d9b53e997aa592dd5172853f58dbdffaa1b460b..a2c884e49799392b11798c3edecd27ab6e715543 100644 (file)
@@ -747,7 +747,7 @@ static int cert_crl(X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x)
 static int check_policy(X509_STORE_CTX *ctx)
        {
        int ret;
-       ret = X509_policy_check(&ctx->tree, &ctx->explicit, ctx->chain,
+       ret = X509_policy_check(&ctx->tree, &ctx->explicit_policy, ctx->chain,
                                ctx->param->policies, ctx->param->flags);
        if (ret == 0)
                {
@@ -1246,7 +1246,7 @@ int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509,
        ctx->valid=0;
        ctx->chain=NULL;
        ctx->error=0;
-       ctx->explicit=0;
+       ctx->explicit_policy=0;
        ctx->error_depth=0;
        ctx->current_cert=NULL;
        ctx->current_issuer=NULL;
@@ -1398,7 +1398,7 @@ X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx)
 
 int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx)
        {
-       return ctx->explicit;
+       return ctx->explicit_policy;
        }
 
 int X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name)
index 66e97b7a386871ea2baa3ff591775e9613e76780..e1bd21b802f402e438be9b0075ab1d34b272a213 100644 (file)
@@ -254,7 +254,7 @@ struct x509_store_ctx_st      /* X509_STORE_CTX */
        STACK_OF(X509) *chain;          /* chain of X509s - built up and trusted */
        X509_POLICY_TREE *tree; /* Valid policy tree */
 
-       int explicit;           /* Require explicit policy value */
+       int explicit_policy;    /* Require explicit policy value */
 
        /* When something goes wrong, this is why */
        int error_depth;