WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "gnunet_hello_lib.h"
#include "gnunet_protocols.h"
#include "gnunet_util_lib.h"
+#include "gnunet_ats_service.h"
/**
* Binary block we sign when we sign an address.
struct SignedAddress sa;
struct GNUNET_CRYPTO_EddsaSignature sig;
char *sig_str;
-
+
sa.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS);
sa.purpose.size = htonl (sizeof (sa));
sa.expiration = GNUNET_TIME_absolute_hton (expiration);
(unsigned long long) expiration.abs_value_us,
(unsigned int) nt,
address);
- GNUNET_free (sig_str);
+ GNUNET_free (sig_str);
}
-
+
/**
* Check signature and extract address record.
*
return NULL;
}
raw_addr = sc3 + 1;
-
+
sa.purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS);
sa.purpose.size = htonl (sizeof (sa));
sa.expiration = GNUNET_TIME_absolute_hton (raw_expiration);
*nt = (enum GNUNET_ATS_Network_Type) raw_nt;
return GNUNET_strdup (raw_addr);
}
-
-