libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

handshake.c (325B)


      1 enum MHD_Bool
      2 (*handshake)(void *cls,
      3              struct MHD_TLS_ConnectionState *cs) :
      4 
      5 
      6   if (MHD_TLS_CONN_NO_TLS != connection->tls_state)
      7 {     /* HTTPS connection. */
      8   if (MHD_TLS_CONN_CONNECTED > connection->tls_state)
      9   {
     10     if (! MHD_run_tls_handshake_ (connection))
     11       return MHD_FALSE;
     12   }
     13 }
     14 return MHD_TRUE;