diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-06 09:35:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-06 09:35:52 +0000 |
commit | b0f956058355ea7e96a7d3022b08dd951acd99a5 (patch) | |
tree | 69bef96ace98558a843366251424dc6d9fb16cb8 /src | |
parent | 99ba3c2b1294b890671d0d7d6e4319be70bee5a0 (diff) | |
download | gnunet-b0f956058355ea7e96a7d3022b08dd951acd99a5.tar.gz gnunet-b0f956058355ea7e96a7d3022b08dd951acd99a5.zip |
renaming GNUNET_CRYPTO_get_host_identity to GNUNET_CRYPTO_get_peer_identity
Diffstat (limited to 'src')
-rw-r--r-- | src/consensus/gnunet-service-consensus.c | 2 | ||||
-rw-r--r-- | src/conversation/conversation_api.c | 2 | ||||
-rw-r--r-- | src/conversation/gnunet-service-conversation.c | 2 | ||||
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 2 | ||||
-rw-r--r-- | src/scalarproduct/gnunet-service-scalarproduct.c | 2 | ||||
-rw-r--r-- | src/set/gnunet-set-profiler.c | 2 | ||||
-rw-r--r-- | src/set/test_set_api.c | 2 | ||||
-rw-r--r-- | src/util/crypto_ecc.c | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/src/consensus/gnunet-service-consensus.c b/src/consensus/gnunet-service-consensus.c index 765178b5e..74f758034 100644 --- a/src/consensus/gnunet-service-consensus.c +++ b/src/consensus/gnunet-service-consensus.c | |||
@@ -1265,7 +1265,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1265 | 1265 | ||
1266 | cfg = c; | 1266 | cfg = c; |
1267 | srv = server; | 1267 | srv = server; |
1268 | if (GNUNET_OK != GNUNET_CRYPTO_get_host_identity (cfg, &my_peer)) | 1268 | if (GNUNET_OK != GNUNET_CRYPTO_get_peer_identity (cfg, &my_peer)) |
1269 | { | 1269 | { |
1270 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "could not retrieve host identity\n"); | 1270 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "could not retrieve host identity\n"); |
1271 | GNUNET_break (0); | 1271 | GNUNET_break (0); |
diff --git a/src/conversation/conversation_api.c b/src/conversation/conversation_api.c index 9755a3cf0..11eb2b7e7 100644 --- a/src/conversation/conversation_api.c +++ b/src/conversation/conversation_api.c | |||
@@ -415,7 +415,7 @@ GNUNET_CONVERSATION_phone_create (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
415 | return NULL; | 415 | return NULL; |
416 | phone = GNUNET_new (struct GNUNET_CONVERSATION_Phone); | 416 | phone = GNUNET_new (struct GNUNET_CONVERSATION_Phone); |
417 | if (GNUNET_OK != | 417 | if (GNUNET_OK != |
418 | GNUNET_CRYPTO_get_host_identity (cfg, | 418 | GNUNET_CRYPTO_get_peer_identity (cfg, |
419 | &phone->my_record.peer)) | 419 | &phone->my_record.peer)) |
420 | { | 420 | { |
421 | GNUNET_break (0); | 421 | GNUNET_break (0); |
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c index 3b610c007..85bbc0481 100644 --- a/src/conversation/gnunet-service-conversation.c +++ b/src/conversation/gnunet-service-conversation.c | |||
@@ -1231,7 +1231,7 @@ run (void *cls, | |||
1231 | 1231 | ||
1232 | cfg = c; | 1232 | cfg = c; |
1233 | GNUNET_assert (GNUNET_OK == | 1233 | GNUNET_assert (GNUNET_OK == |
1234 | GNUNET_CRYPTO_get_host_identity (cfg, | 1234 | GNUNET_CRYPTO_get_peer_identity (cfg, |
1235 | &my_identity)); | 1235 | &my_identity)); |
1236 | mesh = GNUNET_MESH_connect (cfg, | 1236 | mesh = GNUNET_MESH_connect (cfg, |
1237 | NULL, | 1237 | NULL, |
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 43bcc3da4..c72c135c1 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -982,7 +982,7 @@ GNUNET_CRYPTO_ecc_setup_hostkey (const char *cfg_name); | |||
982 | * could not be retrieved | 982 | * could not be retrieved |
983 | */ | 983 | */ |
984 | int | 984 | int |
985 | GNUNET_CRYPTO_get_host_identity (const struct GNUNET_CONFIGURATION_Handle *cfg, | 985 | GNUNET_CRYPTO_get_peer_identity (const struct GNUNET_CONFIGURATION_Handle *cfg, |
986 | struct GNUNET_PeerIdentity *dst); | 986 | struct GNUNET_PeerIdentity *dst); |
987 | 987 | ||
988 | 988 | ||
diff --git a/src/scalarproduct/gnunet-service-scalarproduct.c b/src/scalarproduct/gnunet-service-scalarproduct.c index e3775f79a..e17a3a4d1 100644 --- a/src/scalarproduct/gnunet-service-scalarproduct.c +++ b/src/scalarproduct/gnunet-service-scalarproduct.c | |||
@@ -2171,7 +2171,7 @@ run (void *cls, | |||
2171 | &handle_client_disconnect, | 2171 | &handle_client_disconnect, |
2172 | NULL); | 2172 | NULL); |
2173 | GNUNET_break (GNUNET_OK == | 2173 | GNUNET_break (GNUNET_OK == |
2174 | GNUNET_CRYPTO_get_host_identity (c, | 2174 | GNUNET_CRYPTO_get_peer_identity (c, |
2175 | &me)); | 2175 | &me)); |
2176 | my_mesh = GNUNET_MESH_connect (c, NULL, | 2176 | my_mesh = GNUNET_MESH_connect (c, NULL, |
2177 | &tunnel_incoming_handler, | 2177 | &tunnel_incoming_handler, |
diff --git a/src/set/gnunet-set-profiler.c b/src/set/gnunet-set-profiler.c index 18bea8d7c..20ff5dd0a 100644 --- a/src/set/gnunet-set-profiler.c +++ b/src/set/gnunet-set-profiler.c | |||
@@ -215,7 +215,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
215 | 215 | ||
216 | config = cfg; | 216 | config = cfg; |
217 | 217 | ||
218 | if (GNUNET_OK != GNUNET_CRYPTO_get_host_identity (cfg, &local_peer)) | 218 | if (GNUNET_OK != GNUNET_CRYPTO_get_peer_identity (cfg, &local_peer)) |
219 | { | 219 | { |
220 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "could not retrieve host identity\n"); | 220 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "could not retrieve host identity\n"); |
221 | ret = 0; | 221 | ret = 0; |
diff --git a/src/set/test_set_api.c b/src/set/test_set_api.c index 45d1d3f0c..95334f856 100644 --- a/src/set/test_set_api.c +++ b/src/set/test_set_api.c | |||
@@ -230,7 +230,7 @@ run (void *cls, | |||
230 | struct GNUNET_SET_OperationHandle *my_oh; | 230 | struct GNUNET_SET_OperationHandle *my_oh; |
231 | 231 | ||
232 | config = cfg; | 232 | config = cfg; |
233 | GNUNET_CRYPTO_get_host_identity (cfg, &local_id); | 233 | GNUNET_CRYPTO_get_peer_identity (cfg, &local_id); |
234 | printf ("my id (from CRYPTO): %s\n", GNUNET_i2s (&local_id)); | 234 | printf ("my id (from CRYPTO): %s\n", GNUNET_i2s (&local_id)); |
235 | GNUNET_TESTING_peer_get_identity (peer, &local_id); | 235 | GNUNET_TESTING_peer_get_identity (peer, &local_id); |
236 | printf ("my id (from TESTING): %s\n", GNUNET_i2s (&local_id)); | 236 | printf ("my id (from TESTING): %s\n", GNUNET_i2s (&local_id)); |
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c index 770b0c37c..144cfbd45 100644 --- a/src/util/crypto_ecc.c +++ b/src/util/crypto_ecc.c | |||
@@ -741,7 +741,7 @@ GNUNET_CRYPTO_ecc_setup_key (const char *cfg_name) | |||
741 | * could not be retrieved | 741 | * could not be retrieved |
742 | */ | 742 | */ |
743 | int | 743 | int |
744 | GNUNET_CRYPTO_get_host_identity (const struct GNUNET_CONFIGURATION_Handle *cfg, | 744 | GNUNET_CRYPTO_get_peer_identity (const struct GNUNET_CONFIGURATION_Handle *cfg, |
745 | struct GNUNET_PeerIdentity *dst) | 745 | struct GNUNET_PeerIdentity *dst) |
746 | { | 746 | { |
747 | struct GNUNET_CRYPTO_EccPrivateKey *priv; | 747 | struct GNUNET_CRYPTO_EccPrivateKey *priv; |