From: Tobias Brunner Date: Tue, 19 Apr 2011 15:26:19 +0000 (+0200) Subject: openac: --out is a mandatory argument. X-Git-Tag: 4.5.2~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81b598ca5fc50bb54ce77cbf4b44f873d2b77dd7;p=thirdparty%2Fstrongswan.git openac: --out is a mandatory argument. --- diff --git a/src/openac/openac.c b/src/openac/openac.c index e535675112..79b493b5f2 100755 --- a/src/openac/openac.c +++ b/src/openac/openac.c @@ -491,7 +491,8 @@ int main(int argc, char **argv) notAfter = (notAfter == UNDEFINED_TIME) ? time(NULL) + validity : notAfter; /* build and parse attribute certificate */ - if (userCert != NULL && signerCert != NULL && signerKey != NULL) + if (userCert != NULL && signerCert != NULL && signerKey != NULL && + outfile != NULL) { /* read the serial number and increment it by one */ serial = read_serial(); @@ -523,7 +524,7 @@ int main(int argc, char **argv) } else { - usage("some of the mandatory parameters --usercert --cert --key " + usage("some of the mandatory parameters --usercert --cert --key --out " "are missing"); }