aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/test_revocation_testvectors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/revocation/test_revocation_testvectors.c')
-rw-r--r--src/revocation/test_revocation_testvectors.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/revocation/test_revocation_testvectors.c b/src/revocation/test_revocation_testvectors.c
index 355576fb7..a669e1b7e 100644
--- a/src/revocation/test_revocation_testvectors.c
+++ b/src/revocation/test_revocation_testvectors.c
@@ -239,9 +239,9 @@ parsehex (char *src, char *dst, size_t dstlen, int invert)
239int 239int
240main () 240main ()
241{ 241{
242 struct GNUNET_IDENTITY_PrivateKey priv; 242 struct GNUNET_CRYPTO_PrivateKey priv;
243 struct GNUNET_IDENTITY_PublicKey pub; 243 struct GNUNET_CRYPTO_PublicKey pub;
244 struct GNUNET_IDENTITY_PublicKey pub_parsed; 244 struct GNUNET_CRYPTO_PublicKey pub_parsed;
245 struct GNUNET_TIME_Relative exprel; 245 struct GNUNET_TIME_Relative exprel;
246 struct GNUNET_REVOCATION_PowP *pow; 246 struct GNUNET_REVOCATION_PowP *pow;
247 char m[8096]; 247 char m[8096];
@@ -255,8 +255,8 @@ main ()
255 parsehex (rtvs[i].d,(char*) &priv.ecdsa_key, sizeof (priv.ecdsa_key), 255 parsehex (rtvs[i].d,(char*) &priv.ecdsa_key, sizeof (priv.ecdsa_key),
256 (GNUNET_GNSRECORD_TYPE_PKEY == ntohl (pub_parsed.type)) ? 1 : 0); 256 (GNUNET_GNSRECORD_TYPE_PKEY == ntohl (pub_parsed.type)) ? 1 : 0);
257 priv.type = pub_parsed.type; 257 priv.type = pub_parsed.type;
258 GNUNET_IDENTITY_key_get_public (&priv, &pub); 258 GNUNET_CRYPTO_key_get_public (&priv, &pub);
259 if (0 != memcmp (&pub, &pub_parsed, GNUNET_IDENTITY_public_key_get_length ( 259 if (0 != memcmp (&pub, &pub_parsed, GNUNET_CRYPTO_public_key_get_length (
260 &pub))) 260 &pub)))
261 { 261 {
262 printf ("Wrong pubkey.\n"); 262 printf ("Wrong pubkey.\n");
@@ -266,7 +266,7 @@ main ()
266 break; 266 break;
267 } 267 }
268 GNUNET_STRINGS_data_to_string (&pub, 268 GNUNET_STRINGS_data_to_string (&pub,
269 GNUNET_IDENTITY_public_key_get_length ( 269 GNUNET_CRYPTO_public_key_get_length (
270 &pub), 270 &pub),
271 ztld, 271 ztld,
272 sizeof (ztld)); 272 sizeof (ztld));