=== modified file 'Makefile' --- Makefile 2007-10-28 17:59:38 +0000 +++ Makefile 2008-01-18 22:04:19 +0000 @@ -4,4 +4,10 @@ all: client server clean: - rm -f server client + rm -f server client client_debug + +client_debug: client + mv -f client client.tmp + $(MAKE) client CXXFLAGS="$(CXXFLAGS) -DDEBUG -DCERT_ROOT=." + mv client client_debug + mv client.tmp client === modified file 'client.cpp' --- client.cpp 2008-01-18 21:18:26 +0000 +++ client.cpp 2008-01-18 22:04:19 +0000 @@ -21,9 +21,13 @@ #define SOCKET_ERR(err,s) if(err<0) {perror(s); status = 1; goto quit;} #define PORT 49001 -#define CERTFILE "/conf/conf.d/cryptkeyreq/client-cert.pem" -#define KEYFILE "/conf/conf.d/cryptkeyreq/client-key.pem" -#define CAFILE "/conf/conf.d/cryptkeyreq/ca.pem" + +#ifndef CERT_ROOT +#define CERT_ROOT "/conf/conf.d/cryptkeyreq/" +#endif +#define CERTFILE CERT_ROOT "client-cert.pem" +#define KEYFILE CERT_ROOT "client-key.pem" +#define CAFILE CERT_ROOT "ca.pem" gnutls_certificate_credentials_t x509_cred;