[svn] commit: r3278 - in /branches/trac381/src/lib/dns: ./ python/ python/tests/ tests/
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Oct 19 13:52:20 UTC 2010
Author: jinmei
Date: Tue Oct 19 13:52:19 2010
New Revision: 3278
Log:
Initial implementation of TSIGKey and TSIGKeyRing, including detailed tests, documentation, and python binding.
Added:
branches/trac381/src/lib/dns/python/tests/tsigkey_python_test.py
branches/trac381/src/lib/dns/python/tsigkey_python.cc
branches/trac381/src/lib/dns/tests/tsigkey_unittest.cc
- copied, changed from r3277, branches/trac381/src/lib/dns/tests/tsig_unittest.cc
branches/trac381/src/lib/dns/tsigkey.cc
- copied, changed from r3277, branches/trac381/src/lib/dns/tsig.cc
branches/trac381/src/lib/dns/tsigkey.h
- copied, changed from r3277, branches/trac381/src/lib/dns/tsig.h
Removed:
branches/trac381/src/lib/dns/tests/tsig_unittest.cc
branches/trac381/src/lib/dns/tsig.cc
branches/trac381/src/lib/dns/tsig.h
Modified:
branches/trac381/src/lib/dns/Makefile.am
branches/trac381/src/lib/dns/python/Makefile.am
branches/trac381/src/lib/dns/python/pydnspp.cc
branches/trac381/src/lib/dns/python/tests/Makefile.am
branches/trac381/src/lib/dns/tests/Makefile.am
Modified: branches/trac381/src/lib/dns/Makefile.am
==============================================================================
--- branches/trac381/src/lib/dns/Makefile.am (original)
+++ branches/trac381/src/lib/dns/Makefile.am Tue Oct 19 13:52:19 2010
@@ -80,7 +80,7 @@
libdns___la_SOURCES += rrtype.cc
libdns___la_SOURCES += question.h question.cc
libdns___la_SOURCES += util/sha1.h util/sha1.cc
-libdns___la_SOURCES += tsig.h tsig.cc
+libdns___la_SOURCES += tsigkey.h tsigkey.cc
nodist_libdns___la_SOURCES = rdataclass.cc rrclass.h rrtype.h
nodist_libdns___la_SOURCES += rrparamregistry.cc
@@ -108,7 +108,7 @@
rrsetlist.h \
rrttl.h \
rrtype.h \
- tsig.h
+ tsigkey.h
# Purposely not installing these headers:
# util/*.h: used only internally, and not actually DNS specific
# rrclass-placeholder.h
Modified: branches/trac381/src/lib/dns/python/Makefile.am
==============================================================================
--- branches/trac381/src/lib/dns/python/Makefile.am (original)
+++ branches/trac381/src/lib/dns/python/Makefile.am Tue Oct 19 13:52:19 2010
@@ -23,6 +23,7 @@
EXTRA_DIST += rrttl_python.cc
EXTRA_DIST += rdata_python.cc
EXTRA_DIST += rrtype_python.cc
+EXTRA_DIST += tsigkey_python.cc
# Python prefers .so, while some OSes (specifically MacOS) use a different
# suffix for dynamic objects. -module is necessary to work this around.
Modified: branches/trac381/src/lib/dns/python/pydnspp.cc
==============================================================================
--- branches/trac381/src/lib/dns/python/pydnspp.cc (original)
+++ branches/trac381/src/lib/dns/python/pydnspp.cc Tue Oct 19 13:52:19 2010
@@ -57,6 +57,7 @@
#include <dns/python/rrset_python.cc> // needs Rdata, RRTTL
#include <dns/python/question_python.cc> // needs RRClass, RRType, RRTTL,
// Name
+#include <dns/python/tsigkey_python.cc> // needs Name
#include <dns/python/opcode_python.cc>
#include <dns/python/rcode_python.cc>
#include <dns/python/edns_python.cc> // needs Messagerenderer, Rcode
@@ -146,6 +147,14 @@
return (NULL);
}
+ if (!initModulePart_TSIGKey(mod)) {
+ return (NULL);
+ }
+
+ if (!initModulePart_TSIGKeyRing(mod)) {
+ return (NULL);
+ }
+
return (mod);
}
Modified: branches/trac381/src/lib/dns/python/tests/Makefile.am
==============================================================================
--- branches/trac381/src/lib/dns/python/tests/Makefile.am (original)
+++ branches/trac381/src/lib/dns/python/tests/Makefile.am Tue Oct 19 13:52:19 2010
@@ -10,6 +10,7 @@
PYTESTS += rrset_python_test.py
PYTESTS += rrttl_python_test.py
PYTESTS += rrtype_python_test.py
+PYTESTS += tsigkey_python_test.py
EXTRA_DIST = $(PYTESTS)
EXTRA_DIST += testutil.py
Modified: branches/trac381/src/lib/dns/tests/Makefile.am
==============================================================================
--- branches/trac381/src/lib/dns/tests/Makefile.am (original)
+++ branches/trac381/src/lib/dns/tests/Makefile.am Tue Oct 19 13:52:19 2010
@@ -45,7 +45,7 @@
run_unittests_SOURCES += base64_unittest.cc
run_unittests_SOURCES += hex_unittest.cc
run_unittests_SOURCES += sha1_unittest.cc
-run_unittests_SOURCES += tsig_unittest.cc
+run_unittests_SOURCES += tsigkey_unittest.cc
run_unittests_SOURCES += run_unittests.cc
run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
run_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
More information about the bind10-changes
mailing list