aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/test_did_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/test_did_helper.c')
-rw-r--r--src/reclaim/test_did_helper.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/reclaim/test_did_helper.c b/src/reclaim/test_did_helper.c
index 02db28925..c11f47540 100644
--- a/src/reclaim/test_did_helper.c
+++ b/src/reclaim/test_did_helper.c
@@ -58,8 +58,8 @@ static const char *test_did_document_format_str =
58 \"authentication\":[\"#key-1\"],\ 58 \"authentication\":[\"#key-1\"],\
59 \"assertionMethod\":[\"#key-1\"]}"; 59 \"assertionMethod\":[\"#key-1\"]}";
60 60
61static struct GNUNET_IDENTITY_PrivateKey test_skey; 61static struct GNUNET_CRYPTO_PrivateKey test_skey;
62static struct GNUNET_IDENTITY_PublicKey test_pkey; 62static struct GNUNET_CRYPTO_PublicKey test_pkey;
63static struct json_t *test_did_document; 63static struct json_t *test_did_document;
64static char *test_did_document_str; 64static char *test_did_document_str;
65 65
@@ -75,7 +75,7 @@ test_GNUNET_DID_pkey_to_did ()
75void 75void
76test_GNUNET_DID_did_to_pkey () 76test_GNUNET_DID_did_to_pkey ()
77{ 77{
78 struct GNUNET_IDENTITY_PublicKey pkey; 78 struct GNUNET_CRYPTO_PublicKey pkey;
79 DID_did_to_pkey ((char *) test_did, &pkey); 79 DID_did_to_pkey ((char *) test_did, &pkey);
80 80
81 GNUNET_assert (test_pkey.type = pkey.type); 81 GNUNET_assert (test_pkey.type = pkey.type);
@@ -112,11 +112,11 @@ int
112main () 112main ()
113{ 113{
114 // Setup key 114 // Setup key
115 test_skey.type = htonl (GNUNET_IDENTITY_TYPE_EDDSA); 115 test_skey.type = htonl (GNUNET_PUBLIC_KEY_TYPE_EDDSA);
116 memcpy (&(test_skey.eddsa_key), 116 memcpy (&(test_skey.eddsa_key),
117 test_skey_bytes, 117 test_skey_bytes,
118 sizeof(struct GNUNET_CRYPTO_EddsaPrivateKey)); 118 sizeof(struct GNUNET_CRYPTO_EddsaPrivateKey));
119 GNUNET_IDENTITY_key_get_public (&test_skey, &test_pkey); 119 GNUNET_CRYPTO_key_get_public (&test_skey, &test_pkey);
120 120
121 // Setup did document 121 // Setup did document
122 GNUNET_asprintf (&test_did_document_str, 122 GNUNET_asprintf (&test_did_document_str,