aboutsummaryrefslogtreecommitdiff
path: root/src/credential/plugin_gnsrecord_credential.c
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-09 09:55:18 +0000
committerng0 <ng0@n0.is>2019-09-09 09:55:18 +0000
commitc03c7227ba8ac9acc8992c2166a72bea383c09d6 (patch)
tree63d7e420f1d5cea38830a09c591aa851e345c060 /src/credential/plugin_gnsrecord_credential.c
parenta4543a4105ca6cea2bd558aed8d2e87981d535ea (diff)
downloadgnunet-c03c7227ba8ac9acc8992c2166a72bea383c09d6.tar.gz
gnunet-c03c7227ba8ac9acc8992c2166a72bea383c09d6.zip
plibc removal: sscanf, win32 socket corrections
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 9207aa7ad..134153c13 100644
--- a/src/credential/plugin_gnsrecord_credential.c
+++ b/src/credential/plugin_gnsrecord_credential.c
@@ -162,7 +162,7 @@ credential_string_to_value(void *cls, uint32_t type, const char *s,
162 *data_size = sizeof(struct GNUNET_CREDENTIAL_DelegationRecord); 162 *data_size = sizeof(struct GNUNET_CREDENTIAL_DelegationRecord);
163 while (NULL != token) 163 while (NULL != token)
164 { 164 {
165 matches = SSCANF(token, "%s %s", subject_pkey, attr_str); 165 matches = sscanf(token, "%s %s", subject_pkey, attr_str);
166 if (0 == matches) 166 if (0 == matches)
167 { 167 {
168 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, 168 GNUNET_log(GNUNET_ERROR_TYPE_ERROR,
@@ -195,7 +195,7 @@ credential_string_to_value(void *cls, uint32_t type, const char *s,
195 memset(set, 0, sizeof(struct GNUNET_CREDENTIAL_DelegationSet) * entries); 195 memset(set, 0, sizeof(struct GNUNET_CREDENTIAL_DelegationSet) * entries);
196 for (i = 0; i < entries; i++) 196 for (i = 0; i < entries; i++)
197 { 197 {
198 matches = SSCANF(token, "%s %s", subject_pkey, attr_str); 198 matches = sscanf(token, "%s %s", subject_pkey, attr_str);
199 GNUNET_CRYPTO_ecdsa_public_key_from_string( 199 GNUNET_CRYPTO_ecdsa_public_key_from_string(
200 subject_pkey, strlen(subject_pkey), &set[i].subject_key); 200 subject_pkey, strlen(subject_pkey), &set[i].subject_key);
201 if (2 == matches) 201 if (2 == matches)