| 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 || |
nothing calls this directly
no test coverage detected