diff options
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r-- | src/microhttpd/internal.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index 00843729..7a1e58e1 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -480,7 +480,14 @@ enum MHD_CONNECTION_STATE | |||
480 | * Connection was "upgraded" and socket is now under the | 480 | * Connection was "upgraded" and socket is now under the |
481 | * control of the application. | 481 | * control of the application. |
482 | */ | 482 | */ |
483 | MHD_CONNECTION_UPGRADE = MHD_TLS_CONNECTION_INIT + 1 | 483 | MHD_CONNECTION_UPGRADE = MHD_TLS_CONNECTION_INIT + 1, |
484 | |||
485 | /** | ||
486 | * Connection was "upgraded" and subsequently closed | ||
487 | * by the application. We now need to do our own | ||
488 | * internal cleanup. | ||
489 | */ | ||
490 | MHD_CONNECTION_UPGRADE_CLOSED = MHD_TLS_CONNECTION_INIT + 1 | ||
484 | 491 | ||
485 | }; | 492 | }; |
486 | 493 | ||
@@ -854,6 +861,23 @@ struct MHD_Connection | |||
854 | 861 | ||
855 | #if HTTPS_SUPPORT | 862 | #if HTTPS_SUPPORT |
856 | /** | 863 | /** |
864 | * If this connection was upgraded and if we are using | ||
865 | * #MHD_USE_THREAD_PER_CONNECTION, this points to the | ||
866 | * upgrade response details such that the | ||
867 | * #thread_main_connection_upgrade()-logic can perform | ||
868 | * the bi-directional forwarding. | ||
869 | */ | ||
870 | struct MHD_UpgradeResponseHandle *urh; | ||
871 | |||
872 | /** | ||
873 | * If this connection was upgraded and if we are using | ||
874 | * #MHD_USE_THREAD_PER_CONNECTION without encryption, | ||
875 | * this points to the semaphore we use to signal termination | ||
876 | * to the thread handling the connection. | ||
877 | */ | ||
878 | struct MHD_Semaphore *upgrade_sem; | ||
879 | |||
880 | /** | ||
857 | * State required for HTTPS/SSL/TLS support. | 881 | * State required for HTTPS/SSL/TLS support. |
858 | */ | 882 | */ |
859 | gnutls_session_t tls_session; | 883 | gnutls_session_t tls_session; |