diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-01-09 12:22:04 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-01-09 12:22:04 +0100 |
commit | ec19c1e316efdd29a7af0524fc2ff33cc4b19d09 (patch) | |
tree | 184a59ff1c8408c462254e53f7e2004be829e237 /src/util/strings.c | |
parent | c3ecadd45b11f82e22ba81b42864c7826d0f97c6 (diff) | |
download | gnunet-ec19c1e316efdd29a7af0524fc2ff33cc4b19d09.tar.gz gnunet-ec19c1e316efdd29a7af0524fc2ff33cc4b19d09.zip |
DHT: modify API and protocol messages to add path signatures, except for now the actual signatures are just placeholders (signing and signature verification are missing)
Diffstat (limited to 'src/util/strings.c')
-rw-r--r-- | src/util/strings.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/util/strings.c b/src/util/strings.c index db672da87..76125b92e 100644 --- a/src/util/strings.c +++ b/src/util/strings.c | |||
@@ -69,29 +69,6 @@ GNUNET_STRINGS_buffer_fill (char *buffer, | |||
69 | } | 69 | } |
70 | 70 | ||
71 | 71 | ||
72 | char * | ||
73 | GNUNET_STRINGS_pp2s (const struct GNUNET_PeerIdentity *pids, | ||
74 | unsigned int num_pids) | ||
75 | { | ||
76 | char *buf; | ||
77 | size_t off; | ||
78 | size_t plen = num_pids * 5 + 1; | ||
79 | |||
80 | GNUNET_assert (num_pids < UINT32_MAX / 5); | ||
81 | off = 0; | ||
82 | buf = GNUNET_malloc (plen); | ||
83 | for (unsigned int i = 0; i < num_pids; i++) | ||
84 | { | ||
85 | off += GNUNET_snprintf (&buf[off], | ||
86 | plen - off, | ||
87 | "%s%s", | ||
88 | GNUNET_i2s (&pids[i]), | ||
89 | (i == num_pids - 1) ? "" : "-"); | ||
90 | } | ||
91 | return buf; | ||
92 | } | ||
93 | |||
94 | |||
95 | unsigned int | 72 | unsigned int |
96 | GNUNET_STRINGS_buffer_tokenize (const char *buffer, | 73 | GNUNET_STRINGS_buffer_tokenize (const char *buffer, |
97 | size_t size, | 74 | size_t size, |