patch-src_rpc_virnettlscontext_c 962 B

1234567891011121314151617181920212223
  1. $OpenBSD: patch-src_rpc_virnettlscontext_c,v 1.1 2016/06/13 08:36:34 jasper Exp $
  2. --- src/rpc/virnettlscontext.c.orig Fri May 27 15:17:45 2016
  3. +++ src/rpc/virnettlscontext.c Fri May 27 15:22:22 2016
  4. @@ -45,9 +45,15 @@
  5. #define DH_BITS 2048
  6. -#define LIBVIRT_PKI_DIR SYSCONFDIR "/pki"
  7. -#define LIBVIRT_CACERT LIBVIRT_PKI_DIR "/CA/cacert.pem"
  8. -#define LIBVIRT_CACRL LIBVIRT_PKI_DIR "/CA/cacrl.pem"
  9. +#ifdef __OpenBSD__
  10. +# define LIBVIRT_PKI_DIR SYSCONFDIR "/ssl"
  11. +# define LIBVIRT_CACERT LIBVIRT_PKI_DIR "/cert.pem"
  12. +# define LIBVIRT_CACRL LIBVIRT_PKI_DIR "/crl.pem"
  13. +#else
  14. +# define LIBVIRT_PKI_DIR SYSCONFDIR "/pki"
  15. +# define LIBVIRT_CACERT LIBVIRT_PKI_DIR "/CA/cacert.pem"
  16. +# define LIBVIRT_CACRL LIBVIRT_PKI_DIR "/CA/cacrl.pem"
  17. +#endif
  18. #define LIBVIRT_CLIENTKEY LIBVIRT_PKI_DIR "/libvirt/private/clientkey.pem"
  19. #define LIBVIRT_CLIENTCERT LIBVIRT_PKI_DIR "/libvirt/clientcert.pem"
  20. #define LIBVIRT_SERVERKEY LIBVIRT_PKI_DIR "/libvirt/private/serverkey.pem"