diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-06 22:21:49 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-06 22:21:49 +0100 |
commit | 1be263982990fc0650c30fb5f758d4100540561d (patch) | |
tree | ca7823ac9906822cc88e6a3e0c40b215796e0b95 /src/credential/gnunet-credential.c | |
parent | 14045cba92ab8167e1371f2e2447a5bcdd71f12a (diff) | |
download | gnunet-1be263982990fc0650c30fb5f758d4100540561d.tar.gz gnunet-1be263982990fc0650c30fb5f758d4100540561d.zip |
- add simple verification
Diffstat (limited to 'src/credential/gnunet-credential.c')
-rw-r--r-- | src/credential/gnunet-credential.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/credential/gnunet-credential.c b/src/credential/gnunet-credential.c index a2d494f2a..d728f533d 100644 --- a/src/credential/gnunet-credential.c +++ b/src/credential/gnunet-credential.c | |||
@@ -157,13 +157,14 @@ do_timeout (void *cls) | |||
157 | */ | 157 | */ |
158 | static void | 158 | static void |
159 | handle_verify_result (void *cls, | 159 | handle_verify_result (void *cls, |
160 | struct GNUNET_CRYPTO_EcdsaPublicKey *issuer, | 160 | struct GNUNET_CREDENTIAL_CredentialRecordData *cred, |
161 | uint32_t status) | 161 | uint32_t delegation_count, |
162 | struct GNUNET_CREDENTIAL_AttributeRecordData *deleg) | ||
162 | { | 163 | { |
163 | 164 | ||
164 | 165 | ||
165 | verify_request = NULL; | 166 | verify_request = NULL; |
166 | if (GNUNET_NO == status) | 167 | if (NULL == cred) |
167 | printf ("Verify failed.\n"); | 168 | printf ("Verify failed.\n"); |
168 | else | 169 | else |
169 | printf ("Successful.\n"); | 170 | printf ("Successful.\n"); |