fix no-ssl build
authorJeremy Harris <jgh146exb@wizmail.org>
Wed, 6 Jan 2016 12:25:16 +0000 (12:25 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Wed, 6 Jan 2016 14:06:19 +0000 (14:06 +0000)
src/src/expand.c

index 4d3dd6f..f144a75 100644 (file)
@@ -6890,9 +6890,13 @@ while (*s != 0)
       case EOP_STR2B64:
       case EOP_BASE64:
        {
+#ifdef SUPPORT_TLS
        uschar * s = vp && *(void **)vp->value
          ? tls_cert_der_b64(*(void **)vp->value)
          : b64encode(sub, Ustrlen(sub));
+#else
+       uschar * s = b64encode(sub, Ustrlen(sub));
+#endif
        yield = string_cat(yield, &size, &ptr, s, Ustrlen(s));
        continue;
        }