11//
22// IPP Everywhere printer application for CUPS.
33//
4- // Copyright © 2020-2024 by OpenPrinting.
4+ // Copyright © 2020-2025 by OpenPrinting.
55// Copyright © 2020 by the IEEE-ISTO Printer Working Group.
66// Copyright © 2010-2021 by Apple Inc.
77//
@@ -4708,6 +4708,8 @@ process_client(ippeve_client_t *client) // I - Client
47084708
47094709 if (recv (httpGetFd (client -> http ), buf , 1 , MSG_PEEK ) == 1 && (!buf [0 ] || !strchr ("DGHOPT" , buf [0 ])))
47104710 {
4711+ char security [256 ]; // Security description
4712+
47114713 fprintf (stderr , "%s Starting HTTPS session.\n" , client -> hostname );
47124714
47134715 if (!httpSetEncryption (client -> http , HTTP_ENCRYPTION_ALWAYS ))
@@ -4716,7 +4718,7 @@ process_client(ippeve_client_t *client) // I - Client
47164718 break ;
47174719 }
47184720
4719- fprintf (stderr , "%s Connection now encrypted.\n" , client -> hostname );
4721+ fprintf (stderr , "%s Connection now encrypted (%s) .\n" , client -> hostname , httpGetSecurity ( client -> http , security , sizeof ( security )) );
47204722 }
47214723
47224724 first_time = false;
@@ -4853,6 +4855,8 @@ process_http(ippeve_client_t *client) // I - Client connection
48534855 {
48544856 if (strstr (httpGetField (client -> http , HTTP_FIELD_UPGRADE ), "TLS/" ) != NULL && !httpIsEncrypted (client -> http ))
48554857 {
4858+ char security [256 ]; // Security description
4859+
48564860 if (!respond_http (client , HTTP_STATUS_SWITCHING_PROTOCOLS , NULL , NULL , 0 ))
48574861 return (0 );
48584862
@@ -4864,7 +4868,7 @@ process_http(ippeve_client_t *client) // I - Client connection
48644868 return (0 );
48654869 }
48664870
4867- fprintf (stderr , "%s Connection now encrypted.\n" , client -> hostname );
4871+ fprintf (stderr , "%s Connection now encrypted (%s) .\n" , client -> hostname , httpGetSecurity ( client -> http , security , sizeof ( security )) );
48684872 }
48694873 else if (!respond_http (client , HTTP_STATUS_NOT_IMPLEMENTED , NULL , NULL , 0 ))
48704874 return (0 );
0 commit comments