X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwgtpkg-sign.c;h=68f3d5c341df44f184c0280621a1d46c17b94c2e;hb=c643fe4639e923b0a88e1a5d9df691418b540056;hp=be618a7f39357fe6e276c32e51122d58e208f721;hpb=e2de563d1ecb4585ce68521bd42f3ef45ac79f16;p=src%2Fapp-framework-main.git diff --git a/src/wgtpkg-sign.c b/src/wgtpkg-sign.c index be618a7..68f3d5c 100644 --- a/src/wgtpkg-sign.c +++ b/src/wgtpkg-sign.c @@ -1,5 +1,7 @@ /* - Copyright 2015 IoT.bzh + Copyright 2015, 2016, 2017 IoT.bzh + + author: José Bollo Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,13 +23,17 @@ #include #include #include -#include #include #include #include +#include + #include "verbose.h" -#include "wgtpkg.h" +#include "wgtpkg-files.h" +#include "wgtpkg-workdir.h" +#include "wgtpkg-digsig.h" +#include "wgtpkg-xmlsec.h" #if !defined(MAXCERT) #define MAXCERT 20 @@ -57,7 +63,7 @@ static unsigned int get_number(const char *value) static void usage() { printf( - "usage: %s [-f] [-k keyfile] [-c certfile]... [-o wgtfile] [-d number | -a] directory\n" + "usage: %s [-f] [-k keyfile] [-c certfile]... [-d number | -a] directory\n" "\n" " -k keyfile the private key to use for author signing\n" " -c certfile the certificate(s) to use for author signing\n" @@ -91,7 +97,7 @@ int main(int ac, char **av) char *keyfile, *certfiles[MAXCERT+1], *directory, **x; struct stat s; - openlog(appname, LOG_PERROR, LOG_USER); + LOGUSER(appname); force = ncert = author = 0; number = UINT_MAX;