diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-12-10 23:29:52 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-12-10 23:29:52 +0100 |
commit | 70ae2bd54ee0ff610d95a63856f38395920b804d (patch) | |
tree | b08b1726bd4957a9dd0e55ff0057198087f3796d /src/include | |
parent | 08e22453a438c8a3f6135632a6ce39239b47d9f5 (diff) | |
download | gnunet-70ae2bd54ee0ff610d95a63856f38395920b804d.tar.gz gnunet-70ae2bd54ee0ff610d95a63856f38395920b804d.zip |
finish first draft of ats2 simple plugin (untested)
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_hello_lib.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h index 8a405a25e..a47162f99 100644 --- a/src/include/gnunet_hello_lib.h +++ b/src/include/gnunet_hello_lib.h | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ | 17 | */ |
@@ -476,6 +476,10 @@ GNUNET_HELLO_parse_uri (const char *uri, | |||
476 | /* NG API */ | 476 | /* NG API */ |
477 | #include "gnunet_nt_lib.h" | 477 | #include "gnunet_nt_lib.h" |
478 | 478 | ||
479 | /** | ||
480 | * Key used for storing HELLOs in the peerstore | ||
481 | */ | ||
482 | #define GNUNET_HELLO_PEERSTORE_KEY "hello" | ||
479 | 483 | ||
480 | /** | 484 | /** |
481 | * Build address record by signing raw information with private key. | 485 | * Build address record by signing raw information with private key. |
@@ -501,7 +505,7 @@ GNUNET_HELLO_sign_address (const char *address, | |||
501 | * | 505 | * |
502 | * @param raw raw signed address | 506 | * @param raw raw signed address |
503 | * @param raw_size size of @a raw | 507 | * @param raw_size size of @a raw |
504 | * @param public_key public key to use for signature verification | 508 | * @param pid public key to use for signature verification |
505 | * @param nt[out] set to network type | 509 | * @param nt[out] set to network type |
506 | * @param expiration[out] how long is the address valid | 510 | * @param expiration[out] how long is the address valid |
507 | * @return NULL on error, otherwise the address | 511 | * @return NULL on error, otherwise the address |
@@ -509,7 +513,7 @@ GNUNET_HELLO_sign_address (const char *address, | |||
509 | char * | 513 | char * |
510 | GNUNET_HELLO_extract_address (const void *raw, | 514 | GNUNET_HELLO_extract_address (const void *raw, |
511 | size_t raw_size, | 515 | size_t raw_size, |
512 | const struct GNUNET_CRYPTO_EddsaPublicKey *public_key, | 516 | const struct GNUNET_PeerIdentity *pid, |
513 | enum GNUNET_NetworkType *nt, | 517 | enum GNUNET_NetworkType *nt, |
514 | struct GNUNET_TIME_Absolute *expiration); | 518 | struct GNUNET_TIME_Absolute *expiration); |
515 | 519 | ||