-/* $OpenBSD: signify.c,v 1.14 2014/01/08 05:00:01 tedu Exp $ */
+/* $OpenBSD: signify.c,v 1.15 2014/01/08 07:04:29 espie Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
usage(void)
{
fprintf(stderr, "usage:"
+#ifndef VERIFYONLY
"\t%s [-n] -p pubkey -s seckey -G\n"
"\t%s [-o output] -s seckey -S input\n"
+#endif
"\t%s [-o output] -p pubkey -V input\n",
- __progname, __progname, __progname);
+#ifndef VERIFYONLY
+ __progname, __progname,
+#endif
+ __progname);
exit(1);
}
argc -= optind;
argv += optind;
+#ifdef VERIFYONLY
+ if (verb != VERIFY)
+#else
if (verb == NONE)
+#endif
usage();
#ifndef VERIFYONLY