[shibboleth-sp2] 93/119: Add quiet option to suppress some output.
Ferenc Wágner
wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
wferi-guest pushed a commit to annotated tag 1.3.1
in repository shibboleth-sp2.
commit 03cc9454c863281f08494e9661b29a74a5dc738a
Author: Scott Cantor <cantor.2 at osu.edu>
Date: Wed Oct 24 17:56:13 2007 +0000
Add quiet option to suppress some output.
---
siterefresh/siterefresh.cpp | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/siterefresh/siterefresh.cpp b/siterefresh/siterefresh.cpp
index 9b3a840..834cb34 100644
--- a/siterefresh/siterefresh.cpp
+++ b/siterefresh/siterefresh.cpp
@@ -163,7 +163,7 @@ int main(int argc,char* argv[])
{
int ret=0;
SAMLConfig& conf=SAMLConfig::getConfig();
- bool verify=true;
+ bool verify=true,quiet=false;
char* url_param=NULL;
char* cert_param=NULL;
char* out_param=NULL;
@@ -178,6 +178,8 @@ int main(int argc,char* argv[])
url_param=argv[++i];
else if (!strcmp(argv[i],"--noverify"))
verify=false;
+ else if (!strcmp(argv[i],"--quiet") || !strcmp(argv[i],"-q"))
+ quiet=true;
else if (!strcmp(argv[i],"--cert") && i+1<argc)
cert_param=argv[++i];
else if (!strcmp(argv[i],"--out") && i+1<argc)
@@ -195,7 +197,8 @@ int main(int argc,char* argv[])
"\t[--out <pathname to copy data to>]" << endl <<
"\t[--schema <schema path>]" << endl <<
"\t[--rootns <root element XML namespace>]" << endl <<
- "\t[--rootname <root element name>]" << endl;
+ "\t[--rootname <root element name>]" << endl <<
+ "\t[--quiet]" << endl;
return -100;
}
@@ -264,11 +267,13 @@ int main(int argc,char* argv[])
}
}
else if (rootSig) {
- log.warn("verification of signer disabled, make sure you trust the source of this file!");
+ if (!quiet)
+ log.warn("verification of signer disabled, make sure you trust the source of this file!");
verifySignature(doc,rootSig,cert_param);
}
else {
- log.warn("verification disabled, and file is unsigned!");
+ if (!quiet)
+ log.warn("verification disabled, and file is unsigned!");
}
// Verify all signatures.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git
More information about the Pkg-shibboleth-devel
mailing list