aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/did_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/did_misc.c')
-rw-r--r--src/reclaim/did_misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reclaim/did_misc.c b/src/reclaim/did_misc.c
index 44b72a69f..32b127b2b 100644
--- a/src/reclaim/did_misc.c
+++ b/src/reclaim/did_misc.c
@@ -33,14 +33,14 @@
33char* 33char*
34DID_ego_to_did (struct GNUNET_IDENTITY_Ego *ego) 34DID_ego_to_did (struct GNUNET_IDENTITY_Ego *ego)
35{ 35{
36 struct GNUNET_IDENTITY_PublicKey pkey; // Get Public key 36 struct GNUNET_CRYPTO_PublicKey pkey; // Get Public key
37 char *pkey_str; 37 char *pkey_str;
38 char *did_str; 38 char *did_str;
39 size_t pkey_len; 39 size_t pkey_len;
40 40
41 GNUNET_IDENTITY_ego_get_public_key (ego, &pkey); 41 GNUNET_IDENTITY_ego_get_public_key (ego, &pkey);
42 42
43 pkey_str = GNUNET_IDENTITY_public_key_to_string (&pkey); 43 pkey_str = GNUNET_CRYPTO_public_key_to_string (&pkey);
44 GNUNET_asprintf (&did_str, "%s%s", 44 GNUNET_asprintf (&did_str, "%s%s",
45 GNUNET_RECLAIM_DID_METHOD_PREFIX, 45 GNUNET_RECLAIM_DID_METHOD_PREFIX,
46 pkey_str); 46 pkey_str);
@@ -51,7 +51,7 @@ DID_ego_to_did (struct GNUNET_IDENTITY_Ego *ego)
51 51
52enum GNUNET_GenericReturnValue 52enum GNUNET_GenericReturnValue
53DID_public_key_from_did (const char* did, 53DID_public_key_from_did (const char* did,
54 struct GNUNET_IDENTITY_PublicKey *pk) 54 struct GNUNET_CRYPTO_PublicKey *pk)
55{ 55{
56 /* FIXME-MSC: I suggest introducing a 56 /* FIXME-MSC: I suggest introducing a
57 * #define MAX_DID_LENGTH <something> 57 * #define MAX_DID_LENGTH <something>
@@ -60,7 +60,7 @@ DID_public_key_from_did (const char* did,
60 char pkey_str[59]; 60 char pkey_str[59];
61 61
62 if ((1 != (sscanf (did, GNUNET_RECLAIM_DID_METHOD_PREFIX"%58s", pkey_str))) || 62 if ((1 != (sscanf (did, GNUNET_RECLAIM_DID_METHOD_PREFIX"%58s", pkey_str))) ||
63 (GNUNET_OK != GNUNET_IDENTITY_public_key_from_string (pkey_str, pk))) 63 (GNUNET_OK != GNUNET_CRYPTO_public_key_from_string (pkey_str, pk)))
64 { 64 {
65 return GNUNET_SYSERR; 65 return GNUNET_SYSERR;
66 } 66 }