On 6/7/24 16:26, Daniel P. Berrangé wrote:
The TLS cert validation logic will be reused for the new impl of the
virt-pki-validate tool.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
po/POTFILES | 1 +
src/rpc/meson.build | 1 +
src/rpc/virnettlscert.c | 553 +++++++++++++++++++++++++++++++++++++
src/rpc/virnettlscert.h | 42 +++
src/rpc/virnettlscontext.c | 535 +----------------------------------
5 files changed, 606 insertions(+), 526 deletions(-)
create mode 100644 src/rpc/virnettlscert.c
create mode 100644 src/rpc/virnettlscert.h
diff --git a/po/POTFILES b/po/POTFILES
index 4ad7e19e08..0f68c652eb 100644
--- a/po/POTFILES
+++ b/po/POTFILES
@@ -219,6 +219,7 @@ src/rpc/virnetserverprogram.c
src/rpc/virnetserverservice.c
src/rpc/virnetsocket.c
src/rpc/virnetsshsession.c
+src/rpc/virnettlscert.c
src/rpc/virnettlscontext.c
src/secret/secret_driver.c
src/security/security_apparmor.c
diff --git a/src/rpc/meson.build b/src/rpc/meson.build
index d11d532d0f..8bdbf5c88f 100644
--- a/src/rpc/meson.build
+++ b/src/rpc/meson.build
@@ -2,6 +2,7 @@ gendispatch_prog = find_program('gendispatch.pl')
tlsconfig_sources = [
files('virnettlsconfig.c'),
+ files('virnettlscert.c'),
]
tlsconfig_source = files(
'virnettlsconfig.c',
'virnettlscert.c'
)
Michal