[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] don"t warn when private_decrypt_hybrid fails
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common
Modified Files:
crypto.c
Log Message:
don't warn when private_decrypt_hybrid fails
Index: crypto.c
===================================================================
RCS file: /home/or/cvsroot/src/common/crypto.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- crypto.c 24 Apr 2004 22:17:50 -0000 1.77
+++ crypto.c 25 Apr 2004 04:32:59 -0000 1.78
@@ -620,7 +620,9 @@
}
outlen = crypto_pk_private_decrypt(env,from,pkeylen,buf,padding);
if (outlen<0) {
- log_fn(LOG_WARN, "Error decrypting public-key data");
+ /* this is only log-levelinfo, because when we're decrypting
+ * onions, we try several keys to see which will work */
+ log_fn(LOG_INFO, "Error decrypting public-key data");
return -1;
}
if (outlen < CIPHER_KEY_LEN) {