提交 bd789dff 编写于 作者: D Daniel P. Berrange

Add a test case for certificate validation

This test case checks certification validation rules for

 - Basic constraints
 - Key purpose
 - Key usage
 - Start/expiry times

It checks initial context creation sanity checks, and live
session validation
上级 07f9b6f0
......@@ -668,7 +668,7 @@ exclude_file_name_regexp--sc_avoid_strcase = ^tools/virsh\.c$$
_src1=libvirt|fdstream|qemu/qemu_monitor|util/(command|util)|xen/xend_internal|rpc/virnetsocket
exclude_file_name_regexp--sc_avoid_write = \
^(src/($(_src1))|daemon/libvirtd|tools/console)\.c$$
^(src/($(_src1))|daemon/libvirtd|tools/console|tests/virnettlscontexttest)\.c$$
exclude_file_name_regexp--sc_bindtextdomain = ^(tests|examples)/
......
......@@ -34,6 +34,7 @@ utiltest
virbuftest
virnetmessagetest
virnetsockettest
virnettlscontexttest
virshtest
vmx2xmltest
xencapstest
......
......@@ -85,7 +85,7 @@ check_PROGRAMS = virshtest conftest sockettest \
nodeinfotest qparamtest virbuftest \
commandtest commandhelper seclabeltest \
hashtest virnetmessagetest virnetsockettest ssh \
utiltest
utiltest virnettlscontexttest
# This is a fake SSH we use from virnetsockettest
ssh_SOURCES = ssh.c
......@@ -202,6 +202,7 @@ TESTS = virshtest \
hashtest \
virnetmessagetest \
virnetsockettest \
virnettlscontexttest \
utiltest \
$(test_scripts)
......@@ -452,6 +453,11 @@ virnetsockettest_SOURCES = \
virnetsockettest_CFLAGS = -Dabs_builddir="\"$(abs_builddir)\"" $(AM_CFLAGS)
virnetsockettest_LDADD = ../src/libvirt-net-rpc.la $(LDADDS)
virnettlscontexttest_SOURCES = \
virnettlscontexttest.c testutils.h testutils.c pkix_asn1_tab.c
virnettlscontexttest_CFLAGS = -Dabs_builddir="\"$(abs_builddir)\"" $(AM_CFLAGS)
virnettlscontexttest_LDADD = ../src/libvirt-net-rpc.la $(LDADDS) -ltasn1
seclabeltest_SOURCES = \
seclabeltest.c
......
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册