version 1.34, 2021/07/20 12:04:53 |
version 1.35, 2021/07/24 13:21:04 |
|
|
f = NCONF_get_string(conf, ca_config.section, UTF8_IN); |
f = NCONF_get_string(conf, ca_config.section, UTF8_IN); |
if (f == NULL) |
if (f == NULL) |
ERR_clear_error(); |
ERR_clear_error(); |
else if (!strcmp(f, "yes")) |
else if (strcmp(f, "yes") == 0) |
ca_config.chtype = MBSTRING_UTF8; |
ca_config.chtype = MBSTRING_UTF8; |
} |
} |
db_attr.unique_subject = 1; |
db_attr.unique_subject = 1; |
|
|
lookup_fail(ca_config.section, ENV_DEFAULT_MD); |
lookup_fail(ca_config.section, ENV_DEFAULT_MD); |
goto err; |
goto err; |
} |
} |
if (!strcmp(ca_config.md, "default")) { |
if (strcmp(ca_config.md, "default") == 0) { |
int def_nid; |
int def_nid; |
if (EVP_PKEY_get_default_digest_nid(pkey, &def_nid) <= 0) { |
if (EVP_PKEY_get_default_digest_nid(pkey, &def_nid) <= 0) { |
BIO_puts(bio_err, "no default digest\n"); |
BIO_puts(bio_err, "no default digest\n"); |
|
|
} |
} |
last2 = -1; |
last2 = -1; |
|
|
again2: |
again2: |
j = X509_NAME_get_index_by_OBJ(CAname, obj, |
j = X509_NAME_get_index_by_OBJ(CAname, obj, |
last2); |
last2); |
if ((j < 0) && (last2 == -1)) { |
if ((j < 0) && (last2 == -1)) { |
|
|
|
|
case REV_CRL_REASON: |
case REV_CRL_REASON: |
for (i = 0; i < 8; i++) { |
for (i = 0; i < 8; i++) { |
if (!strcasecmp(rev_arg, crl_reasons[i])) { |
if (strcasecmp(rev_arg, crl_reasons[i]) == 0) { |
reason = crl_reasons[i]; |
reason = crl_reasons[i]; |
break; |
break; |
} |
} |
|
|
} |
} |
if (reason_str != NULL) { |
if (reason_str != NULL) { |
for (i = 0; i < NUM_REASONS; i++) { |
for (i = 0; i < NUM_REASONS; i++) { |
if (!strcasecmp(reason_str, crl_reasons[i])) { |
if (strcasecmp(reason_str, crl_reasons[i]) == 0) { |
reason_code = i; |
reason_code = i; |
break; |
break; |
} |
} |