提交 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$$ ...@@ -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 _src1=libvirt|fdstream|qemu/qemu_monitor|util/(command|util)|xen/xend_internal|rpc/virnetsocket
exclude_file_name_regexp--sc_avoid_write = \ 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)/ exclude_file_name_regexp--sc_bindtextdomain = ^(tests|examples)/
......
...@@ -34,6 +34,7 @@ utiltest ...@@ -34,6 +34,7 @@ utiltest
virbuftest virbuftest
virnetmessagetest virnetmessagetest
virnetsockettest virnetsockettest
virnettlscontexttest
virshtest virshtest
vmx2xmltest vmx2xmltest
xencapstest xencapstest
......
...@@ -85,7 +85,7 @@ check_PROGRAMS = virshtest conftest sockettest \ ...@@ -85,7 +85,7 @@ check_PROGRAMS = virshtest conftest sockettest \
nodeinfotest qparamtest virbuftest \ nodeinfotest qparamtest virbuftest \
commandtest commandhelper seclabeltest \ commandtest commandhelper seclabeltest \
hashtest virnetmessagetest virnetsockettest ssh \ hashtest virnetmessagetest virnetsockettest ssh \
utiltest utiltest virnettlscontexttest
# This is a fake SSH we use from virnetsockettest # This is a fake SSH we use from virnetsockettest
ssh_SOURCES = ssh.c ssh_SOURCES = ssh.c
...@@ -202,6 +202,7 @@ TESTS = virshtest \ ...@@ -202,6 +202,7 @@ TESTS = virshtest \
hashtest \ hashtest \
virnetmessagetest \ virnetmessagetest \
virnetsockettest \ virnetsockettest \
virnettlscontexttest \
utiltest \ utiltest \
$(test_scripts) $(test_scripts)
...@@ -452,6 +453,11 @@ virnetsockettest_SOURCES = \ ...@@ -452,6 +453,11 @@ virnetsockettest_SOURCES = \
virnetsockettest_CFLAGS = -Dabs_builddir="\"$(abs_builddir)\"" $(AM_CFLAGS) virnetsockettest_CFLAGS = -Dabs_builddir="\"$(abs_builddir)\"" $(AM_CFLAGS)
virnetsockettest_LDADD = ../src/libvirt-net-rpc.la $(LDADDS) 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_SOURCES = \
seclabeltest.c seclabeltest.c
......
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册