diff options
Diffstat (limited to 'src/identity/identity_api.c')
-rw-r--r-- | src/identity/identity_api.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c index 3bbe0b957..22371f91a 100644 --- a/src/identity/identity_api.c +++ b/src/identity/identity_api.c | |||
@@ -1236,14 +1236,12 @@ GNUNET_IDENTITY_public_key_from_string (const char *str, | |||
1236 | struct GNUNET_IDENTITY_PublicKey *key) | 1236 | struct GNUNET_IDENTITY_PublicKey *key) |
1237 | { | 1237 | { |
1238 | enum GNUNET_GenericReturnValue ret; | 1238 | enum GNUNET_GenericReturnValue ret; |
1239 | enum GNUNET_IDENTITY_KeyType ktype; | ||
1240 | ret = GNUNET_STRINGS_string_to_data (str, | 1239 | ret = GNUNET_STRINGS_string_to_data (str, |
1241 | strlen (str), | 1240 | strlen (str), |
1242 | key, | 1241 | key, |
1243 | sizeof (*key)); | 1242 | sizeof (*key)); |
1244 | if (GNUNET_OK != ret) | 1243 | if (GNUNET_OK != ret) |
1245 | return GNUNET_SYSERR; | 1244 | return GNUNET_SYSERR; |
1246 | ktype = ntohl (key->type); | ||
1247 | return GNUNET_OK; | 1245 | return GNUNET_OK; |
1248 | 1246 | ||
1249 | } | 1247 | } |
@@ -1254,14 +1252,12 @@ GNUNET_IDENTITY_private_key_from_string (const char *str, | |||
1254 | struct GNUNET_IDENTITY_PrivateKey *key) | 1252 | struct GNUNET_IDENTITY_PrivateKey *key) |
1255 | { | 1253 | { |
1256 | enum GNUNET_GenericReturnValue ret; | 1254 | enum GNUNET_GenericReturnValue ret; |
1257 | enum GNUNET_IDENTITY_KeyType ktype; | ||
1258 | ret = GNUNET_STRINGS_string_to_data (str, | 1255 | ret = GNUNET_STRINGS_string_to_data (str, |
1259 | strlen (str), | 1256 | strlen (str), |
1260 | key, | 1257 | key, |
1261 | sizeof (*key)); | 1258 | sizeof (*key)); |
1262 | if (GNUNET_OK != ret) | 1259 | if (GNUNET_OK != ret) |
1263 | return GNUNET_SYSERR; | 1260 | return GNUNET_SYSERR; |
1264 | ktype = ntohl (key->type); | ||
1265 | return GNUNET_OK; | 1261 | return GNUNET_OK; |
1266 | } | 1262 | } |
1267 | 1263 | ||