summaryrefslogtreecommitdiff
path: root/scheduler/ipp.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-08-28 15:37:22 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2014-08-28 15:37:22 +0000
commit7d5824d6a8f0aeb47c446f61e655c3a0f5c51e93 (patch)
tree62f89468c9607219f8c1fbc49c56fe546fc8bde0 /scheduler/ipp.c
parent3bc376ee94dd13ff43b9af675eb7381e443ea6ea (diff)
downloadcups-7d5824d6a8f0aeb47c446f61e655c3a0f5c51e93.tar.gz
Fix Linux builds without normal prerequisite libraries installed.
Also correct GCC 4.8 compiler warnings. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12124 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'scheduler/ipp.c')
-rw-r--r--scheduler/ipp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/scheduler/ipp.c b/scheduler/ipp.c
index 0e682ee8c..d775fb7ee 100644
--- a/scheduler/ipp.c
+++ b/scheduler/ipp.c
@@ -10823,8 +10823,10 @@ validate_job(cupsd_client_t *con, /* I - Client connection */
ipp_attribute_t *uri) /* I - Printer URI */
{
http_status_t status; /* Policy status */
- ipp_attribute_t *attr, /* Current attribute */
- *auth_info; /* auth-info attribute */
+ ipp_attribute_t *attr; /* Current attribute */
+#ifdef HAVE_SSL
+ ipp_attribute_t *auth_info; /* auth-info attribute */
+#endif /* HAVE_SSL */
ipp_attribute_t *format, /* Document-format attribute */
*name; /* Job-name attribute */
cups_ptype_t dtype; /* Destination type (printer/class) */
@@ -10990,7 +10992,9 @@ validate_job(cupsd_client_t *con, /* I - Client connection */
* Check policy...
*/
+#ifdef HAVE_SSL
auth_info = ippFindAttribute(con->request, "auth-info", IPP_TAG_TEXT);
+#endif /* HAVE_SSL */
if ((status = cupsdCheckPolicy(printer->op_policy_ptr, con, NULL)) != HTTP_OK)
{