mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Merge branch 'clean-bin-tests' into 'master'
clean up bin/tests, convert unit tests to ATF Closes #115 See merge request isc-projects/bind9!93
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
||||
4913. [test] Re-implemented older unit tests in bin/tests as ATF,
|
||||
removed the lib/tests unit testing library. [GL #115]
|
||||
|
||||
4912. [test] Improved the reliability of the 'cds' system test.
|
||||
[GL #136]
|
||||
|
||||
|
@@ -7,14 +7,12 @@
|
||||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
# $Id: Makefile.in,v 1.29 2009/10/05 12:07:08 fdupont Exp $
|
||||
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
SUBDIRS = named rndc dig delv dnssec tools tests nsupdate \
|
||||
check confgen @NZD_TOOLS@ @PYTHON_TOOLS@ @PKCS11_TOOLS@
|
||||
SUBDIRS = named rndc dig delv dnssec tools nsupdate check confgen \
|
||||
@NZD_TOOLS@ @PYTHON_TOOLS@ @PKCS11_TOOLS@ tests
|
||||
TARGETS =
|
||||
|
||||
@BIND9_MAKE_RULES@
|
||||
|
14
bin/tests/.gitignore
vendored
14
bin/tests/.gitignore
vendored
@@ -3,25 +3,11 @@ genrandom
|
||||
headerdep_test.sh
|
||||
nxtify
|
||||
sdig
|
||||
t_journal
|
||||
*_test
|
||||
t_atomic
|
||||
t_db
|
||||
gsstest
|
||||
t_dst
|
||||
t_hashes
|
||||
t_master
|
||||
t_mem
|
||||
t_names
|
||||
t_net
|
||||
t_rbt
|
||||
t_resolver
|
||||
t_sockaddr
|
||||
conf.sh
|
||||
dlopen
|
||||
keycreate
|
||||
keydelete
|
||||
gssapi_krb
|
||||
t_tasks
|
||||
t_timers
|
||||
makejournal
|
||||
|
@@ -32,238 +32,35 @@ ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
|
||||
|
||||
LIBS = @LIBS@
|
||||
|
||||
SUBDIR = atomic db dst master mem hashes names net rbt resolver \
|
||||
sockaddr tasks timers system @PKCS11_TOOLS@
|
||||
|
||||
SUBDIRS = system @PKCS11_TOOLS@
|
||||
TESTDIRS = system
|
||||
|
||||
# Test programs that are built by default:
|
||||
# cfg_test is needed for regenerating doc/misc/options
|
||||
# makejournal is needed by system tests
|
||||
# wire_test is needed for fuzz testing
|
||||
# other opptional test programs have been moved to ./optional
|
||||
|
||||
# Alphabetically
|
||||
TARGETS = @XTARGETS@ cfg_test@EXEEXT@ makejournal@EXEEXT@ \
|
||||
wire_test@EXEEXT@
|
||||
XTARGETS = all_tests
|
||||
TARGETS = cfg_test@EXEEXT@ makejournal@EXEEXT@ \
|
||||
wire_test@EXEEXT@ @XTARGETS@
|
||||
|
||||
# All the other tests are optional and not built by default.
|
||||
|
||||
# Alphabetically
|
||||
XTARGETS = adb_test@EXEEXT@ \
|
||||
byaddr_test@EXEEXT@ \
|
||||
backtrace_test@EXEEXT@ \
|
||||
backtrace_test_nosymtbl@EXEEXT@ \
|
||||
byname_test@EXEEXT@ \
|
||||
db_test@EXEEXT@ \
|
||||
entropy_test@EXEEXT@ \
|
||||
entropy2_test@EXEEXT@ \
|
||||
hash_test@EXEEXT@ \
|
||||
fsaccess_test@EXEEXT@ \
|
||||
inter_test@EXEEXT@ \
|
||||
keyboard_test@EXEEXT@ \
|
||||
lex_test@EXEEXT@ \
|
||||
lfsr_test@EXEEXT@ \
|
||||
log_test@EXEEXT@ \
|
||||
master_test@EXEEXT@ \
|
||||
mempool_test@EXEEXT@ \
|
||||
name_test@EXEEXT@ \
|
||||
nsecify@EXEEXT@ \
|
||||
ratelimiter_test@EXEEXT@ \
|
||||
rbt_test@EXEEXT@ \
|
||||
rwlock_test@EXEEXT@ \
|
||||
serial_test@EXEEXT@ \
|
||||
shutdown_test@EXEEXT@ \
|
||||
sig0_test@EXEEXT@ \
|
||||
sock_test@EXEEXT@ \
|
||||
sym_test@EXEEXT@ \
|
||||
task_test@EXEEXT@ \
|
||||
timer_test@EXEEXT@ \
|
||||
wire_test@EXEEXT@ \
|
||||
zone_test@EXEEXT@
|
||||
|
||||
# Alphabetically
|
||||
SRCS = cfg_test.c makejournal.c wire_test.c ${XSRCS}
|
||||
|
||||
XSRCS = adb_test.c \
|
||||
byaddr_test.c \
|
||||
backtrace_test.c \
|
||||
byname_test.c \
|
||||
db_test.c \
|
||||
entropy_test.c \
|
||||
entropy2_test.c \
|
||||
hash_test.c \
|
||||
fsaccess_test.c \
|
||||
inter_test.c \
|
||||
keyboard_test.c \
|
||||
lex_test.c \
|
||||
lfsr_test.c \
|
||||
log_test.c \
|
||||
master_test.c \
|
||||
mempool_test.c \
|
||||
name_test.c \
|
||||
nsecify.c \
|
||||
ratelimiter_test.c \
|
||||
rbt_test.c \
|
||||
rwlock_test.c \
|
||||
serial_test.c \
|
||||
shutdown_test.c \
|
||||
sig0_test.c \
|
||||
sock_test.c \
|
||||
sym_test.c \
|
||||
task_test.c \
|
||||
timer_test.c \
|
||||
wire_test.c \
|
||||
zone_test.c
|
||||
SRCS = cfg_test.c makejournal.c wire_test.c
|
||||
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
# disable optimization for backtrace test to get the expected result
|
||||
BTTEST_CFLAGS = ${BACKTRACECFLAGS} ${EXT_CFLAGS} ${ALL_CPPFLAGS} -g \
|
||||
${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
|
||||
.NOTPARALLEL:
|
||||
|
||||
all_tests: ${XTARGETS}
|
||||
|
||||
adb_test@EXEEXT@: adb_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ adb_test.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
backtrace_test_nosymtbl@EXEEXT@: ${srcdir}/backtrace_test.c ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} -o $@ \
|
||||
${srcdir}/backtrace_test.c ${ISCLIBS} ${LIBS}
|
||||
|
||||
backtrace_test@EXEEXT@: ${srcdir}/backtrace_test.c backtrace_test_nosymtbl@EXEEXT@
|
||||
#first step: create a first symbol table
|
||||
rm -f symtbl.c
|
||||
if test X${MKSYMTBL_PROGRAM} != X; then \
|
||||
${MKSYMTBL_PROGRAM} ${top_srcdir}/util/mksymtbl.pl \
|
||||
backtrace_test_nosymtbl@EXEEXT@; else \
|
||||
cp ${top_srcdir}/lib/isc/backtrace-emptytbl.c symtbl.c; fi
|
||||
#second step: build a binary with the first symbol table
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} \
|
||||
-o $@0 ${srcdir}/backtrace_test.c symtbl.c \
|
||||
${ISCNOSYMLIBS} ${LIBS}
|
||||
rm -f symtbl.c
|
||||
#third step: create a second symbol table
|
||||
if test X${MKSYMTBL_PROGRAM} != X; then \
|
||||
${MKSYMTBL_PROGRAM} ${top_srcdir}/util/mksymtbl.pl $@0; else \
|
||||
cp ${top_srcdir}/lib/isc/backtrace-emptytbl.c symtbl.c; fi
|
||||
#fourth step: build the final binary
|
||||
rm -f $@0
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${BTTEST_CFLAGS} ${LDFLAGS} \
|
||||
-o $@ ${srcdir}/backtrace_test.c symtbl.c ${ISCNOSYMLIBS} ${LIBS}
|
||||
rm -f symtbl.c
|
||||
|
||||
nsecify@EXEEXT@: nsecify.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ nsecify.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
byaddr_test@EXEEXT@: byaddr_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ byaddr_test.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
byname_test@EXEEXT@: byname_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ byname_test.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
lex_test@EXEEXT@: lex_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ lex_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
lfsr_test@EXEEXT@: lfsr_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ lfsr_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
log_test@EXEEXT@: log_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ log_test.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
name_test@EXEEXT@: name_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ name_test.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
hash_test@EXEEXT@: hash_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ hash_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
entropy_test@EXEEXT@: entropy_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ entropy_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
entropy2_test@EXEEXT@: entropy2_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ entropy2_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
sock_test@EXEEXT@: sock_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ sock_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
sym_test@EXEEXT@: sym_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ sym_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
task_test@EXEEXT@: task_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ task_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
shutdown_test@EXEEXT@: shutdown_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ shutdown_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
timer_test@EXEEXT@: timer_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ timer_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
ratelimiter_test@EXEEXT@: ratelimiter_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ratelimiter_test.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
rbt_test@EXEEXT@: rbt_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ rbt_test.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
rwlock_test@EXEEXT@: rwlock_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ rwlock_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
.PHONY:
|
||||
all_tests:
|
||||
echo "making depend in `pwd`/optional"; \
|
||||
(cd optional; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@)
|
||||
|
||||
wire_test@EXEEXT@: wire_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ wire_test.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
master_test@EXEEXT@: master_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ master_test.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
db_test@EXEEXT@: db_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ db_test.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
mempool_test@EXEEXT@: mempool_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ mempool_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
serial_test@EXEEXT@: serial_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ serial_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
zone_test@EXEEXT@: zone_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ zone_test.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
fsaccess_test@EXEEXT@: fsaccess_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ fsaccess_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
inter_test@EXEEXT@: inter_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ inter_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
keyboard_test@EXEEXT@: keyboard_test.@O@ ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ keyboard_test.@O@ \
|
||||
${ISCLIBS} ${LIBS}
|
||||
|
||||
sig0_test@EXEEXT@: sig0_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ sig0_test.@O@ \
|
||||
${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
|
||||
cfg_test@EXEEXT@: cfg_test.@O@ ${ISCCFGDEPLIBS} ${ISCDEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ cfg_test.@O@ \
|
||||
${ISCCFGLIBS} ${DNSLIBS} ${ISCLIBS} ${LIBS}
|
||||
@@ -276,9 +73,8 @@ distclean::
|
||||
rm -f headerdep_test.sh
|
||||
|
||||
clean distclean::
|
||||
rm -f ${TARGETS} ${XTARGETS}
|
||||
rm -f t_journal
|
||||
rm -f backtrace_test_symtbl.c
|
||||
rm -f ${TARGETS}
|
||||
( cd optional; $(MAKE) $@)
|
||||
|
||||
check: test
|
||||
|
||||
|
@@ -1,47 +0,0 @@
|
||||
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
@BIND9_MAKE_INCLUDES@
|
||||
|
||||
CINCLUDES = ${TEST_INCLUDES} ${DNS_INCLUDES} ${ISC_INCLUDES}
|
||||
|
||||
CDEFINES =
|
||||
CWARNINGS =
|
||||
|
||||
ISCLIBS = ../../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
|
||||
|
||||
ISCDEPLIBS = ../../../lib/isc/libisc.@A@
|
||||
|
||||
DEPLIBS = ${ISCDEPLIBS}
|
||||
|
||||
LIBS = ${ISCLIBS} @LIBS@
|
||||
|
||||
TLIB = ../../../lib/tests/libt_api.@A@
|
||||
|
||||
TARGETS = t_atomic@EXEEXT@
|
||||
|
||||
SRCS = t_atomic.c
|
||||
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
t_atomic@EXEEXT@: t_atomic.@O@ ${DEPLIBS} ${TLIB}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ t_atomic.@O@ ${TLIB} ${LIBS}
|
||||
|
||||
test: t_atomic@EXEEXT@
|
||||
-@./t_atomic@EXEEXT@ -c @top_srcdir@/t_config -b @srcdir@ -a
|
||||
|
||||
testhelp:
|
||||
@./t_atomic@EXEEXT@ -h
|
||||
|
||||
clean distclean::
|
||||
rm -f ${TARGETS}
|
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\t_atomic.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
@@ -1,110 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|@PLATFORM@">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>@PLATFORM@</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|@PLATFORM@">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>@PLATFORM@</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{EC6ECB35-58C0-48EC-BAC9-9A652D9406C9}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>t_atomic</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>..\..\..\..\Build\$(Configuration)\</OutDir>
|
||||
<IntDir>.\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>..\..\..\..\Build\$(Configuration)\</OutDir>
|
||||
<IntDir>.\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<BrowseInformation>true</BrowseInformation>
|
||||
<AdditionalIncludeDirectories>.\;..\..\..\..\;@LIBXML2_INC@..\..\..\..\lib\isc\win32;..\..\..\..\lib\isc\win32\include;..\..\..\..\lib\isc\include;..\..\..\..\lib\dns\include;..\..\..\..\lib\tests\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<OutputFile>..\..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\lib\isc\win32\$(Configuration);..\..\..\..\lib\dns\win32\$(Configuration);..\..\..\..\lib\tests\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>@LIBXML2_LIB@libisc.lib;libdns.lib;libtests.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<StringPooling>true</StringPooling>
|
||||
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<AdditionalIncludeDirectories>.\;..\..\..\..\;@LIBXML2_INC@..\..\..\..\lib\isc\win32;..\..\..\..\lib\isc\win32\include;..\..\..\..\lib\isc\include;..\..\..\..\lib\dns\include;..\..\..\..\lib\tests\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<OutputFile>..\..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\lib\isc\win32\$(Configuration);..\..\..\..\lib\dns\win32\$(Configuration);..\..\..\..\lib\tests\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>@LIBXML2_LIB@libisc.lib;libdns.lib;libtests.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\t_atomic.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
@@ -1,3 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
@@ -1,57 +0,0 @@
|
||||
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
# $Id: b8t.mk,v 1.11 2007/06/19 23:46:59 tbox Exp $
|
||||
|
||||
#
|
||||
# bind 8 multi-host make
|
||||
# PLATFORM set in the environment by cron
|
||||
#
|
||||
|
||||
MODULE = bind
|
||||
BASE = /build
|
||||
BDIR = $(BASE)/$(MODULE)
|
||||
RDIR = /proj/build-reports/bind8/hosts/$(PLATFORM)
|
||||
SDIR = $(HOME)/b8t/src
|
||||
CVSROOT = /proj/cvs/isc
|
||||
|
||||
all: clobber populate config build
|
||||
|
||||
clobber:
|
||||
@echo "CLOBBBER `date`"
|
||||
@if test ! -d $(BASE) ; then mkdir -p $(BASE) ; fi
|
||||
@rm -fr $(BDIR)
|
||||
@echo "DONE `date`"
|
||||
|
||||
populate:
|
||||
@echo "POPULATE `date`"
|
||||
@( cd $(BASE) && tar -xvf $(SDIR)/$(MODULE).tar ) > $(RDIR)/.populate 2>&1
|
||||
@echo "DONE `date`"
|
||||
|
||||
tarsrc:
|
||||
@echo "TARSRC `date`"
|
||||
@rm -fr $(SDIR)/$(MODULE)
|
||||
@( cd $(SDIR) && cvs -d $(CVSROOT) checkout $(MODULE) )
|
||||
@( cd $(SDIR) && tar -cvf $(MODULE).tar $(MODULE) )
|
||||
@echo "DONE `date`"
|
||||
|
||||
config:
|
||||
@echo "CONFIG `date`"
|
||||
@( cd $(BDIR)/src && make SRC=$(BDIR)/src DST=$(BDIR)/dst links ) > $(RDIR)/.config 2>&1
|
||||
@echo "DONE `date`"
|
||||
|
||||
build:
|
||||
@echo "BUILD `date`"
|
||||
@( cd $(BDIR)/dst && make -k clean depend all ) > $(RDIR)/.build 2>&1
|
||||
@echo "DONE `date`"
|
||||
|
||||
test:
|
||||
@echo "TEST `date`"
|
||||
@touch $(RDIR)/.test
|
||||
@echo "DONE `date`"
|
@@ -1,62 +0,0 @@
|
||||
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
# $Id: b9t.mk,v 1.13 2007/06/19 23:46:59 tbox Exp $
|
||||
|
||||
#
|
||||
# makefile to configure, build and test bind9
|
||||
# this is run by cron (user wpk) on aa, sol, irix, hp and aix
|
||||
# $PLATFORM is set in the environment by cron
|
||||
#
|
||||
|
||||
BASE = /build
|
||||
BDIR = $(BASE)
|
||||
MODULE = bind9
|
||||
SDIR = $(HOME)/b9t/src
|
||||
|
||||
# as it says
|
||||
CVSROOT = /proj/cvs/isc
|
||||
|
||||
# where the config, build and test output goes
|
||||
RDIR = /proj/build-reports/$(MODULE)/hosts/$(PLATFORM)
|
||||
|
||||
all: clobber populate config build test
|
||||
|
||||
clobber:
|
||||
@echo "CLOBBBER `date`"
|
||||
@if test ! -d $(BDIR) ; then mkdir -p $(BDIR) > /dev/null 2>&1 ; fi
|
||||
@( cd $(BDIR) && rm -fr $(MODULE) )
|
||||
@echo "DONE `date`"
|
||||
|
||||
populate:
|
||||
@echo "POPULATE `date`"
|
||||
@( cd $(BDIR) && tar -xvf $(SDIR)/$(MODULE).tar ) > $(RDIR)/.populate 2>&1
|
||||
@echo "DONE `date`"
|
||||
|
||||
config:
|
||||
@echo "CONFIG `date`"
|
||||
@( cd $(BDIR)/$(MODULE) && ./configure ) > $(RDIR)/.config 2>&1
|
||||
@echo "DONE `date`"
|
||||
|
||||
build:
|
||||
@echo "BUILD `date`"
|
||||
@( cd $(BDIR)/$(MODULE) && $(MAKE) -k all ) > $(RDIR)/.build 2>&1
|
||||
@echo "DONE `date`"
|
||||
|
||||
test:
|
||||
@echo "TEST `date`"
|
||||
-@( cd $(BDIR)/$(MODULE)/bin/tests && $(MAKE) test ) > $(RDIR)/.test 2>&1
|
||||
@echo "DONE `date`"
|
||||
|
||||
tarsrc:
|
||||
@echo "TARSRC `date`"
|
||||
@rm -fr $(SDIR)/$(MODULE)
|
||||
@( cd $(SDIR) && cvs -d $(CVSROOT) checkout $(MODULE) && tar -cvf $(MODULE).tar $(MODULE) )
|
||||
@echo "DONE `date`"
|
||||
|
@@ -1,52 +0,0 @@
|
||||
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
@BIND9_MAKE_INCLUDES@
|
||||
|
||||
CINCLUDES = ${TEST_INCLUDES} ${DNS_INCLUDES} \
|
||||
${ISC_INCLUDES} @DST_OPENSSL_INC@
|
||||
|
||||
CDEFINES = @CRYPTO@
|
||||
CWARNINGS =
|
||||
|
||||
DNSLIBS = ../../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
|
||||
ISCLIBS = ../../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
|
||||
ISCCFGLIBS = ../../../lib/isccfg/libisccfg.@A@
|
||||
|
||||
DNSDEPLIBS = ../../../lib/dns/libdns.@A@
|
||||
ISCDEPLIBS = ../../../lib/isc/libisc.@A@
|
||||
ISCCFGDEPLIBS = ../../../lib/isccfg/libisccfg.@A@
|
||||
|
||||
DEPLIBS = ${DNSDEPLIBS} ${ISCCFGDEPLIBS} ${ISCDEPLIBS}
|
||||
|
||||
LIBS = ${DNSLIBS} ${ISCCFGLIBS} ${ISCLIBS} @LIBS@
|
||||
|
||||
TLIB = ../../../lib/tests/libt_api.@A@
|
||||
|
||||
SRCS = t_db.c
|
||||
|
||||
TARGETS = t_db@EXEEXT@
|
||||
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
t_db@EXEEXT@: t_db.@O@ ${DEPLIBS} ${TLIB}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ t_db.@O@ ${TLIB} ${LIBS}
|
||||
|
||||
test: t_db@EXEEXT@
|
||||
-@./t_db@EXEEXT@ -c @top_srcdir@/t_config -b @srcdir@ -a
|
||||
|
||||
testhelp:
|
||||
@./t_db -h
|
||||
|
||||
clean distclean::
|
||||
rm -f ${TARGETS}
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,9 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_class
|
||||
#
|
||||
# format:
|
||||
# filename class
|
||||
#
|
||||
#
|
||||
dns_db_class_1.data in
|
||||
# dns_db_class_1.data any
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_closeversion test 1
|
||||
#
|
||||
# format:
|
||||
# filename type origin class cache new_name new_type existing_name existing_type
|
||||
#
|
||||
dns_db_closeversion_1.data rbt vix.com. in zone a.b.c.vix.com. A a.vix.com. NS
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_closeversion test 2
|
||||
#
|
||||
# format:
|
||||
# filename type origin class cache new_name new_type existing_name existing_type
|
||||
#
|
||||
dns_db_closeversion_1.data rbt vix.com. in zone a.b.c.vix.com. A a.vix.com. NS
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a.b.c.vix.com. a 1.2.3.4
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_currentversion
|
||||
#
|
||||
# format:
|
||||
# filename findname findtype
|
||||
#
|
||||
dns_db_currentversion.data rbt vix.com. IN zone a.b.c.vix.com. A
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_expirenode
|
||||
#
|
||||
# format:
|
||||
# filename type origin class existing_name existing_type
|
||||
#
|
||||
dns_db_expirenode.data rbt vix.com. in a.vix.com. 10000 0 ISC_R_NOTFOUND
|
@@ -1,12 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
||||
a.b.c in ns b
|
@@ -1,10 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
|
||||
a.b.c in NS ns1.vix.com.
|
||||
a.b.c in A 1.2.3.4
|
@@ -1,8 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_find expiration time handling
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_10.data rbt vix.com. in cache a.b.c.vix.com. NS 0 1010 ISC_R_NOTFOUND
|
||||
dns_db_find_10.data rbt vix.com. in cache a.b.c.vix.com. NS 0 0 ISC_R_SUCCESS
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_find best match
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_1.data rbt vix.com. in zone a.b.c.vix.com. NS DNS_DB_GLUEOK 0 DNS_R_DELEGATION
|
@@ -1,9 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
fx in ns a.fx.vix.com.
|
||||
a.fx in a 1.2.3.4
|
@@ -1,9 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_find DNS_R_GLUE
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_2.data rbt vix.com. in zone a.fx.vix.com. A DNS_DBFIND_GLUEOK 0 DNS_R_GLUE
|
||||
dns_db_find_2.data rbt vix.com. in zone fx.vix.com. NS DNS_DBFIND_GLUEOK 0 DNS_R_GLUE
|
||||
dns_db_find_2.data rbt vix.com. in zone a.fx.vix.com. NS DNS_DBFIND_GLUEOK 0 DNS_R_DELEGATION
|
@@ -1,10 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a.b.c in ns b
|
||||
a.a.b.c in a 10.0.0.1
|
||||
b in a 10.0.0.2
|
@@ -1,9 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_find DNS_R_DELAGATION
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_3.data rbt vix.com. in zone a.b.c.vix.com. NS DNS_DB_GLUEOK 0 DNS_R_DELEGATION
|
||||
dns_db_find_3.data rbt vix.com. in zone a.a.b.c.vix.com. NS DNS_DB_GLUEOK 0 DNS_R_DELEGATION
|
||||
dns_db_find_3.data rbt vix.com. in zone a.a.b.c.vix.com. A DNS_DB_GLUEOK 0 DNS_R_DELEGATION
|
@@ -1,9 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a.b.c in ns b
|
||||
b.a.b.c in a 10.0.0.2
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_find DNS_R_DELEGATION
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_4.data rbt vix.com. in zone a.b.c.vix.com. ANY 0 0 DNS_R_DELEGATION
|
@@ -1,10 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a.b.c in DNAME x.y.z
|
||||
a.x.y.z in A 1.2.3.4
|
||||
|
@@ -1,8 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_find DNS_R_DNAME
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_5.data rbt vix.com. in zone x.a.b.c.vix.com. ANY 0 0 DNS_R_DNAME
|
||||
dns_db_find_5.data rbt vix.com. in zone a.a.b.c.vix.com. ANY 0 0 DNS_R_DNAME
|
@@ -1,10 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
exploder in CNAME mx
|
||||
mx in A 1.2.3.4
|
||||
|
@@ -1,8 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_find DNS_R_CNAME
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_6.data rbt vix.com. in zone exploder.vix.com. A 0 0 DNS_R_CNAME
|
||||
dns_db_find_6.data rbt vix.com. in zone exploder.vix.com. ANY 0 0 ISC_R_SUCCESS
|
@@ -1,12 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
|
||||
a.b.c.d in A 1.2.3.4
|
||||
a.b in A 1.2.3.4
|
||||
a in NS ns1.vix.com.
|
||||
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_find DNS_R_NXDOMAIN
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_7.data rbt vix.com. in zone a.b.c.vix.com. ANY 0 0 DNS_R_NXDOMAIN
|
@@ -1,13 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
|
||||
a.b.c.d in A 1.2.3.4
|
||||
a.b.c in A 1.2.3.4
|
||||
a.b in A 1.2.3.4
|
||||
a in NS ns1.vix.com.
|
||||
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_find DNS_R_NXRRSET
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_8.data rbt vix.com. in zone a.b.c.vix.com. NS 0 0 DNS_R_NXRRSET
|
@@ -1,13 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
|
||||
a.b.c.d in NS ns1.vix.com.
|
||||
a.b.c in A 1.2.3.4
|
||||
a.b in NS ns1.vix.com.
|
||||
a in NS ns1.vix.com.
|
||||
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_find ISC_R_NOTFOUND
|
||||
#
|
||||
# format:
|
||||
# dbfile dbtype dborigin dbclass dbcache findname findtype findopts findtime expected_results
|
||||
#
|
||||
dns_db_find_9.data rbt vix.com. in cache a.b.c.vix.com. NS 0 0 ISC_R_NOTFOUND
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,9 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_findnode, case ISC_R_SUCCESS
|
||||
#
|
||||
# format:
|
||||
# filename type origin class cache existingname rdatatype
|
||||
#
|
||||
dns_db_findnode_1.data rbt vix.com. in zone a.vix.com. NS ISC_R_SUCCESS
|
||||
dns_db_findnode_1.data rbt vix.com. in zone b.vix.com. A ISC_R_SUCCESS
|
||||
dns_db_findnode_1.data rbt vix.com. in zone c.vix.com. A ISC_R_NOTFOUND
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_findnode 2
|
||||
#
|
||||
# format:
|
||||
# filename type origin class cache newname
|
||||
#
|
||||
dns_db_findnode_2.data rbt vix.com. in zone a.b.c.vix.com.
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_iscache test 1
|
||||
#
|
||||
# format:
|
||||
# filename db_type origin class
|
||||
#
|
||||
dns_db_iscache_1.data rbt . in
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_iscache test 1
|
||||
#
|
||||
# format:
|
||||
# filename db_type origin class
|
||||
#
|
||||
dns_db_iscache_2.data rbt . in
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_iszone test 1
|
||||
#
|
||||
# format:
|
||||
# filename db_type origin class
|
||||
#
|
||||
dns_db_iszone_1.data rbt . in
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_iszone test 2
|
||||
#
|
||||
# format:
|
||||
# filename db_type origin class
|
||||
#
|
||||
dns_db_iszone_2.data rbt . in
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,6 +0,0 @@
|
||||
$TTL 5
|
||||
@ IN SOA ns1 hostmaster 1 3600 1200 3600000 3600
|
||||
@ IN NS ns1
|
||||
ns1 IN A 10.0.0.1
|
||||
sub IN SOA ns2 hostmaster 1 3600 1200 3600000 3600
|
||||
ns2 IN A 10.0.0.2
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_load
|
||||
#
|
||||
# format:
|
||||
# filename type origin cache class findname expected_result
|
||||
#
|
||||
dns_db_load_1.data rbt . zone in ISC_R_SUCCESS a. A DNS_R_DELEGATION
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_load_soa_not_top
|
||||
#
|
||||
# format:
|
||||
# filename type origin cache class findname expected_result
|
||||
#
|
||||
dns_db_load_25.data rbt . zone in DNS_R_NOTZONETOP a. A DNS_R_DELEGATION
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_newversion
|
||||
#
|
||||
# format:
|
||||
# filename type origin class cache newname newtype
|
||||
#
|
||||
dns_db_newversion.data rbt vix.com. in zone a.b.c.vix.com. A
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2.vix.com.
|
||||
a in ns ns3.vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,8 +0,0 @@
|
||||
#
|
||||
# test data for dns_db_origin
|
||||
#
|
||||
# format:
|
||||
# filename origin
|
||||
#
|
||||
dns_db_origin_1.data .
|
||||
dns_db_origin_1.data vix.com.
|
3143
bin/tests/db/t_db.c
3143
bin/tests/db/t_db.c
File diff suppressed because it is too large
Load Diff
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\t_db.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
@@ -1,110 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|@PLATFORM@">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>@PLATFORM@</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|@PLATFORM@">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>@PLATFORM@</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{E6338E67-3224-4E66-9463-7AD719DA9346}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>t_db</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>..\..\..\..\Build\$(Configuration)\</OutDir>
|
||||
<IntDir>.\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>..\..\..\..\Build\$(Configuration)\</OutDir>
|
||||
<IntDir>.\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<BrowseInformation>true</BrowseInformation>
|
||||
<AdditionalIncludeDirectories>.\;..\..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\..\..\lib\isc\win32;..\..\..\..\lib\isc\win32\include;..\..\..\..\lib\isc\include;..\..\..\..\lib\dns\include;..\..\..\..\lib\isccfg\include;..\..\..\..\lib\tests\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<OutputFile>..\..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\lib\isc\win32\$(Configuration);..\..\..\..\lib\dns\win32\$(Configuration);..\..\..\..\lib\isccfg\win32\$(Configuration);..\..\..\..\lib\tests\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>@LIBXML2_LIB@libisc.lib;libdns.lib;libisccfg.lib;libtests.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<StringPooling>true</StringPooling>
|
||||
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<AdditionalIncludeDirectories>.\;..\..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\..\..\lib\isc\win32;..\..\..\..\lib\isc\win32\include;..\..\..\..\lib\isc\include;..\..\..\..\lib\dns\include;..\..\..\..\lib\isccfg\include;..\..\..\..\lib\tests\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<OutputFile>..\..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\lib\isc\win32\$(Configuration);..\..\..\..\lib\dns\win32\$(Configuration);..\..\..\..\lib\isccfg\win32\$(Configuration);..\..\..\..\lib\tests\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>@LIBXML2_LIB@libisc.lib;libdns.lib;libisccfg.lib;libtests.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\t_db.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
@@ -1,3 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
@@ -1,46 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
# $Id: run-test.sh,v 1.3 2009/06/04 02:56:47 tbox Exp $
|
||||
|
||||
|
||||
sign="../../dnssec/dnssec-signzone -f signed.zone -o example.com."
|
||||
|
||||
signit() {
|
||||
rm -f signed.zone
|
||||
grep '^;' $zone
|
||||
$sign $zone
|
||||
}
|
||||
|
||||
expect_success() {
|
||||
if ! test -f signed.zone ; then
|
||||
echo "Error: expected success, but sign failed for $zone."
|
||||
else
|
||||
echo "Success: Sign succeeded for $zone."
|
||||
fi
|
||||
}
|
||||
|
||||
expect_failure() {
|
||||
if test -f signed.zone ; then
|
||||
echo "Error: expected failure, but sign succeeded for $zone."
|
||||
else
|
||||
echo "Success: Sign failed (expected) for $zone"
|
||||
fi
|
||||
}
|
||||
|
||||
zone="test1.zone" ; signit ; expect_success
|
||||
zone="test2.zone" ; signit ; expect_failure
|
||||
zone="test3.zone" ; signit ; expect_failure
|
||||
zone="test4.zone" ; signit ; expect_success
|
||||
zone="test5.zone" ; signit ; expect_failure
|
||||
zone="test6.zone" ; signit ; expect_failure
|
||||
zone="test7.zone" ; signit ; expect_failure
|
||||
zone="test8.zone" ; signit ; expect_failure
|
16
bin/tests/dst/.gitignore
vendored
16
bin/tests/dst/.gitignore
vendored
@@ -1,16 +0,0 @@
|
||||
randomfile
|
||||
Kdh.+002+18602.key
|
||||
Kdh.+002+18602.private
|
||||
Kdh.+002+48957.key
|
||||
Kdh.+002+48957.private
|
||||
Ktest.+001+00002.key
|
||||
Ktest.+001+54622.key
|
||||
Ktest.+001+54622.private
|
||||
Ktest.+003+23616.key
|
||||
Ktest.+003+23616.private
|
||||
Ktest.+003+49667.key
|
||||
dst_2_data
|
||||
t2_data_1
|
||||
t2_data_2
|
||||
t2_dsasig
|
||||
t2_rsasig
|
@@ -1 +0,0 @@
|
||||
dh. IN KEY 0 2 2 AAEBAAAAYIHI/wjtOagNga9GILSoS02IVelgLilPE/TfhtvShsiDAXqb IfxQcj2JkuOnNLs5ttb2WZXWl5/jsSjIxHMwMF2XY4gwt/lwHBf/vgYH r7aIxnKXov1jk9rymTLHGKIOtg==
|
@@ -1,6 +0,0 @@
|
||||
Private-key-format: v1.2
|
||||
Algorithm: 2 (DH)
|
||||
Prime(p): ///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxObIlFKCHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjo2IP//////////
|
||||
Generator(g): Ag==
|
||||
Private_value(x): bpdsGQ1jbV3f2CGN/0Pk5KM1MlkFmMryPO1J1zoGn585fRmc9Ygw6l/HKmi2ViiDNorvd9/eV9uyYO6lYZC82R3D7rST1mAqCwbg/8gNE5dXBRbRIIq3qIl6GUYYs8mK
|
||||
Public_value(y): gcj/CO05qA2Br0YgtKhLTYhV6WAuKU8T9N+G29KGyIMBepsh/FByPYmS46c0uzm21vZZldaXn+OxKMjEczAwXZdjiDC3+XAcF/++BgevtojGcpei/WOT2vKZMscYog62
|
@@ -1 +0,0 @@
|
||||
dh. IN KEY 0 2 2 AAEBAAAAYOuaKjyMXYame2F6/ZFdEmXv0a2edB+69PEZgrExA6SJlivn 4KqAsfBHr/+0BCb+7nfWeMDSh2BXnSzWkXF1wMaCHMuz9EleG1gKFKeV Q9gKli88Cb8/jbovWChrGBNp2w==
|
@@ -1,6 +0,0 @@
|
||||
Private-key-format: v1.2
|
||||
Algorithm: 2 (DH)
|
||||
Prime(p): ///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxObIlFKCHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjo2IP//////////
|
||||
Generator(g): Ag==
|
||||
Private_value(x): WJG0moh+QoZV+DYhqW7Z6O6TYpYGtSlN0Ym6JV6VRnzeH69OqMUFivqZorj3a3ofR/4zogNVyy5KLLj2NFTaLGP4Hcvt7uETJik6HrjLMhGf40QPXYgVK57Im0rv88Ca
|
||||
Public_value(y): 65oqPIxdhqZ7YXr9kV0SZe/RrZ50H7r08RmCsTEDpImWK+fgqoCx8Eev/7QEJv7ud9Z4wNKHYFedLNaRcXXAxoIcy7P0SV4bWAoUp5VD2AqWLzwJvz+Nui9YKGsYE2nb
|
@@ -1,77 +0,0 @@
|
||||
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
@BIND9_MAKE_INCLUDES@
|
||||
|
||||
CINCLUDES = ${TEST_INCLUDES} ${DNS_INCLUDES} \
|
||||
${ISC_INCLUDES} @DST_OPENSSL_INC@ @DST_GSSAPI_INC@
|
||||
|
||||
CDEFINES = @CRYPTO@ @USE_GSSAPI@
|
||||
CWARNINGS =
|
||||
|
||||
DNSLIBS = ../../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
|
||||
ISCLIBS = ../../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
|
||||
|
||||
DNSDEPLIBS = ../../../lib/dns/libdns.@A@
|
||||
ISCDEPLIBS = ../../../lib/isc/libisc.@A@
|
||||
|
||||
DEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS}
|
||||
|
||||
LIBS = ${DNSLIBS} ${ISCLIBS} @LIBS@
|
||||
|
||||
TLIB = ../../../lib/tests/libt_api.@A@
|
||||
|
||||
TARGETS = dst_test@EXEEXT@ t_dst@EXEEXT@ gsstest@EXEEXT@
|
||||
|
||||
SRCS = dst_test.c t_dst.c gsstest.c
|
||||
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
dst_test@EXEEXT@: dst_test.@O@ ${DEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
|
||||
dst_test.@O@ ${LIBS}
|
||||
|
||||
t_dst@EXEEXT@: t_dst.@O@ ${DEPLIBS} ${TLIB}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
|
||||
t_dst.@O@ ${TLIB} ${LIBS}
|
||||
|
||||
gsstest@EXEEXT@: gsstest.@O@ ${DEPLIBS}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
|
||||
gsstest.@O@ ${LIBS}
|
||||
|
||||
test: t_dst@EXEEXT@ randomfile
|
||||
../../tools/genrandom@EXEEXT@ 100 randomfile
|
||||
-@ ./t_dst@EXEEXT@ -q 1800 -a
|
||||
|
||||
randomfile:
|
||||
../../tools/genrandom@EXEEXT@ 100 randomfile
|
||||
|
||||
clean distclean::
|
||||
rm -f ${TARGETS} randomfile
|
||||
|
||||
distclean::
|
||||
rm -f Kdh.+002+18602.key
|
||||
rm -f Kdh.+002+18602.private
|
||||
rm -f Kdh.+002+48957.key
|
||||
rm -f Kdh.+002+48957.private
|
||||
rm -f Ktest.+001+00002.key
|
||||
rm -f Ktest.+001+54622.key
|
||||
rm -f Ktest.+001+54622.private
|
||||
rm -f Ktest.+003+23616.key
|
||||
rm -f Ktest.+003+23616.private
|
||||
rm -f Ktest.+003+49667.key
|
||||
rm -f dst_2_data
|
||||
rm -f t2_data_1
|
||||
rm -f t2_data_2
|
||||
rm -f t2_dsasig
|
||||
rm -f t2_rsasig
|
@@ -1,16 +0,0 @@
|
||||
#
|
||||
# data for signature verification test
|
||||
#
|
||||
# format:
|
||||
# datafile, sigpath, keyname, keyid, alg, exp_result
|
||||
#
|
||||
t2_data_1 t2_dsasig test. 23616 DST_ALG_DSA ISC_R_SUCCESS
|
||||
t2_data_1 t2_rsasig test. 54622 DST_ALG_RSAMD5 ISC_R_SUCCESS
|
||||
# wrong sig
|
||||
t2_data_1 t2_dsasig test. 54622 DST_ALG_RSAMD5 !ISC_R_SUCCESS
|
||||
# wrong key
|
||||
#t2_data_1 t2_dsasig test. 54622 DST_ALG_DSA !ISC_R_SUCCESS
|
||||
# wrong alg
|
||||
#t2_data_1 t2_dsasig test. 23616 DST_ALG_RSAMD5 !ISC_R_SUCCESS
|
||||
# wrong data
|
||||
t2_data_2 t2_dsasig test. 23616 DST_ALG_DSA !ISC_R_SUCCESS
|
File diff suppressed because it is too large
Load Diff
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\t_dst.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
@@ -1,148 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|@PLATFORM@">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>@PLATFORM@</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|@PLATFORM@">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>@PLATFORM@</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{EE9B94CF-7C33-4F3B-A674-FB756D422C54}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>t_dst</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>..\..\..\..\Build\$(Configuration)\</OutDir>
|
||||
<IntDir>.\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>..\..\..\..\Build\$(Configuration)\</OutDir>
|
||||
<IntDir>.\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<BrowseInformation>true</BrowseInformation>
|
||||
<AdditionalIncludeDirectories>.\;..\..\..\..\;@LIBXML2_INC@..\..\..\..\lib\isc\win32;..\..\..\..\lib\isc\win32\include;..\..\..\..\lib\isc\include;..\..\..\..\lib\dns\include;..\..\..\..\lib\tests\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<OutputFile>..\..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\lib\isc\win32\$(Configuration);..\..\..\..\lib\dns\win32\$(Configuration);..\..\..\..\lib\tests\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>@LIBXML2_LIB@libisc.lib;libdns.lib;libtests.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
<PreBuildEvent>
|
||||
<Command>cd ..
|
||||
copy "Kdh.+002+18602.key.in" "Kdh.+002+18602.key"
|
||||
copy "Kdh.+002+18602.private.in" "Kdh.+002+18602.private"
|
||||
copy "Kdh.+002+48957.key.in" "Kdh.+002+48957.key"
|
||||
copy "Kdh.+002+48957.private.in" "Kdh.+002+48957.private"
|
||||
copy "Ktest.+001+00002.key.in" "Ktest.+001+00002.key"
|
||||
copy "Ktest.+001+54622.key.in" "Ktest.+001+54622.key"
|
||||
copy "Ktest.+001+54622.private.in" "Ktest.+001+54622.private"
|
||||
copy "Ktest.+003+23616.key.in" "Ktest.+003+23616.key"
|
||||
copy "Ktest.+003+23616.private.in" "Ktest.+003+23616.private"
|
||||
copy "Ktest.+003+49667.key.in" "Ktest.+003+49667.key"
|
||||
copy dst_2_data.in dst_2_data
|
||||
copy t2_data_1.in t2_data_1
|
||||
copy t2_data_2.in t2_data_2
|
||||
copy t2_dsasig.in t2_dsasig
|
||||
copy t2_rsasig.in t2_rsasig
|
||||
</Command>
|
||||
</PreBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<StringPooling>true</StringPooling>
|
||||
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<AdditionalIncludeDirectories>.\;..\..\..\..\;@LIBXML2_INC@..\..\..\..\lib\isc\win32;..\..\..\..\lib\isc\win32\include;..\..\..\..\lib\isc\include;..\..\..\..\lib\dns\include;..\..\..\..\lib\tests\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<OutputFile>..\..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\lib\isc\win32\$(Configuration);..\..\..\..\lib\dns\win32\$(Configuration);..\..\..\..\lib\tests\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>@LIBXML2_LIB@libisc.lib;libdns.lib;libtests.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
<PreBuildEvent>
|
||||
<Command>cd ..
|
||||
copy "Kdh.+002+18602.key.in" "Kdh.+002+18602.key"
|
||||
copy "Kdh.+002+18602.private.in" "Kdh.+002+18602.private"
|
||||
copy "Kdh.+002+48957.key.in" "Kdh.+002+48957.key"
|
||||
copy "Kdh.+002+48957.private.in" "Kdh.+002+48957.private"
|
||||
copy "Ktest.+001+00002.key.in" "Ktest.+001+00002.key"
|
||||
copy "Ktest.+001+54622.key.in" "Ktest.+001+54622.key"
|
||||
copy "Ktest.+001+54622.private.in" "Ktest.+001+54622.private"
|
||||
copy "Ktest.+003+23616.key.in" "Ktest.+003+23616.key"
|
||||
copy "Ktest.+003+23616.private.in" "Ktest.+003+23616.private"
|
||||
copy "Ktest.+003+49667.key.in" "Ktest.+003+49667.key"
|
||||
copy dst_2_data.in dst_2_data
|
||||
copy t2_data_1.in t2_data_1
|
||||
copy t2_data_2.in t2_data_2
|
||||
copy t2_dsasig.in t2_dsasig
|
||||
copy t2_rsasig.in t2_rsasig
|
||||
</Command>
|
||||
</PreBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\t_dst.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
@@ -1,3 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
@@ -1,47 +0,0 @@
|
||||
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
@BIND9_MAKE_INCLUDES@
|
||||
|
||||
CINCLUDES = ${TEST_INCLUDES} ${ISC_INCLUDES} @DST_OPENSSL_INC@
|
||||
|
||||
CDEFINES = @CRYPTO@
|
||||
CWARNINGS =
|
||||
|
||||
ISCLIBS = ../../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
|
||||
|
||||
ISCDEPLIBS = ../../../lib/isc/libisc.@A@
|
||||
|
||||
DEPLIBS = ${ISCDEPLIBS}
|
||||
|
||||
LIBS = ${ISCLIBS} ${ISCLIBS} @LIBS@
|
||||
|
||||
TLIB = ../../../lib/tests/libt_api.@A@
|
||||
|
||||
TARGETS = t_hashes@EXEEXT@
|
||||
|
||||
SRCS = t_hashes.c
|
||||
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
t_hashes@EXEEXT@: t_hashes.@O@ ${DEPLIBS} ${TLIB}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ t_hashes.@O@ ${TLIB} ${LIBS}
|
||||
|
||||
test: t_hashes@EXEEXT@
|
||||
-@./t_hashes@EXEEXT@ -c @top_srcdir@/t_config -b @srcdir@ -q 60 -a
|
||||
|
||||
testhelp:
|
||||
@./t_hashes@EXEEXT@ -h
|
||||
|
||||
clean distclean::
|
||||
rm -f ${TARGETS}
|
@@ -1,495 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* See the COPYRIGHT file distributed with this work for additional
|
||||
* information regarding copyright ownership.
|
||||
*/
|
||||
|
||||
/* $Id: t_hashes.c,v 1.5 2010/10/04 22:27:41 marka Exp $ */
|
||||
|
||||
/*
|
||||
* -d1 or larger shows hash or HMAC result even if correct
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <isc/hmacmd5.h>
|
||||
#include <isc/hmacsha.h>
|
||||
#include <isc/md5.h>
|
||||
#include <isc/print.h>
|
||||
#include <isc/sha1.h>
|
||||
#include <isc/string.h>
|
||||
#include <isc/util.h>
|
||||
|
||||
#include <pk11/site.h>
|
||||
|
||||
#include <tests/t_api.h>
|
||||
|
||||
|
||||
static int nprobs;
|
||||
|
||||
typedef void(*HASH_INIT)(void *);
|
||||
typedef void(*HMAC_INIT)(void *, const unsigned char *, unsigned int);
|
||||
typedef void(*UPDATE)(void *, const unsigned char *, unsigned int);
|
||||
typedef void(*FINAL)(void *, const unsigned char *);
|
||||
typedef void(*SIGN)(void *, const unsigned char *, unsigned int);
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
const unsigned char *key;
|
||||
const unsigned int key_len;
|
||||
const unsigned char *str;
|
||||
const unsigned int str_len;
|
||||
} IN_;
|
||||
#define STR_INIT(s) (const unsigned char *)(s), sizeof(s)-1
|
||||
|
||||
|
||||
union {
|
||||
unsigned char b[1024];
|
||||
#ifndef PK11_MD5_DISABLE
|
||||
unsigned char md5[16];
|
||||
#endif
|
||||
unsigned char sha1[ISC_SHA1_DIGESTLENGTH];
|
||||
unsigned char sha224[ISC_SHA224_DIGESTLENGTH];
|
||||
unsigned char sha256[ISC_SHA256_DIGESTLENGTH];
|
||||
unsigned char sha384[ISC_SHA384_DIGESTLENGTH];
|
||||
unsigned char sha512[ISC_SHA512_DIGESTLENGTH];
|
||||
} dbuf;
|
||||
#define DIGEST_FILL 0xdf
|
||||
|
||||
typedef struct {
|
||||
const char *str;
|
||||
const unsigned int digest_len;
|
||||
} OUT_;
|
||||
|
||||
|
||||
/*
|
||||
* two ad hoc hash examples
|
||||
*/
|
||||
static IN_ abc = { "\"abc\"", NULL, 0, STR_INIT("abc")};
|
||||
static OUT_ abc_sha1 = {
|
||||
"a9993e364706816aba3e25717850c26c9cd0d89d",
|
||||
ISC_SHA1_DIGESTLENGTH};
|
||||
static OUT_ abc_sha224 = {
|
||||
"23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7",
|
||||
ISC_SHA224_DIGESTLENGTH};
|
||||
#ifndef PK11_MD5_DISABLE
|
||||
static OUT_ abc_md5 = {
|
||||
"900150983cd24fb0d6963f7d28e17f72",
|
||||
16};
|
||||
#endif
|
||||
|
||||
static IN_ abc_blah = { "\"abcdbc...\"", NULL, 0,
|
||||
STR_INIT("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq")};
|
||||
static OUT_ abc_blah_sha1 = {
|
||||
"84983e441c3bd26ebaae4aa1f95129e5e54670f1",
|
||||
ISC_SHA1_DIGESTLENGTH};
|
||||
static OUT_ abc_blah_sha224 = {
|
||||
"75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525",
|
||||
ISC_SHA224_DIGESTLENGTH};
|
||||
#ifndef PK11_MD5_DISABLE
|
||||
static OUT_ abc_blah_md5 = {
|
||||
"8215ef0796a20bcaaae116d3876c664a",
|
||||
16};
|
||||
|
||||
/*
|
||||
* three HMAC-md5 examples from RFC 2104
|
||||
*/
|
||||
static const unsigned char rfc2104_1_key[16] = {
|
||||
0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b,
|
||||
0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b};
|
||||
static IN_ rfc2104_1 = {"RFC 2104 #1", rfc2104_1_key, sizeof(rfc2104_1_key),
|
||||
STR_INIT("Hi There")};
|
||||
static OUT_ rfc2104_1_hmac = {
|
||||
"9294727a3638bb1c13f48ef8158bfc9d",
|
||||
16};
|
||||
|
||||
static IN_ rfc2104_2 = {"RFC 2104 #2", STR_INIT("Jefe"),
|
||||
STR_INIT("what do ya want for nothing?")};
|
||||
static OUT_ rfc2104_2_hmac = {
|
||||
"750c783e6ab0b503eaa86e310a5db738",
|
||||
16};
|
||||
|
||||
static const unsigned char rfc2104_3_key[16] = {
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA};
|
||||
static const unsigned char rfc2104_3_s[50] = {
|
||||
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
|
||||
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
|
||||
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
|
||||
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
|
||||
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
|
||||
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD,
|
||||
0xDD, 0xDD};
|
||||
static IN_ rfc2104_3 = {"RFC 2104 #3", rfc2104_3_key, sizeof(rfc2104_3_key),
|
||||
rfc2104_3_s, sizeof(rfc2104_3_s)};
|
||||
static OUT_ rfc2104_3_hmac = {
|
||||
"56be34521d144c88dbb8c733f0e8b3f6",
|
||||
16};
|
||||
#endif
|
||||
|
||||
/*
|
||||
* four three HMAC-SHA tests cut-and-pasted from RFC 4634 starting on page 86
|
||||
*/
|
||||
static const unsigned char rfc4634_1_key[20] = {
|
||||
0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b,
|
||||
0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b
|
||||
};
|
||||
static IN_ rfc4634_1 = {"RFC 4634 #1", rfc4634_1_key, sizeof(rfc4634_1_key),
|
||||
STR_INIT("Hi There")};
|
||||
static OUT_ rfc4634_1_sha1 = {
|
||||
"B617318655057264E28BC0B6FB378C8EF146BE00",
|
||||
ISC_SHA1_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_1_sha224 = {
|
||||
"896FB1128ABBDF196832107CD49DF33F47B4B1169912BA4F53684B22",
|
||||
ISC_SHA224_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_1_sha256 = {
|
||||
"B0344C61D8DB38535CA8AFCEAF0BF12B881DC200C9833DA726E9376C2E32"
|
||||
"CFF7",
|
||||
ISC_SHA256_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_1_sha384 = {
|
||||
"AFD03944D84895626B0825F4AB46907F15F9DADBE4101EC682AA034C7CEB"
|
||||
"C59CFAEA9EA9076EDE7F4AF152E8B2FA9CB6",
|
||||
ISC_SHA384_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_1_sha512 = {
|
||||
"87AA7CDEA5EF619D4FF0B4241A1D6CB02379F4E2CE4EC2787AD0B30545E1"
|
||||
"7CDEDAA833B7D6B8A702038B274EAEA3F4E4BE9D914EEB61F1702E696C20"
|
||||
"3A126854",
|
||||
ISC_SHA512_DIGESTLENGTH};
|
||||
|
||||
static IN_ rfc4634_2 = {"RFC 4634 #2", STR_INIT("Jefe"),
|
||||
STR_INIT("what do ya want for nothing?")};
|
||||
static OUT_ rfc4634_2_sha1 = {
|
||||
"EFFCDF6AE5EB2FA2D27416D5F184DF9C259A7C79",
|
||||
ISC_SHA1_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_2_sha224 = {
|
||||
"A30E01098BC6DBBF45690F3A7E9E6D0F8BBEA2A39E6148008FD05E44",
|
||||
ISC_SHA224_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_2_sha256 = {
|
||||
"5BDCC146BF60754E6A042426089575C75A003F089D2739839DEC58B964EC"
|
||||
"3843",
|
||||
ISC_SHA256_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_2_sha384 = {
|
||||
"AF45D2E376484031617F78D2B58A6B1B9C7EF464F5A01B47E42EC3736322"
|
||||
"445E8E2240CA5E69E2C78B3239ECFAB21649",
|
||||
ISC_SHA384_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_2_sha512 = {
|
||||
"164B7A7BFCF819E2E395FBE73B56E0A387BD64222E831FD610270CD7EA25"
|
||||
"05549758BF75C05A994A6D034F65F8F0E6FDCAEAB1A34D4A6B4B636E070A"
|
||||
"38BCE737",
|
||||
ISC_SHA512_DIGESTLENGTH};
|
||||
|
||||
static const unsigned char rfc4634_3_key[20] = {
|
||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa
|
||||
};
|
||||
static const unsigned char rfc4634_3_s[50] = {
|
||||
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
|
||||
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
|
||||
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
|
||||
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
|
||||
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd
|
||||
};
|
||||
static IN_ rfc4634_3 = {"RFC 4634 #3", rfc4634_3_key, sizeof(rfc4634_3_key),
|
||||
rfc4634_3_s, sizeof(rfc4634_3_s)};
|
||||
static OUT_ rfc4634_3_sha1 = {
|
||||
"125D7342B9AC11CD91A39AF48AA17B4F63F175D3",
|
||||
ISC_SHA1_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_3_sha224 = {
|
||||
"7FB3CB3588C6C1F6FFA9694D7D6AD2649365B0C1F65D69D1EC8333EA",
|
||||
ISC_SHA224_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_3_sha256 = {
|
||||
"773EA91E36800E46854DB8EBD09181A72959098B3EF8C122D9635514CED5"
|
||||
"65FE",
|
||||
ISC_SHA256_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_3_sha384 = {
|
||||
"88062608D3E6AD8A0AA2ACE014C8A86F0AA635D947AC9FEBE83EF4E55966"
|
||||
"144B2A5AB39DC13814B94E3AB6E101A34F27",
|
||||
ISC_SHA384_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_3_sha512 = {
|
||||
"FA73B0089D56A284EFB0F0756C890BE9B1B5DBDD8EE81A3655F83E33B227"
|
||||
"9D39BF3E848279A722C806B485A47E67C807B946A337BEE8942674278859"
|
||||
"E13292FB",
|
||||
ISC_SHA512_DIGESTLENGTH};
|
||||
|
||||
static const unsigned char rfc4634_4_key[25] = {
|
||||
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a,
|
||||
0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14,
|
||||
0x15, 0x16, 0x17, 0x18, 0x19
|
||||
};
|
||||
static const unsigned char rfc4634_4_s[50] = {
|
||||
0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
|
||||
0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
|
||||
0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
|
||||
0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
|
||||
0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd
|
||||
};
|
||||
static IN_ rfc4634_4 = {"RFC 4634 #3", rfc4634_4_key, sizeof(rfc4634_4_key),
|
||||
rfc4634_4_s, sizeof(rfc4634_4_s)};
|
||||
static OUT_ rfc4634_4_sha1 = {
|
||||
"4C9007F4026250C6BC8414F9BF50C86C2D7235DA",
|
||||
ISC_SHA1_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_4_sha224 = {
|
||||
"6C11506874013CAC6A2ABC1BB382627CEC6A90D86EFC012DE7AFEC5A",
|
||||
ISC_SHA224_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_4_sha256 = {
|
||||
"82558A389A443C0EA4CC819899F2083A85F0FAA3E578F8077A2E3FF46729"
|
||||
"665B",
|
||||
ISC_SHA256_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_4_sha384 = {
|
||||
"3E8A69B7783C25851933AB6290AF6CA77A9981480850009CC5577C6E1F57"
|
||||
"3B4E6801DD23C4A7D679CCF8A386C674CFFB",
|
||||
ISC_SHA384_DIGESTLENGTH};
|
||||
static OUT_ rfc4634_4_sha512 = {
|
||||
"B0BA465637458C6990E5A8C5F61D4AF7E576D97FF94B872DE76F8050361E"
|
||||
"E3DBA91CA5C11AA25EB4D679275CC5788063A5F19741120C4F2DE2ADEBEB"
|
||||
"10A298DD",
|
||||
ISC_SHA512_DIGESTLENGTH};
|
||||
|
||||
|
||||
|
||||
static const char *
|
||||
d2str(char *buf, unsigned int buf_len,
|
||||
const unsigned char *d, unsigned int d_len)
|
||||
{
|
||||
unsigned int i, l;
|
||||
|
||||
l = 0;
|
||||
for (i = 0; i < d_len && l < buf_len-4; ++i) {
|
||||
l += snprintf(&buf[l], buf_len-l, "%02x", d[i]);
|
||||
}
|
||||
if (l >= buf_len-3) {
|
||||
REQUIRE(buf_len > sizeof("..."));
|
||||
strcpy(&buf[l-sizeof(" ...")], " ...");
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Compare binary digest or HMAC to string of hex digits from an RFC
|
||||
*/
|
||||
static void
|
||||
ck(const char *name, const IN_ *in, const OUT_ *out)
|
||||
{
|
||||
char buf[sizeof(dbuf)*2+1];
|
||||
const char *str_name;
|
||||
unsigned int l;
|
||||
|
||||
d2str(buf, sizeof(buf), dbuf.b, out->digest_len);
|
||||
str_name = in->name != NULL ? in->name : (const char *)in->str;
|
||||
|
||||
if (T_debug != 0)
|
||||
t_info("%s(%s) = %s\n", name, str_name, buf);
|
||||
|
||||
if (strcasecmp(buf, out->str)) {
|
||||
t_info("%s(%s)\n%9s %s\n%9s %s\n",
|
||||
name, str_name,
|
||||
"is", buf,
|
||||
"should be", out->str);
|
||||
++nprobs;
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* check that the hash or HMAC is no longer than we think it is
|
||||
*/
|
||||
for (l = out->digest_len; l < sizeof(dbuf); ++l) {
|
||||
if (dbuf.b[l] != DIGEST_FILL) {
|
||||
t_info("byte #%d after end of %s(%s) changed to %02x\n",
|
||||
l-out->digest_len, name, str_name, dbuf.b[l]);
|
||||
++nprobs;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
t_hash(const char *hname, HASH_INIT init, UPDATE update, FINAL final,
|
||||
IN_ *in, OUT_ *out)
|
||||
{
|
||||
union {
|
||||
unsigned char b[1024];
|
||||
isc_sha1_t sha1;
|
||||
#ifndef PK11_MD5_DISABLE
|
||||
isc_md5_t md5;
|
||||
#endif
|
||||
} ctx;
|
||||
|
||||
init(&ctx);
|
||||
update(&ctx, in->str, in->str_len);
|
||||
memset(dbuf.b, DIGEST_FILL, sizeof(dbuf));
|
||||
final(&ctx, dbuf.b);
|
||||
ck(hname, in, out);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* isc_sha224_final has a different calling sequence
|
||||
*/
|
||||
static void
|
||||
t_sha224(IN_ *in, OUT_ *out)
|
||||
{
|
||||
isc_sha224_t ctx;
|
||||
|
||||
memset(dbuf.b, DIGEST_FILL, sizeof(dbuf));
|
||||
isc_sha224_init(&ctx);
|
||||
isc_sha224_update(&ctx, in->str, in->str_len);
|
||||
memset(dbuf.b, DIGEST_FILL, sizeof(dbuf));
|
||||
isc_sha224_final(dbuf.b, &ctx);
|
||||
ck("SHA224", in, out);
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
#ifndef PK11_MD5_DISABLE
|
||||
t_hashes(IN_ *in, OUT_ *out_sha1, OUT_ *out_sha224, OUT_ *out_md5)
|
||||
#else
|
||||
t_hashes(IN_ *in, OUT_ *out_sha1, OUT_ *out_sha224)
|
||||
#endif
|
||||
{
|
||||
t_hash("SHA1", (HASH_INIT)isc_sha1_init, (UPDATE)isc_sha1_update,
|
||||
(FINAL)isc_sha1_final, in, out_sha1);
|
||||
t_sha224(in, out_sha224);
|
||||
#ifndef PK11_MD5_DISABLE
|
||||
t_hash("md5", (HASH_INIT)isc_md5_init, (UPDATE)isc_md5_update,
|
||||
(FINAL)isc_md5_final, in, out_md5);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
#ifndef PK11_MD5_DISABLE
|
||||
/*
|
||||
* isc_hmacmd5_sign has a different calling sequence
|
||||
*/
|
||||
static void
|
||||
t_md5hmac(IN_ *in, OUT_ *out)
|
||||
{
|
||||
isc_hmacmd5_t ctx;
|
||||
|
||||
isc_hmacmd5_init(&ctx, in->key, in->key_len);
|
||||
isc_hmacmd5_update(&ctx, in->str, in->str_len);
|
||||
memset(dbuf.b, DIGEST_FILL, sizeof(dbuf));
|
||||
isc_hmacmd5_sign(&ctx, dbuf.b);
|
||||
ck("HMAC-md5", in, out);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
static void
|
||||
t_hmac(const char *hname, HMAC_INIT init, UPDATE update, SIGN sign,
|
||||
IN_ *in, OUT_ *out)
|
||||
{
|
||||
union {
|
||||
unsigned char b[1024];
|
||||
#ifndef PK11_MD5_DISABLE
|
||||
isc_hmacmd5_t hmacmd5;
|
||||
#endif
|
||||
isc_hmacsha1_t hmacsha1;
|
||||
isc_hmacsha224_t hmacsha224;
|
||||
isc_hmacsha256_t hmacsha256;
|
||||
isc_hmacsha384_t hmacsha384;
|
||||
isc_hmacsha512_t hmacsha512;
|
||||
} ctx;
|
||||
|
||||
init(&ctx, in->key, in->key_len);
|
||||
update(&ctx, in->str, in->str_len);
|
||||
memset(dbuf.b, DIGEST_FILL, sizeof(dbuf));
|
||||
sign(&ctx, dbuf.b, out->digest_len);
|
||||
ck(hname, in, out);
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
t_hmacs(IN_ *in, OUT_ *out_sha1, OUT_ *out_sha224, OUT_ *out_sha256,
|
||||
OUT_ *out_sha384, OUT_ *out_sha512)
|
||||
{
|
||||
t_hmac("HMAC-SHA1", (HMAC_INIT)isc_hmacsha1_init,
|
||||
(UPDATE)isc_hmacsha1_update, (SIGN)isc_hmacsha1_sign,
|
||||
in, out_sha1);
|
||||
t_hmac("HMAC-SHA224", (HMAC_INIT)isc_hmacsha224_init,
|
||||
(UPDATE)isc_hmacsha224_update, (SIGN)isc_hmacsha224_sign,
|
||||
in, out_sha224);
|
||||
t_hmac("HMAC-SHA256", (HMAC_INIT)isc_hmacsha256_init,
|
||||
(UPDATE)isc_hmacsha256_update, (SIGN)isc_hmacsha256_sign,
|
||||
in, out_sha256);
|
||||
t_hmac("HMAC-SHA384", (HMAC_INIT)isc_hmacsha384_init,
|
||||
(UPDATE)isc_hmacsha384_update, (SIGN)isc_hmacsha384_sign,
|
||||
in, out_sha384);
|
||||
t_hmac("HMAC-SHA512", (HMAC_INIT)isc_hmacsha512_init,
|
||||
(UPDATE)isc_hmacsha512_update, (SIGN)isc_hmacsha512_sign,
|
||||
in, out_sha512);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* This will almost never fail, and so there is no need for the extra noise
|
||||
* that would come from breaking it into several tests.
|
||||
*/
|
||||
static void
|
||||
t1(void)
|
||||
{
|
||||
/*
|
||||
* two ad hoc hash examples
|
||||
*/
|
||||
#ifndef PK11_MD5_DISABLE
|
||||
t_hashes(&abc, &abc_sha1, &abc_sha224, &abc_md5);
|
||||
t_hashes(&abc_blah, &abc_blah_sha1, &abc_blah_sha224, &abc_blah_md5);
|
||||
#else
|
||||
t_hashes(&abc, &abc_sha1, &abc_sha224);
|
||||
t_hashes(&abc_blah, &abc_blah_sha1, &abc_blah_sha224);
|
||||
#endif
|
||||
|
||||
#ifndef PK11_MD5_DISABLE
|
||||
/*
|
||||
* three HMAC-md5 examples from RFC 2104
|
||||
*/
|
||||
t_md5hmac(&rfc2104_1, &rfc2104_1_hmac);
|
||||
t_md5hmac(&rfc2104_2, &rfc2104_2_hmac);
|
||||
t_md5hmac(&rfc2104_3, &rfc2104_3_hmac);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* four HMAC-SHA tests from RFC 4634 starting on page 86
|
||||
*/
|
||||
t_hmacs(&rfc4634_1, &rfc4634_1_sha1, &rfc4634_1_sha224,
|
||||
&rfc4634_1_sha256, &rfc4634_1_sha384, &rfc4634_1_sha512);
|
||||
t_hmacs(&rfc4634_2, &rfc4634_2_sha1, &rfc4634_2_sha224,
|
||||
&rfc4634_2_sha256, &rfc4634_2_sha384, &rfc4634_2_sha512);
|
||||
t_hmacs(&rfc4634_3, &rfc4634_3_sha1, &rfc4634_3_sha224,
|
||||
&rfc4634_3_sha256, &rfc4634_3_sha384, &rfc4634_3_sha512);
|
||||
t_hmacs(&rfc4634_4, &rfc4634_4_sha1, &rfc4634_4_sha224,
|
||||
&rfc4634_4_sha256, &rfc4634_4_sha384, &rfc4634_4_sha512);
|
||||
|
||||
if (nprobs != 0)
|
||||
t_result(T_FAIL);
|
||||
else
|
||||
t_result(T_PASS);
|
||||
}
|
||||
|
||||
|
||||
testspec_t T_testlist[] = {
|
||||
{ (PFV) t1, "hashes" },
|
||||
{ (PFV) 0, NULL }
|
||||
};
|
||||
|
||||
#ifdef WIN32
|
||||
int
|
||||
main(int argc, char **argv) {
|
||||
t_settests(T_testlist);
|
||||
return (t_main(argc, argv));
|
||||
}
|
||||
#endif
|
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\t_hashes.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
@@ -1,110 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|@PLATFORM@">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>@PLATFORM@</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|@PLATFORM@">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>@PLATFORM@</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{14071120-84F6-4A6F-BF23-90EC5D0372CE}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>t_hashes</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>..\..\..\..\Build\$(Configuration)\</OutDir>
|
||||
<IntDir>.\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>..\..\..\..\Build\$(Configuration)\</OutDir>
|
||||
<IntDir>.\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<BrowseInformation>true</BrowseInformation>
|
||||
<AdditionalIncludeDirectories>.\;..\..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\..\..\lib\isc\win32;..\..\..\..\lib\isc\win32\include;..\..\..\..\lib\isc\include;..\..\..\..\lib\tests\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<OutputFile>..\..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\lib\isc\win32\$(Configuration);..\..\..\..\lib\tests\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>@LIBXML2_LIB@libisc.lib;libtests.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<StringPooling>true</StringPooling>
|
||||
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
|
||||
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
||||
<AdditionalIncludeDirectories>.\;..\..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\..\..\lib\isc\win32;..\..\..\..\lib\isc\win32\include;..\..\..\..\lib\isc\include;..\..\..\..\lib\tests\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<OutputFile>..\..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
|
||||
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\lib\isc\win32\$(Configuration);..\..\..\..\lib\tests\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>@LIBXML2_LIB@libisc.lib;libtests.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\t_hashes.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
@@ -1,3 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
@@ -1,51 +0,0 @@
|
||||
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
@BIND9_MAKE_INCLUDES@
|
||||
|
||||
CINCLUDES = ${TEST_INCLUDES} ${DNS_INCLUDES} \
|
||||
${ISC_INCLUDES} @DST_OPENSSL_INC@
|
||||
|
||||
CDEFINES = @CRYPTO@
|
||||
CWARNINGS =
|
||||
|
||||
# Note that we do not want to use libtool for libt_api
|
||||
DNSLIBS = ../../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
|
||||
ISCLIBS = ../../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
|
||||
|
||||
DNSDEPLIBS = ../../../lib/dns/libdns.@A@
|
||||
ISCDEPLIBS = ../../../lib/isc/libisc.@A@
|
||||
|
||||
DEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS}
|
||||
|
||||
LIBS = ${DNSLIBS} ${ISCLIBS} @LIBS@
|
||||
|
||||
TLIB = ../../../lib/tests/libt_api.@A@
|
||||
|
||||
TARGETS = t_master@EXEEXT@
|
||||
|
||||
SRCS = t_master.c
|
||||
|
||||
@BIND9_MAKE_RULES@
|
||||
|
||||
t_master@EXEEXT@: t_master.@O@ ${DEPLIBS} ${TLIB}
|
||||
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ t_master.@O@ ${TLIB} ${LIBS}
|
||||
|
||||
test: t_master@EXEEXT@
|
||||
-@ ./t_master@EXEEXT@ -c @top_srcdir@/t_config -b @srcdir@ -a
|
||||
|
||||
testhelp:
|
||||
@ ./t_master@EXEEXT@ -h
|
||||
|
||||
clean distclean::
|
||||
rm -f ${TARGETS}
|
@@ -1,12 +0,0 @@
|
||||
#
|
||||
# test data for dns_master_load test 9
|
||||
#
|
||||
# format is:
|
||||
# masterfile origin class expected_result
|
||||
# where
|
||||
# masterfile name is the name of a file containing master data
|
||||
# origin is the origin
|
||||
# class is the zone's class
|
||||
# expected_result is a text representation of a dns_result_t
|
||||
#
|
||||
master10.data test in ISC_R_SUCCESS
|
@@ -1,12 +0,0 @@
|
||||
#
|
||||
# test data for dns_master_load test 11
|
||||
#
|
||||
# format is:
|
||||
# masterfile origin class expected_result
|
||||
# where
|
||||
# masterfile name is the name of a file containing master data
|
||||
# origin is the origin
|
||||
# class is the zone's class
|
||||
# expected_result is a text representation of a dns_result_t
|
||||
#
|
||||
master11.data test in ISC_R_SUCCESS
|
@@ -1,12 +0,0 @@
|
||||
#
|
||||
# test data for dns_master_load test 1
|
||||
#
|
||||
# format is:
|
||||
# masterfile origin class expected_result
|
||||
# where
|
||||
# masterfile name is the name of a file containing master data
|
||||
# origin is the origin
|
||||
# class is the zone's class
|
||||
# expected_result is a text representation of a dns_result_t
|
||||
#
|
||||
master1.data test in ISC_R_SUCCESS
|
@@ -1,12 +0,0 @@
|
||||
#
|
||||
# test data for dns_master_load test 2
|
||||
#
|
||||
# format is:
|
||||
# masterfile origin class expected_result
|
||||
# where
|
||||
# masterfile name is the name of a file containing master data
|
||||
# origin is the origin
|
||||
# class is the zone's class
|
||||
# expected_result is a text representation of a dns_result_t
|
||||
#
|
||||
master2.data test in ISC_R_UNEXPECTEDEND
|
@@ -1,12 +0,0 @@
|
||||
#
|
||||
# test data for dns_master_load test 3
|
||||
#
|
||||
# format is:
|
||||
# masterfile origin class expected_result
|
||||
# where
|
||||
# masterfile name is the name of a file containing master data
|
||||
# origin is the origin
|
||||
# class is the zone's class
|
||||
# expected_result is a text representation of a dns_result_t
|
||||
#
|
||||
master3.data test in DNS_R_NOOWNER
|
@@ -1,12 +0,0 @@
|
||||
#
|
||||
# test data for dns_master_load test 4
|
||||
#
|
||||
# format is:
|
||||
# masterfile origin class expected_result
|
||||
# where
|
||||
# masterfile name is the name of a file containing master data
|
||||
# origin is the origin
|
||||
# class is the zone's class
|
||||
# expected_result is a text representation of a dns_result_t
|
||||
#
|
||||
master4.data test in ISC_R_SUCCESS
|
@@ -1,12 +0,0 @@
|
||||
#
|
||||
# test data for dns_master_load test 5
|
||||
#
|
||||
# format is:
|
||||
# masterfile origin class expected_result
|
||||
# where
|
||||
# masterfile name is the name of a file containing master data
|
||||
# origin is the origin
|
||||
# class is the zone's class
|
||||
# expected_result is a text representation of a dns_result_t
|
||||
#
|
||||
master5.data test in DNS_R_BADCLASS
|
@@ -1,12 +0,0 @@
|
||||
#
|
||||
# test data for dns_master_load test 6
|
||||
#
|
||||
# format is:
|
||||
# masterfile origin class expected_result
|
||||
# where
|
||||
# masterfile name is the name of a file containing master data
|
||||
# origin is the origin
|
||||
# class is the zone's class
|
||||
# expected_result is a text representation of a dns_result_t
|
||||
#
|
||||
master6.data test in ISC_R_SUCCESS
|
@@ -1,12 +0,0 @@
|
||||
#
|
||||
# test data for dns_master_load test 7
|
||||
#
|
||||
# format is:
|
||||
# masterfile origin class expected_result
|
||||
# where
|
||||
# masterfile name is the name of a file containing master data
|
||||
# origin is the origin
|
||||
# class is the zone's class
|
||||
# expected_result is a text representation of a dns_result_t
|
||||
#
|
||||
master7.data test in ISC_R_SUCCESS
|
@@ -1,12 +0,0 @@
|
||||
#
|
||||
# test data for dns_master_load test 8
|
||||
#
|
||||
# format is:
|
||||
# masterfile origin class expected_result
|
||||
# where
|
||||
# masterfile name is the name of a file containing master data
|
||||
# origin is the origin
|
||||
# class is the zone's class
|
||||
# expected_result is a text representation of a dns_result_t
|
||||
#
|
||||
master8.data test in DNS_R_SEENINCLUDE
|
@@ -1,12 +0,0 @@
|
||||
#
|
||||
# test data for dns_master_load test 9
|
||||
#
|
||||
# format is:
|
||||
# masterfile origin class expected_result
|
||||
# where
|
||||
# masterfile name is the name of a file containing master data
|
||||
# origin is the origin
|
||||
# class is the zone's class
|
||||
# expected_result is a text representation of a dns_result_t
|
||||
#
|
||||
master9.data test in DNS_R_BADCLASS
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns ns.vix.com.
|
||||
a in ns ns2vix.com.
|
||||
a in ns ns3vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,7 +0,0 @@
|
||||
;
|
||||
; the following black line contains spaces
|
||||
|
||||
;
|
||||
@ 300 IN A 10.0.0.1
|
||||
;
|
||||
;
|
@@ -1,6 +0,0 @@
|
||||
;
|
||||
; The following serial number contains a leading 0 and a 9 so the
|
||||
; we can catch cases where it is incorrectly treated as a octal
|
||||
; number.
|
||||
;
|
||||
@ 300 IN SOA ns hostmaster 00090000 1200 3600 604800 300
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
@ in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
a in ns
|
||||
a in ns ns2vix.com.
|
||||
a in ns ns3vix.com.
|
||||
b in a 1.2.3.4
|
@@ -1,11 +0,0 @@
|
||||
$TTL 1000
|
||||
in soa localhost. postmaster.localhost. (
|
||||
1993050801 ;serial
|
||||
3600 ;refresh
|
||||
1800 ;retry
|
||||
604800 ;expiration
|
||||
3600 ) ;minimum
|
||||
in ns ns.vix.com
|
||||
in ns ns2vix.com.
|
||||
a in ns ns3vix.com.
|
||||
b in a 1.2.3.4
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user