static void
fpv_create(const char *type, struct fake_pvconn *fpv)
{
+#ifdef HAVE_OPENSSL
if (!strcmp(type, "ssl")) {
stream_ssl_set_private_key_file("testpki-privkey.pem");
stream_ssl_set_certificate_file("testpki-cert.pem");
stream_ssl_set_ca_cert_file("testpki-cacert.pem", false);
}
+#endif
fpv->type = type;
if (!strcmp(type, "unix")) {
CHECK_ERRNO(pstream_open(fpv->pvconn_name, &fpv->pstream), 0);
free(bind_path);
} else if (!strcmp(type, "tcp") || !strcmp(type, "ssl")) {
- char *s, *method, *port, *save_ptr = NULL;
+ char *s, *port, *save_ptr = NULL;
char *open_name;
open_name = xasprintf("p%s:0:127.0.0.1", type);
/* Extract bound port number from pstream name. */
s = xstrdup(pstream_get_name(fpv->pstream));
- method = strtok_r(s, ":", &save_ptr);
+ strtok_r(s, ":", &save_ptr);
port = strtok_r(NULL, ":", &save_ptr);
/* Save info. */