projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e023ff
)
enable key verification only if ZYPP_CHECKSIG env var is set
author
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Wed, 19 Apr 2006 09:38:34 +0000
(09:38 +0000)
committer
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Wed, 19 Apr 2006 09:38:34 +0000
(09:38 +0000)
zypp/KeyRing.cc
patch
|
blob
|
history
diff --git
a/zypp/KeyRing.cc
b/zypp/KeyRing.cc
index
918f1cd
..
ca62a90
100644
(file)
--- a/
zypp/KeyRing.cc
+++ b/
zypp/KeyRing.cc
@@
-225,6
+225,12
@@
namespace zypp
bool KeyRing::Impl::verifyFileSignatureWorkflow( const Pathname &file, const Pathname &signature)
{
+ if ( ! getenv("ZYPP_CHECKSIG") )
+ {
+ MIL << "Digital signature check disabled. Accepting source." << std::endl;
+ return true;
+ }
+
callback::SendReport<KeyRingReport> report;
callback::SendReport<KeyRingSignals> emitSignal;
MIL << "Going to verify signature for " << file << " with " << signature << std::endl;