Fix meaning of rhizome crypto debug message

This commit is contained in:
Jeremy Lakeman 2013-06-27 16:50:58 +09:30
parent e4efbf3c8a
commit ef583bdfaa

View File

@ -377,10 +377,9 @@ int rhizome_verify_bundle_privatekey(rhizome_manifest *m,
m->haveSecret=0;
RETURN(-1);
}
if (m&&sk==m->cryptoSignSecret&&pkin==m->cryptoSignPublic) {
if (config.debug.rhizome)
DEBUGF("We have the private key for this bundle.");
if (m&&sk==m->cryptoSignSecret&&pkin==m->cryptoSignPublic) {
DEBUGF("Set haveSecret=%d in manifest",EXISTING_BUNDLE_ID);
m->haveSecret=EXISTING_BUNDLE_ID;
}
RETURN(0);