diff options
author | lurchi <lurchi@strangeplace.net> | 2019-06-29 12:59:02 +0200 |
---|---|---|
committer | lurchi <lurchi@strangeplace.net> | 2019-06-29 12:59:02 +0200 |
commit | 8c057274e457ad64aefaf2e3d08925617c928752 (patch) | |
tree | 1af6cd402e2587175bf8cfca945b54e6dbcc45f1 /src/nat/gnunet-service-nat_helper.h | |
parent | 9c7302e9d253a243b7bb2887bb6e62c31a874278 (diff) | |
download | gnunet-8c057274e457ad64aefaf2e3d08925617c928752.tar.gz gnunet-8c057274e457ad64aefaf2e3d08925617c928752.zip |
use GNUNET_OS_get_suid_binary_path to construct suid helper paths
Diffstat (limited to 'src/nat/gnunet-service-nat_helper.h')
-rw-r--r-- | src/nat/gnunet-service-nat_helper.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nat/gnunet-service-nat_helper.h b/src/nat/gnunet-service-nat_helper.h index d9294d949..4c39a374c 100644 --- a/src/nat/gnunet-service-nat_helper.h +++ b/src/nat/gnunet-service-nat_helper.h | |||
@@ -53,12 +53,14 @@ typedef void | |||
53 | * @param internal_address | 53 | * @param internal_address |
54 | * @param cb function to call if we receive a request | 54 | * @param cb function to call if we receive a request |
55 | * @param cb_cls closure for @a cb | 55 | * @param cb_cls closure for @a cb |
56 | * @param cfg handle to the GNUnet configuration | ||
56 | * @return NULL on error | 57 | * @return NULL on error |
57 | */ | 58 | */ |
58 | struct HelperContext * | 59 | struct HelperContext * |
59 | GN_start_gnunet_nat_server_ (const struct in_addr *internal_address, | 60 | GN_start_gnunet_nat_server_ (const struct in_addr *internal_address, |
60 | GN_ReversalCallback cb, | 61 | GN_ReversalCallback cb, |
61 | void *cb_cls); | 62 | void *cb_cls, |
63 | const struct GNUNET_CONFIGURATION_Handle *cfg); | ||
62 | 64 | ||
63 | 65 | ||
64 | /** | 66 | /** |
@@ -79,13 +81,15 @@ GN_stop_gnunet_nat_server_ (struct HelperContext *h); | |||
79 | * @param internal_address out internal address to use | 81 | * @param internal_address out internal address to use |
80 | * @param internal_port internal port to use | 82 | * @param internal_port internal port to use |
81 | * @param remote_v4 the address of the peer (IPv4-only) | 83 | * @param remote_v4 the address of the peer (IPv4-only) |
84 | * @param cfg handle to the GNUnet configuration | ||
82 | * @return #GNUNET_SYSERR on error, | 85 | * @return #GNUNET_SYSERR on error, |
83 | * #GNUNET_OK otherwise | 86 | * #GNUNET_OK otherwise |
84 | */ | 87 | */ |
85 | int | 88 | int |
86 | GN_request_connection_reversal (const struct in_addr *internal_address, | 89 | GN_request_connection_reversal (const struct in_addr *internal_address, |
87 | uint16_t internal_port, | 90 | uint16_t internal_port, |
88 | const struct in_addr *sa); | 91 | const struct in_addr *remote_v4, |
92 | const struct GNUNET_CONFIGURATION_Handle *cfg); | ||
89 | 93 | ||
90 | 94 | ||
91 | /* end of gnunet-service-nat_helper.h */ | 95 | /* end of gnunet-service-nat_helper.h */ |