add ca --domain-controller option, add secret key option to avaible.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20713 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1132,6 +1132,8 @@ crypto_available(struct crypto_available_options *opt, int argc, char **argv)
|
|||||||
type = HX509_SELECT_DIGEST;
|
type = HX509_SELECT_DIGEST;
|
||||||
else if (strcmp(opt->type_string, "public-sig") == 0)
|
else if (strcmp(opt->type_string, "public-sig") == 0)
|
||||||
type = HX509_SELECT_PUBLIC_SIG;
|
type = HX509_SELECT_PUBLIC_SIG;
|
||||||
|
else if (strcmp(opt->type_string, "secret") == 0)
|
||||||
|
type = HX509_SELECT_SECRET_ENC;
|
||||||
else
|
else
|
||||||
errx(1, "unknown type: %s", opt->type_string);
|
errx(1, "unknown type: %s", opt->type_string);
|
||||||
} else
|
} else
|
||||||
@@ -1559,6 +1561,11 @@ hxtool_ca(struct certificate_sign_options *opt, int argc, char **argv)
|
|||||||
if (ret)
|
if (ret)
|
||||||
hx509_err(context, 1, ret, "hx509_ca_tbs_set_proxy");
|
hx509_err(context, 1, ret, "hx509_ca_tbs_set_proxy");
|
||||||
}
|
}
|
||||||
|
if (opt->domain_controller_flag) {
|
||||||
|
hx509_ca_tbs_set_domaincontroller(context, tbs);
|
||||||
|
if (ret)
|
||||||
|
hx509_err(context, 1, ret, "hx509_ca_tbs_set_domaincontroller");
|
||||||
|
}
|
||||||
|
|
||||||
if (delta) {
|
if (delta) {
|
||||||
ret = hx509_ca_tbs_set_notAfter_lifetime(context, tbs, delta);
|
ret = hx509_ca_tbs_set_notAfter_lifetime(context, tbs, delta);
|
||||||
|
Reference in New Issue
Block a user