diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-07 10:53:45 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-07 10:53:45 +0100 |
commit | 68f5813fdac760d6bc8d832b298f2621bc0e7023 (patch) | |
tree | c0ab717eff932b61c9387785a2feaf71c6c36ca7 /src/credential/plugin_gnsrecord_credential.c | |
parent | 1be263982990fc0650c30fb5f758d4100540561d (diff) | |
download | gnunet-68f5813fdac760d6bc8d832b298f2621bc0e7023.tar.gz gnunet-68f5813fdac760d6bc8d832b298f2621bc0e7023.zip |
- add signature check
Diffstat (limited to 'src/credential/plugin_gnsrecord_credential.c')
-rw-r--r-- | src/credential/plugin_gnsrecord_credential.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/credential/plugin_gnsrecord_credential.c b/src/credential/plugin_gnsrecord_credential.c index ff95ec119..90ac393d0 100644 --- a/src/credential/plugin_gnsrecord_credential.c +++ b/src/credential/plugin_gnsrecord_credential.c | |||
@@ -182,8 +182,8 @@ credential_string_to_value (void *cls, | |||
182 | cred->sig = *sig; | 182 | cred->sig = *sig; |
183 | cred->expiration = GNUNET_htonll (etime_abs.abs_value_us); | 183 | cred->expiration = GNUNET_htonll (etime_abs.abs_value_us); |
184 | cred->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_CREDENTIAL); | 184 | cred->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_CREDENTIAL); |
185 | cred->purpose.size = strlen (name) + 1 + sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + | 185 | cred->purpose.size = htonl (strlen (name) + 1 + sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + |
186 | sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey) + sizeof (uint64_t); | 186 | sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey) + sizeof (uint64_t)); |
187 | GNUNET_free (sig); | 187 | GNUNET_free (sig); |
188 | GNUNET_memcpy (&cred[1], | 188 | GNUNET_memcpy (&cred[1], |
189 | name, | 189 | name, |