MCPcopy Create free account
hub / github.com/OpenPrinting/cups / if

Function if

cups/testhttp.c:785–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783 }
784#ifdef HAVE_TLS
785 else if (status == HTTP_STATUS_UPGRADE_REQUIRED)
786 {
787 /* Flush any error message... */
788 httpFlush(http);
789
790 /* Reconnect... */
791 if (httpReconnect2(http, 30000, NULL))
792 {
793 status = HTTP_STATUS_ERROR;
794 break;
795 }
796
797 /* Upgrade with encryption... */
798 httpEncryption(http, HTTP_ENCRYPTION_REQUIRED);
799
800 /* Try again, this time with encryption enabled... */
801 continue;
802 }
803#endif /* HAVE_TLS */
804 }
805 while (status == HTTP_STATUS_UNAUTHORIZED ||

Callers

nothing calls this directly

Calls 3

httpFlushFunction · 0.85
httpReconnect2Function · 0.85
httpEncryptionFunction · 0.85

Tested by

no test coverage detected