projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d4eaac0
)
-more keys
author
Martin Schanzenbach
<mschanzenbach@posteo.de>
Tue, 10 Apr 2012 12:45:36 +0000
(12:45 +0000)
committer
Martin Schanzenbach
<mschanzenbach@posteo.de>
Tue, 10 Apr 2012 12:45:36 +0000
(12:45 +0000)
src/gns/test_gns_dht_delegated_lookup.c
patch
|
blob
|
history
src/gns/test_gns_max_queries.c
patch
|
blob
|
history
src/gns/test_gns_simple_delegated_lookup.c
patch
|
blob
|
history
src/gns/test_gns_simple_get_authority.c
patch
|
blob
|
history
src/gns/test_gns_simple_mx_lookup.c
patch
|
blob
|
history
src/gns/test_gns_simple_zkey_lookup.c
patch
|
blob
|
history
diff --git
a/src/gns/test_gns_dht_delegated_lookup.c
b/src/gns/test_gns_dht_delegated_lookup.c
index 96768aa5cd91b1c8e5535bbb9b9d8e3ead0251af..14a8cb100c9905882c1ada34540d5c7f3ac5370f 100644
(file)
--- a/
src/gns/test_gns_dht_delegated_lookup.c
+++ b/
src/gns/test_gns_dht_delegated_lookup.c
@@
-51,6
+51,8
@@
#define DHT_OPERATION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1)
#define DHT_OPERATION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1)
+#define KEYFILE_BOB "../namestore/zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey"
+
/* Globals */
/**
/* Globals */
/**
@@
-303,7
+305,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
}
alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (alice_keyfile);
}
alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (alice_keyfile);
- bob_key = GNUNET_CRYPTO_rsa_key_create ();
+ bob_key = GNUNET_CRYPTO_rsa_key_create (
KEYFILE_BOB
);
GNUNET_free(alice_keyfile);
GNUNET_free(alice_keyfile);
diff --git
a/src/gns/test_gns_max_queries.c
b/src/gns/test_gns_max_queries.c
index 75cd877f20b34b2630e5e34ce776931a6f83301c..01649231fe095487c668654f96844f5ec94ce050 100644
(file)
--- a/
src/gns/test_gns_max_queries.c
+++ b/
src/gns/test_gns_max_queries.c
@@
-49,6
+49,8
@@
#define TEST_ADDITIONAL_LOOKUPS 5
#define TEST_AUTHORITY_NAME "bob"
#define TEST_ADDITIONAL_LOOKUPS 5
#define TEST_AUTHORITY_NAME "bob"
+#define KEYFILE_BOB "../namestore/zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey"
+
/* Globals */
/**
/* Globals */
/**
@@
-256,7
+258,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
}
alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (alice_keyfile);
}
alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (alice_keyfile);
- bob_key = GNUNET_CRYPTO_rsa_key_create ();
+ bob_key = GNUNET_CRYPTO_rsa_key_create (
KEYFILE_BOB
);
GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey);
GNUNET_CRYPTO_rsa_key_get_public (bob_key, &bob_pkey);
GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey);
GNUNET_CRYPTO_rsa_key_get_public (bob_key, &bob_pkey);
diff --git
a/src/gns/test_gns_simple_delegated_lookup.c
b/src/gns/test_gns_simple_delegated_lookup.c
index 05ed2fe7751e410a8a1b998836821098d5abe9e7..1f02a71bf863f45e24f1bf874ce4c09ccd5baf5e 100644
(file)
--- a/
src/gns/test_gns_simple_delegated_lookup.c
+++ b/
src/gns/test_gns_simple_delegated_lookup.c
@@
-62,6
+62,8
@@
#define TEST_AUTHORITY_NAME "bob"
#define TEST_AUTHORITY_NAME "bob"
+#define KEYFILE_BOB "../namestore/zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey"
+
/* Globals */
/**
/* Globals */
/**
@@
-229,7
+231,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
}
alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (alice_keyfile);
}
alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (alice_keyfile);
- bob_key = GNUNET_CRYPTO_rsa_key_create ();
+ bob_key = GNUNET_CRYPTO_rsa_key_create (
KEYFILE_BOB
);
GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey);
GNUNET_CRYPTO_rsa_key_get_public (bob_key, &bob_pkey);
GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey);
GNUNET_CRYPTO_rsa_key_get_public (bob_key, &bob_pkey);
diff --git
a/src/gns/test_gns_simple_get_authority.c
b/src/gns/test_gns_simple_get_authority.c
index d4359ca6d099e22928ecd64999f52aecec2004e0..b69f1af5870a6e1f25a5c5c1a069966ffba1edfe 100644
(file)
--- a/
src/gns/test_gns_simple_get_authority.c
+++ b/
src/gns/test_gns_simple_get_authority.c
@@
-51,6
+51,9
@@
#define TEST_ALICE_PSEU "carol"
#define TEST_EXPECTED_RESULT "alice.bob.gnunet"
#define TEST_ALICE_PSEU "carol"
#define TEST_EXPECTED_RESULT "alice.bob.gnunet"
+#define KEYFILE_BOB "../namestore/zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey"
+#define KEYFILE_ALICE "../namestore/zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"
+
/* Globals */
/**
/* Globals */
/**
@@
-224,8
+227,8
@@
do_shorten(void *cls, const struct GNUNET_PeerIdentity *id,
our_key = GNUNET_CRYPTO_rsa_key_create_from_file (our_keyfile);
GNUNET_free(our_keyfile);
our_key = GNUNET_CRYPTO_rsa_key_create_from_file (our_keyfile);
GNUNET_free(our_keyfile);
- bob_key = GNUNET_CRYPTO_rsa_key_create ();
- alice_key = GNUNET_CRYPTO_rsa_key_create ();
+ bob_key = GNUNET_CRYPTO_rsa_key_create (
KEYFILE_BOB
);
+ alice_key = GNUNET_CRYPTO_rsa_key_create (
KEYFILE_ALICE
);
GNUNET_CRYPTO_rsa_key_get_public (our_key, &our_pkey);
GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey);
GNUNET_CRYPTO_rsa_key_get_public (our_key, &our_pkey);
GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey);
diff --git
a/src/gns/test_gns_simple_mx_lookup.c
b/src/gns/test_gns_simple_mx_lookup.c
index 2888bc39663672e47af623913bcca55ccba7ca63..967829f7e53701b66da9a42023339aedae63dcab 100644
(file)
--- a/
src/gns/test_gns_simple_mx_lookup.c
+++ b/
src/gns/test_gns_simple_mx_lookup.c
@@
-50,6
+50,8
@@
#define TEST_AUTHORITY_NAME "bob"
#define TEST_AUTHORITY_NAME "bob"
+#define KEYFILE_BOB "../namestore/zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey"
+
/* Globals */
/**
/* Globals */
/**
@@
-246,7
+248,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
}
alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (alice_keyfile);
}
alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (alice_keyfile);
- bob_key = GNUNET_CRYPTO_rsa_key_create ();
+ bob_key = GNUNET_CRYPTO_rsa_key_create (
KEYFILE_BOB
);
GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey);
GNUNET_CRYPTO_rsa_key_get_public (bob_key, &bob_pkey);
GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey);
GNUNET_CRYPTO_rsa_key_get_public (bob_key, &bob_pkey);
diff --git
a/src/gns/test_gns_simple_zkey_lookup.c
b/src/gns/test_gns_simple_zkey_lookup.c
index 729a537053146e02661c178bb5cba85d3407d533..3ca3313270126d5e2fc27de8115edda5b063b938 100644
(file)
--- a/
src/gns/test_gns_simple_zkey_lookup.c
+++ b/
src/gns/test_gns_simple_zkey_lookup.c
@@
-48,6
+48,8
@@
#define TEST_AUTHORITY_NAME "bob"
#define TEST_AUTHORITY_NAME "bob"
+#define KEYFILE_BOB "../namestore/zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey"
+
/* Globals */
/**
/* Globals */
/**
@@
-232,7
+234,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
}
alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (alice_keyfile);
}
alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (alice_keyfile);
- bob_key = GNUNET_CRYPTO_rsa_key_create ();
+ bob_key = GNUNET_CRYPTO_rsa_key_create (
KEYFILE_BOB
);
GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey);
GNUNET_CRYPTO_rsa_key_get_public (bob_key, &bob_pkey);
GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey);
GNUNET_CRYPTO_rsa_key_get_public (bob_key, &bob_pkey);