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 4d3dd6fd5197203d5b9a7e19c5a43fb4e6209d49..f144a756118cecd7f0716f34860d62b22606d840 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;
        }