aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_escrow_lib.h
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-07-13 11:45:41 +0200
committerjospaeth <spaethj@in.tum.de>2020-07-13 11:45:41 +0200
commit33bb7ee2507c9b72f366eae9c6c2136c3c6badb5 (patch)
tree763e4b700d4a1eeb4fa59d757914a671ae1ce702 /src/include/gnunet_escrow_lib.h
parent97444379672ac580b2ee3f81f0b6fdbae9d0a3f2 (diff)
downloadgnunet-33bb7ee2507c9b72f366eae9c6c2136c3c6badb5.tar.gz
gnunet-33bb7ee2507c9b72f366eae9c6c2136c3c6badb5.zip
change return type of verification methods
Diffstat (limited to 'src/include/gnunet_escrow_lib.h')
-rw-r--r--src/include/gnunet_escrow_lib.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/gnunet_escrow_lib.h b/src/include/gnunet_escrow_lib.h
index d2d5e012a..2ac3c7761 100644
--- a/src/include/gnunet_escrow_lib.h
+++ b/src/include/gnunet_escrow_lib.h
@@ -51,6 +51,16 @@ enum GNUNET_ESCROW_Key_Escrow_Method {
51 51
52 52
53/** 53/**
54 * Enum for the different verification results
55 */
56enum GNUNET_ESCROW_Verification_Result {
57 GNUNET_ESCROW_VALID,
58 GNUNET_ESCROW_INVALID,
59 GNUNET_ESCROW_RENEW_NEEDED
60};
61
62
63/**
54 * Put some data in escrow using the specified escrow method 64 * Put some data in escrow using the specified escrow method
55 * 65 *
56 * @param ego the identity ego to put in escrow 66 * @param ego the identity ego to put in escrow
@@ -101,7 +111,9 @@ GNUNET_ESCROW_get (
101 * @param escrowAnchor the escrow anchor returned by the GNUNET_ESCROW_put method 111 * @param escrowAnchor the escrow anchor returned by the GNUNET_ESCROW_put method
102 * @param method the escrow method to use 112 * @param method the escrow method to use
103 * 113 *
104 * @return GNUNET_OK if the escrow could successfully by restored 114 * @return GNUNET_ESCROW_VALID if the escrow could successfully by restored,
115 * GNUNET_ESCROW_RENEW_NEEDED if the escrow needs to be renewed,
116 * GNUNET_ESCROW_INVALID otherwise
105 */ 117 */
106int 118int
107GNUNET_ESCROW_verify ( 119GNUNET_ESCROW_verify (