aboutsummaryrefslogtreecommitdiff
path: root/src/dns
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-07 00:24:59 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-07 00:24:59 +0000
commit222e534eed64a24d843e0ee676579ea9b6264bbc (patch)
tree697ecd3137dbb87428be857fad1134787fc951bc /src/dns
parent0925fad2014e4910d44bb4d9d9681da4e6962e49 (diff)
downloadgnunet-222e534eed64a24d843e0ee676579ea9b6264bbc.tar.gz
gnunet-222e534eed64a24d843e0ee676579ea9b6264bbc.zip
more tlsa fixes
Diffstat (limited to 'src/dns')
-rw-r--r--src/dns/dnsparser.c37
1 files changed, 36 insertions, 1 deletions
diff --git a/src/dns/dnsparser.c b/src/dns/dnsparser.c
index 338591644..97f47333b 100644
--- a/src/dns/dnsparser.c
+++ b/src/dns/dnsparser.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet 2 This file is part of GNUnet
3 (C) 2010-2013 Christian Grothoff (and other contributing authors) 3 (C) 2010-2014 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -1229,4 +1229,39 @@ GNUNET_DNSPARSER_pack (const struct GNUNET_DNSPARSER_Packet *p,
1229 return GNUNET_OK; 1229 return GNUNET_OK;
1230} 1230}
1231 1231
1232
1233/**
1234 * Convert a block of binary data to HEX.
1235 *
1236 * @param data binary data to convert
1237 * @param data_size number of bytes in @a data
1238 * @return HEX string (lower case)
1239 */
1240char *
1241GNUNET_DNSPARSER_bin_to_hex (const void *data,
1242 size_t data_size)
1243{
1244 GNUNET_break (0); // FIXME: not implemented
1245 return NULL;
1246}
1247
1248
1249/**
1250 * Convert a HEX string to block of binary data.
1251 *
1252 * @param hex HEX string to convert (may contain mixed case)
1253 * @param data where to write result, must be
1254 * at least `strlen(hex)/2` bytes long
1255 * @return number of bytes written to data
1256 */
1257size_t
1258GNUNET_DNSPARSER_hex_to_bin (const char *hex,
1259 void *data)
1260{
1261 GNUNET_break (0); // FIXME: not implemented
1262 return 0;
1263}
1264
1265
1266
1232/* end of dnsparser.c */ 1267/* end of dnsparser.c */