aboutsummaryrefslogtreecommitdiff
path: root/src/identity/identity_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity/identity_api.c')
-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