Fixed cups httpConnectEncrypt deprecation warning.
This commit is contained in:
parent
3ee0cc6b70
commit
9a60d2feb0
@ -178,9 +178,13 @@ static rdpPrintJob* printer_cups_create_printjob(rdpPrinter* printer, UINT32 id)
|
||||
{
|
||||
char buf[100];
|
||||
|
||||
#if !defined(_CUPS_API_1_7)
|
||||
cups_printjob->printjob_object =
|
||||
httpConnectEncrypt(cupsServer(), ippPort(), HTTP_ENCRYPT_IF_REQUESTED);
|
||||
|
||||
#else
|
||||
cups_printjob->printjob_object = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC,
|
||||
HTTP_ENCRYPT_IF_REQUESTED, 1, 10000, NULL);
|
||||
#endif
|
||||
if (!cups_printjob->printjob_object)
|
||||
{
|
||||
free(cups_printjob);
|
||||
|
Loading…
Reference in New Issue
Block a user