From 6cbec206aff245f8b275a1bfa8a94c533257d496 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Wed, 11 Nov 2015 23:10:29 +0100 Subject: [PATCH] Turns out SSL key/crt file paths should be strings. Our PostgreSQL driver uses CFFI to load the SSL support from open ssl and as a result the certificate and key file names should be strings rather than pathnames. Should fix #308 again... --- src/pgsql/queries.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pgsql/queries.lisp b/src/pgsql/queries.lisp index 1ab8228..7b416a3 100644 --- a/src/pgsql/queries.lisp +++ b/src/pgsql/queries.lisp @@ -76,10 +76,10 @@ (key-file (expand-user-homedir-pathname *pgsql-client-key*)) (pomo::*ssl-certificate-file* (when (and (ssl-enable-p pgconn) (probe-file crt-file)) - crt-file)) + (uiop:native-namestring crt-file))) (pomo::*ssl-key-file* (when (and (ssl-enable-p pgconn) (probe-file key-file)) - key-file))) + (uiop:native-namestring key-file)))) (flet ((connect (pgconn username) (handler-case (pomo:connect (db-name pgconn)