summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-03-27 13:05:00 +0100
committerVolker Lendecke <vl@samba.org>2009-03-30 11:11:19 +0200
commit4b184eaea1aca5b69a7e9509353e6c4d73cce2c1 (patch)
tree797eca9495acfa4218b0e4deb89251295c77c315 /source3/printing
parent4b8e4ea7286f045effb6feb4c7bf8c5ef4ed2f9b (diff)
downloadsamba-4b184eaea1aca5b69a7e9509353e6c4d73cce2c1.tar.gz
samba-4b184eaea1aca5b69a7e9509353e6c4d73cce2c1.tar.bz2
samba-4b184eaea1aca5b69a7e9509353e6c4d73cce2c1.zip
s3/cups: add encryption support
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/print_cups.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index 8e792a944a..7edfb5edbe 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -93,7 +93,12 @@ static http_t *cups_connect(TALLOC_CTX *frame)
alarm(timeout);
}
+#ifdef HAVE_HTTPCONNECTENCRYPT
+ http = httpConnectEncrypt(server, port, lp_cups_encrypt());
+#else
http = httpConnect(server, port);
+#endif
+
CatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN);
alarm(0);