diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-11-22 21:09:20 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-11-22 21:09:20 +0100 |
commit | a3a300f43a354c786d74c1952aba6a7816157c97 (patch) | |
tree | 16ffa93bcc880a2c7c93b5c3287e6d95ac1b6ecc /src/hello/hello-ng.c | |
parent | 67935982582a31e4a75dc431feceee9664bca839 (diff) | |
download | gnunet-a3a300f43a354c786d74c1952aba6a7816157c97.tar.gz gnunet-a3a300f43a354c786d74c1952aba6a7816157c97.zip |
try to fix FTBFS of martin
Diffstat (limited to 'src/hello/hello-ng.c')
-rw-r--r-- | src/hello/hello-ng.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/hello/hello-ng.c b/src/hello/hello-ng.c index 46c83a7eb..fcd1808f4 100644 --- a/src/hello/hello-ng.c +++ b/src/hello/hello-ng.c | |||
@@ -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 | */ |
@@ -26,6 +26,7 @@ | |||
26 | #include "gnunet_hello_lib.h" | 26 | #include "gnunet_hello_lib.h" |
27 | #include "gnunet_protocols.h" | 27 | #include "gnunet_protocols.h" |
28 | #include "gnunet_util_lib.h" | 28 | #include "gnunet_util_lib.h" |
29 | #include "gnunet_ats_service.h" | ||
29 | 30 | ||
30 | /** | 31 | /** |
31 | * Binary block we sign when we sign an address. | 32 | * Binary block we sign when we sign an address. |
@@ -70,7 +71,7 @@ GNUNET_HELLO_sign_address (const char *address, | |||
70 | struct SignedAddress sa; | 71 | struct SignedAddress sa; |
71 | struct GNUNET_CRYPTO_EddsaSignature sig; | 72 | struct GNUNET_CRYPTO_EddsaSignature sig; |
72 | char *sig_str; | 73 | char *sig_str; |
73 | 74 | ||
74 | sa.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS); | 75 | sa.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS); |
75 | sa.purpose.size = htonl (sizeof (sa)); | 76 | sa.purpose.size = htonl (sizeof (sa)); |
76 | sa.expiration = GNUNET_TIME_absolute_hton (expiration); | 77 | sa.expiration = GNUNET_TIME_absolute_hton (expiration); |
@@ -91,10 +92,10 @@ GNUNET_HELLO_sign_address (const char *address, | |||
91 | (unsigned long long) expiration.abs_value_us, | 92 | (unsigned long long) expiration.abs_value_us, |
92 | (unsigned int) nt, | 93 | (unsigned int) nt, |
93 | address); | 94 | address); |
94 | GNUNET_free (sig_str); | 95 | GNUNET_free (sig_str); |
95 | } | 96 | } |
96 | 97 | ||
97 | 98 | ||
98 | /** | 99 | /** |
99 | * Check signature and extract address record. | 100 | * Check signature and extract address record. |
100 | * | 101 | * |
@@ -168,7 +169,7 @@ GNUNET_HELLO_extract_address (const void *raw, | |||
168 | return NULL; | 169 | return NULL; |
169 | } | 170 | } |
170 | raw_addr = sc3 + 1; | 171 | raw_addr = sc3 + 1; |
171 | 172 | ||
172 | sa.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS); | 173 | sa.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS); |
173 | sa.purpose.size = htonl (sizeof (sa)); | 174 | sa.purpose.size = htonl (sizeof (sa)); |
174 | sa.expiration = GNUNET_TIME_absolute_hton (raw_expiration); | 175 | sa.expiration = GNUNET_TIME_absolute_hton (raw_expiration); |
@@ -190,5 +191,3 @@ GNUNET_HELLO_extract_address (const void *raw, | |||
190 | *nt = (enum GNUNET_ATS_Network_Type) raw_nt; | 191 | *nt = (enum GNUNET_ATS_Network_Type) raw_nt; |
191 | return GNUNET_strdup (raw_addr); | 192 | return GNUNET_strdup (raw_addr); |
192 | } | 193 | } |
193 | |||
194 | |||