From: Karel Slany Date: Mon, 13 Jul 2015 16:56:08 +0000 (+0200) Subject: liv/validate: added missing header file X-Git-Tag: v1.0.0-beta1~53^2~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=debb317c36c65653de9730a6547fda455d366362;p=thirdparty%2Fknot-resolver.git liv/validate: added missing header file --- diff --git a/lib/layer/validate.h b/lib/layer/validate.h new file mode 100644 index 000000000..b295fba4a --- /dev/null +++ b/lib/layer/validate.h @@ -0,0 +1,30 @@ +/* Copyright (C) 2015 CZ.NIC, z.s.p.o. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ + +#include + +//#define ROOT_TA ". IN DS 19036 8 2 49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5" +#define ROOT_TA ". IN DS 19036 RSASHA256 2 49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5" + +/** + * Parses the supplied trust anchor string and creates a new RRSet. + * + * @param rr created resource record + * @param ds_str DS in presentation format + * @param pool + * @return 0 or an error code + */ +int kr_ta_parse(knot_rrset_t **rr, const char *ds_str, mm_ctx_t *pool);