From f1157b67d76a0513e01597db4f0540c9d94c7f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 14 Jul 2008 13:43:50 +0000 Subject: [PATCH] can't do --self-signed and --request at the same time. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23345 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/hxtool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/hx509/hxtool.c b/lib/hx509/hxtool.c index 389d4a41a..f10b1deba 100644 --- a/lib/hx509/hxtool.c +++ b/lib/hx509/hxtool.c @@ -1683,6 +1683,9 @@ hxtool_ca(struct certificate_sign_options *opt, int argc, char **argv) if (opt->generate_key_string == NULL && opt->ca_private_key_string == NULL) errx(1, "no signing private key"); + + if (opt->req_string) + errx(1, "can't be self-signing and have a request at the same time"); } else errx(1, "missing ca key");