[libvirt] [PATCH 1/3] Refactor the certification validation code