Blame src/microhttpd/connection_https.h

Packit 875988
/*
Packit 875988
     This file is part of libmicrohttpd
Packit 875988
     Copyright (C) 2008 Daniel Pittman and Christian Grothoff
Packit 875988
Packit 875988
     This library is free software; you can redistribute it and/or
Packit 875988
     modify it under the terms of the GNU Lesser General Public
Packit 875988
     License as published by the Free Software Foundation; either
Packit 875988
     version 2.1 of the License, or (at your option) any later version.
Packit 875988
Packit 875988
     This library is distributed in the hope that it will be useful,
Packit 875988
     but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 875988
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 875988
     Lesser General Public License for more details.
Packit 875988
Packit 875988
     You should have received a copy of the GNU Lesser General Public
Packit 875988
     License along with this library; if not, write to the Free Software
Packit 875988
     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
Packit 875988
*/
Packit 875988
Packit 875988
/**
Packit 875988
 * @file connection_https.h
Packit 875988
 * @brief  Methods for managing connections
Packit 875988
 * @author Christian Grothoff
Packit 875988
 */
Packit 875988
Packit 875988
#ifndef CONNECTION_HTTPS_H
Packit 875988
#define CONNECTION_HTTPS_H
Packit 875988
Packit 875988
#include "internal.h"
Packit 875988
Packit 875988
#ifdef HTTPS_SUPPORT
Packit 875988
/**
Packit 875988
 * Set connection callback function to be used through out
Packit 875988
 * the processing of this secure connection.
Packit 875988
 *
Packit 875988
 * @param connection which callbacks should be modified
Packit 875988
 */
Packit 875988
void 
Packit 875988
MHD_set_https_callbacks (struct MHD_Connection *connection);
Packit 875988
Packit 875988
Packit 875988
/**
Packit 875988
 * Give gnuTLS chance to work on the TLS handshake.
Packit 875988
 *
Packit 875988
 * @param connection connection to handshake on
Packit 875988
 * @return true if the handshake has completed successfully
Packit 875988
 *         and we should start to read/write data,
Packit 875988
 *         false is handshake in progress or in case
Packit 875988
 *         of error
Packit 875988
 */
Packit 875988
bool
Packit 875988
MHD_run_tls_handshake_ (struct MHD_Connection *connection);
Packit 875988
Packit 875988
Packit 875988
/**
Packit 875988
 * Initiate shutdown of TLS layer of connection.
Packit 875988
 *
Packit 875988
 * @param connection to use
Packit 875988
 * @return true if succeed, false otherwise.
Packit 875988
 */
Packit 875988
bool
Packit 875988
MHD_tls_connection_shutdown (struct MHD_Connection *connection);
Packit 875988
#endif /* HTTPS_SUPPORT */
Packit 875988
Packit 875988
#endif