patch-src_remote_remote_driver_h 932 B

1234567891011121314151617181920
  1. $OpenBSD: patch-src_remote_remote_driver_h,v 1.1 2016/06/13 08:36:34 jasper Exp $
  2. --- src/remote/remote_driver.h.orig Fri May 27 15:17:43 2016
  3. +++ src/remote/remote_driver.h Fri May 27 15:20:08 2016
  4. @@ -40,8 +40,13 @@ unsigned long remoteVersion(void);
  5. # define LIBVIRTD_CONFIGURATION_FILE SYSCONFDIR "/libvirt/libvirtd.conf"
  6. /* Defaults for PKI directory. */
  7. -# define LIBVIRT_PKI_DIR SYSCONFDIR "/pki"
  8. -# define LIBVIRT_CACERT LIBVIRT_PKI_DIR "/CA/cacert.pem"
  9. +# ifdef __OpenBSD__
  10. +# define LIBVIRT_PKI_DIR SYSCONFDIR "/ssl"
  11. +# define LIBVIRT_CACERT LIBVIRT_PKI_DIR "/cert.pem"
  12. +# else
  13. +# define LIBVIRT_PKI_DIR SYSCONFDIR "/pki"
  14. +# define LIBVIRT_CACERT LIBVIRT_PKI_DIR "/CA/cacert.pem"
  15. +# endif
  16. # define LIBVIRT_CLIENTKEY LIBVIRT_PKI_DIR "/libvirt/private/clientkey.pem"
  17. # define LIBVIRT_CLIENTCERT LIBVIRT_PKI_DIR "/libvirt/clientcert.pem"
  18. # define LIBVIRT_SERVERKEY LIBVIRT_PKI_DIR "/libvirt/private/serverkey.pem"