diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-13 10:18:40 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-13 10:18:40 +0100 |
commit | d03ce063cf660a1f9f37b917eab3747a40937d68 (patch) | |
tree | 33248b5727f36bcb2b0f9141e6a4b31d380ea9f5 /src/credential/plugin_gnsrecord_credential.c | |
parent | 78b7c56bd1502ec87054521970a8e5b9cf225b66 (diff) | |
download | gnunet-d03ce063cf660a1f9f37b917eab3747a40937d68.tar.gz gnunet-d03ce063cf660a1f9f37b917eab3747a40937d68.zip |
-more rest
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 ece4be1e3..281113a34 100644 --- a/src/credential/plugin_gnsrecord_credential.c +++ b/src/credential/plugin_gnsrecord_credential.c | |||
@@ -98,7 +98,7 @@ credential_value_to_string (void *cls, | |||
98 | issuer_pkey = GNUNET_CRYPTO_ecdsa_public_key_to_string (&cred.issuer_key); | 98 | issuer_pkey = GNUNET_CRYPTO_ecdsa_public_key_to_string (&cred.issuer_key); |
99 | etime_abs.abs_value_us = GNUNET_ntohll(cred.expiration); | 99 | etime_abs.abs_value_us = GNUNET_ntohll(cred.expiration); |
100 | expiration = GNUNET_STRINGS_absolute_time_to_string (etime_abs); | 100 | expiration = GNUNET_STRINGS_absolute_time_to_string (etime_abs); |
101 | GNUNET_STRINGS_base64_encode ((char*)&cred.sig, | 101 | GNUNET_STRINGS_base64_encode ((char*)&cred.signature, |
102 | sizeof (struct GNUNET_CRYPTO_EcdsaSignature), | 102 | sizeof (struct GNUNET_CRYPTO_EcdsaSignature), |
103 | &signature); | 103 | &signature); |
104 | GNUNET_asprintf (&cred_str, | 104 | GNUNET_asprintf (&cred_str, |
@@ -219,7 +219,7 @@ credential_string_to_value (void *cls, | |||
219 | GNUNET_STRINGS_base64_decode (signature, | 219 | GNUNET_STRINGS_base64_decode (signature, |
220 | strlen (signature), | 220 | strlen (signature), |
221 | (char**)&sig); | 221 | (char**)&sig); |
222 | cred->sig = *sig; | 222 | cred->signature = *sig; |
223 | cred->expiration = GNUNET_htonll (etime_abs.abs_value_us); | 223 | cred->expiration = GNUNET_htonll (etime_abs.abs_value_us); |
224 | cred->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_CREDENTIAL); | 224 | cred->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_CREDENTIAL); |
225 | cred->purpose.size = htonl (strlen (name) + 1 + sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + | 225 | cred->purpose.size = htonl (strlen (name) + 1 + sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + |