]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
openac: --out is a mandatory argument.
authorTobias Brunner <tobias@strongswan.org>
Tue, 19 Apr 2011 15:26:19 +0000 (17:26 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 Apr 2011 15:35:57 +0000 (17:35 +0200)
src/openac/openac.c

index e53567511216f16c1c47ac99db7d7f3ae0d92eaf..79b493b5f2d18bbf5d93afdb90864c77a375545d 100755 (executable)
@@ -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");
        }