diff options
Diffstat (limited to 'src/include/gnunet_hello_lib.h')
-rw-r--r-- | src/include/gnunet_hello_lib.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/include/gnunet_hello_lib.h b/src/include/gnunet_hello_lib.h index e19419f25..ceaa60466 100644 --- a/src/include/gnunet_hello_lib.h +++ b/src/include/gnunet_hello_lib.h | |||
@@ -42,7 +42,6 @@ extern "C" | |||
42 | 42 | ||
43 | #include "gnunet_util_lib.h" | 43 | #include "gnunet_util_lib.h" |
44 | 44 | ||
45 | |||
46 | /** | 45 | /** |
47 | * Prefix that every HELLO URI must start with. | 46 | * Prefix that every HELLO URI must start with. |
48 | */ | 47 | */ |
@@ -475,11 +474,18 @@ GNUNET_HELLO_parse_uri (const char *uri, | |||
475 | 474 | ||
476 | 475 | ||
477 | /* NG API */ | 476 | /* NG API */ |
477 | /** | ||
478 | * Defined in gnunet_ats_service.h, but here we do not care about | ||
479 | * the details so are just giving the declaration. | ||
480 | */ | ||
481 | enum GNUNET_ATS_Network_Type; | ||
482 | |||
478 | 483 | ||
479 | /** | 484 | /** |
480 | * Build address record by signing raw information with private key. | 485 | * Build address record by signing raw information with private key. |
481 | * | 486 | * |
482 | * @param address text address to sign | 487 | * @param address text address to sign |
488 | * @param nt network type of @a address | ||
483 | * @param expiration how long is @a address valid | 489 | * @param expiration how long is @a address valid |
484 | * @param private_key signing key to use | 490 | * @param private_key signing key to use |
485 | * @param result[out] where to write address record (allocated) | 491 | * @param result[out] where to write address record (allocated) |
@@ -487,6 +493,7 @@ GNUNET_HELLO_parse_uri (const char *uri, | |||
487 | */ | 493 | */ |
488 | void | 494 | void |
489 | GNUNET_HELLO_sign_address (const char *address, | 495 | GNUNET_HELLO_sign_address (const char *address, |
496 | enum GNUNET_ATS_Network_Type nt, | ||
490 | struct GNUNET_TIME_Absolute expiration, | 497 | struct GNUNET_TIME_Absolute expiration, |
491 | const struct GNUNET_CRYPTO_EddsaPrivateKey *private_key, | 498 | const struct GNUNET_CRYPTO_EddsaPrivateKey *private_key, |
492 | void **result, | 499 | void **result, |
@@ -499,6 +506,7 @@ GNUNET_HELLO_sign_address (const char *address, | |||
499 | * @param raw raw signed address | 506 | * @param raw raw signed address |
500 | * @param raw_size size of @a raw | 507 | * @param raw_size size of @a raw |
501 | * @param public_key public key to use for signature verification | 508 | * @param public_key public key to use for signature verification |
509 | * @param nt[out] set to network type | ||
502 | * @param expiration[out] how long is the address valid | 510 | * @param expiration[out] how long is the address valid |
503 | * @return NULL on error, otherwise the address | 511 | * @return NULL on error, otherwise the address |
504 | */ | 512 | */ |
@@ -506,6 +514,7 @@ char * | |||
506 | GNUNET_HELLO_extract_address (const void *raw, | 514 | GNUNET_HELLO_extract_address (const void *raw, |
507 | size_t raw_size, | 515 | size_t raw_size, |
508 | const struct GNUNET_CRYPTO_EddsaPublicKey *public_key, | 516 | const struct GNUNET_CRYPTO_EddsaPublicKey *public_key, |
517 | enum GNUNET_ATS_Network_Type *nt, | ||
509 | struct GNUNET_TIME_Absolute *expiration); | 518 | struct GNUNET_TIME_Absolute *expiration); |
510 | 519 | ||
511 | 520 | ||