aboutsummaryrefslogtreecommitdiff
path: root/src/credential
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
parenta4543a4105ca6cea2bd558aed8d2e87981d535ea (diff)
downloadgnunet-c03c7227ba8ac9acc8992c2166a72bea383c09d6.tar.gz
gnunet-c03c7227ba8ac9acc8992c2166a72bea383c09d6.zip
plibc removal: sscanf, win32 socket corrections
Diffstat (limited to 'src/credential')
-rw-r--r--src/credential/credential_misc.c2
-rw-r--r--src/credential/plugin_gnsrecord_credential.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/credential/credential_misc.c b/src/credential/credential_misc.c
index be6d124a6..bc8a28912 100644
--- a/src/credential/credential_misc.c
+++ b/src/credential/credential_misc.c
@@ -77,7 +77,7 @@ GNUNET_CREDENTIAL_credential_from_string(const char* s)
77 struct GNUNET_CRYPTO_EcdsaSignature *sig; 77 struct GNUNET_CRYPTO_EcdsaSignature *sig;
78 struct GNUNET_TIME_Absolute etime_abs; 78 struct GNUNET_TIME_Absolute etime_abs;
79 79
80 if (5 != SSCANF(s, 80 if (5 != sscanf(s,
81 "%52s.%253s -> %52s | %s | %" SCNu64, 81 "%52s.%253s -> %52s | %s | %" SCNu64,
82 issuer_pkey, 82 issuer_pkey,
83 name, 83 name,
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)