aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-06-06 13:36:46 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-06-06 13:36:46 +0200
commit1b18c4db21a5cd61d25c3d17a634e16d25a15e4d (patch)
tree25d74e4dddc4f5ba2913bd96a4077a98046ccfa0 /src
parentaa25216fe5bb23bb5e7a118114c67a1478acde4c (diff)
downloadgnunet-1b18c4db21a5cd61d25c3d17a634e16d25a15e4d.tar.gz
gnunet-1b18c4db21a5cd61d25c3d17a634e16d25a15e4d.zip
GNS: Fix EdDSA lookup by zonekey TLD
Diffstat (limited to 'src')
-rw-r--r--src/identity/identity_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index 64c088923..3bbe0b957 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -1244,7 +1244,7 @@ GNUNET_IDENTITY_public_key_from_string (const char *str,
1244 if (GNUNET_OK != ret) 1244 if (GNUNET_OK != ret)
1245 return GNUNET_SYSERR; 1245 return GNUNET_SYSERR;
1246 ktype = ntohl (key->type); 1246 ktype = ntohl (key->type);
1247 return (GNUNET_IDENTITY_TYPE_ECDSA == ktype) ? GNUNET_OK : GNUNET_SYSERR; // FIXME other keys, cleaner way? 1247 return GNUNET_OK;
1248 1248
1249} 1249}
1250 1250
@@ -1262,7 +1262,7 @@ GNUNET_IDENTITY_private_key_from_string (const char *str,
1262 if (GNUNET_OK != ret) 1262 if (GNUNET_OK != ret)
1263 return GNUNET_SYSERR; 1263 return GNUNET_SYSERR;
1264 ktype = ntohl (key->type); 1264 ktype = ntohl (key->type);
1265 return (GNUNET_IDENTITY_TYPE_ECDSA == ktype) ? GNUNET_OK : GNUNET_SYSERR; // FIXME other keys, cleaner way? 1265 return GNUNET_OK;
1266} 1266}
1267 1267
1268 1268