diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-05-29 11:17:49 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-05-29 11:17:49 +0200 |
commit | e3a229625e138820d7a2d891c0b038d3f4d8f875 (patch) | |
tree | b1f1420f9f0cf3fa9168c06a653c9592aa07a6ff /src/include | |
parent | 4e3c1c6b12ae5e4ba025413a95f126c3774e3d3a (diff) | |
download | gnunet-e3a229625e138820d7a2d891c0b038d3f4d8f875.tar.gz gnunet-e3a229625e138820d7a2d891c0b038d3f4d8f875.zip |
fix #5734
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_dnsparser_lib.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/include/gnunet_dnsparser_lib.h b/src/include/gnunet_dnsparser_lib.h index 04b09fbc4..6f81c8e04 100644 --- a/src/include/gnunet_dnsparser_lib.h +++ b/src/include/gnunet_dnsparser_lib.h | |||
@@ -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 | ||
@@ -86,6 +86,7 @@ | |||
86 | #define GNUNET_DNSPARSER_TYPE_TSIG 250 | 86 | #define GNUNET_DNSPARSER_TYPE_TSIG 250 |
87 | #define GNUNET_DNSPARSER_TYPE_ALL 255 | 87 | #define GNUNET_DNSPARSER_TYPE_ALL 255 |
88 | #define GNUNET_DNSPARSER_TYPE_URI 256 | 88 | #define GNUNET_DNSPARSER_TYPE_URI 256 |
89 | #define GNUNET_DNSPARSER_TYPE_CAA 257 | ||
89 | #define GNUNET_DNSPARSER_TYPE_TA 32768 | 90 | #define GNUNET_DNSPARSER_TYPE_TA 32768 |
90 | 91 | ||
91 | /** | 92 | /** |
@@ -399,6 +400,26 @@ struct GNUNET_DNSPARSER_SoaRecord | |||
399 | 400 | ||
400 | 401 | ||
401 | /** | 402 | /** |
403 | * Information from CAA records (RFC 6844). | ||
404 | * The tag is followed by the tag_len. | ||
405 | * The value is followed by the tag for (d - tag_len - 2) bytes | ||
406 | */ | ||
407 | struct GNUNET_DNSPARSER_CaaRecord | ||
408 | { | ||
409 | /** | ||
410 | * The flags of the CAA record. | ||
411 | */ | ||
412 | uint8_t flags; | ||
413 | |||
414 | /** | ||
415 | * The length of the tag. | ||
416 | */ | ||
417 | uint8_t tag_len; | ||
418 | }; | ||
419 | |||
420 | |||
421 | |||
422 | /** | ||
402 | * Binary record information (unparsed). | 423 | * Binary record information (unparsed). |
403 | */ | 424 | */ |
404 | struct GNUNET_DNSPARSER_RawRecord | 425 | struct GNUNET_DNSPARSER_RawRecord |