diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-09-03 12:07:52 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-09-03 12:07:52 +0000 |
commit | dc91365855b72f0c97c0a7abc6eac7d479704daf (patch) | |
tree | a0242025c976f2c23b64cdd3516a84b6681d4c57 /src/scalarproduct/scalarproduct.h | |
parent | d4922969a54f83b3c2d7503a9bda2708700869c8 (diff) | |
download | gnunet-dc91365855b72f0c97c0a7abc6eac7d479704daf.tar.gz gnunet-dc91365855b72f0c97c0a7abc6eac7d479704daf.zip |
re-added collective disconnect command to the scalarproduct API
adapted the scalarproduct client to use the new API
modified scalarproduct.h to include proper logging for gcrypt errors
cancel is now quiet
added proper gcry logging to the SP-API
Diffstat (limited to 'src/scalarproduct/scalarproduct.h')
-rw-r--r-- | src/scalarproduct/scalarproduct.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scalarproduct/scalarproduct.h b/src/scalarproduct/scalarproduct.h index 43a866cf1..9304c0c7e 100644 --- a/src/scalarproduct/scalarproduct.h +++ b/src/scalarproduct/scalarproduct.h | |||
@@ -48,6 +48,13 @@ extern "C" | |||
48 | */ | 48 | */ |
49 | #define PAILLIER_ELEMENT_LENGTH (2*KEYBITS/8 +1) | 49 | #define PAILLIER_ELEMENT_LENGTH (2*KEYBITS/8 +1) |
50 | 50 | ||
51 | /** | ||
52 | * Log an error message at log-level 'level' that indicates | ||
53 | * a failure of the command 'cmd' with the message given | ||
54 | * by gcry_strerror(rc). | ||
55 | */ | ||
56 | #define LOG_GCRY(level, cmd, rc) do { LOG(level, _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, gcry_strerror(rc)); } while(0) | ||
57 | |||
51 | /////////////////////////////////////////////////////////////////////////////// | 58 | /////////////////////////////////////////////////////////////////////////////// |
52 | // Scalar Product Message Types | 59 | // Scalar Product Message Types |
53 | /////////////////////////////////////////////////////////////////////////////// | 60 | /////////////////////////////////////////////////////////////////////////////// |