aboutsummaryrefslogtreecommitdiff
path: root/src/credential/plugin_gnsrecord_credential.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/credential/plugin_gnsrecord_credential.c')
-rw-r--r--src/credential/plugin_gnsrecord_credential.c4
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) +