"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/tls.h" between
ircd-hybrid-8.2.27.tgz and ircd-hybrid-8.2.28.tgz

About: IRCD-Hybrid is a Internet Relay Chat server.

tls.h  (ircd-hybrid-8.2.27.tgz):tls.h  (ircd-hybrid-8.2.28.tgz)
skipping to change at line 26 skipping to change at line 26
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA * USA
*/ */
/*! \file tls.h /*! \file tls.h
* \brief A header for generic TLS functions * \brief A header for generic TLS functions
* \version $Id: tls.h 9167 2020-01-18 19:08:06Z michael $ * \version $Id: tls.h 9223 2020-01-26 11:35:22Z michael $
*/ */
#ifndef INCLUDED_tls_h #ifndef INCLUDED_tls_h
#define INCLUDED_tls_h #define INCLUDED_tls_h
#ifdef HAVE_LIBCRYPTO #ifdef HAVE_LIBCRYPTO
#include "tls_openssl.h" #include "tls_openssl.h"
#elif defined(HAVE_LIBGNUTLS) #elif defined(HAVE_LIBGNUTLS)
#include "tls_gnutls.h" #include "tls_gnutls.h"
#elif defined(HAVE_LIBWOLFSSL) #elif defined(HAVE_LIBWOLFSSL)
skipping to change at line 60 skipping to change at line 60
typedef enum _tls_handshake_status typedef enum _tls_handshake_status
{ {
TLS_HANDSHAKE_DONE, TLS_HANDSHAKE_DONE,
TLS_HANDSHAKE_WANT_READ, TLS_HANDSHAKE_WANT_READ,
TLS_HANDSHAKE_WANT_WRITE, TLS_HANDSHAKE_WANT_WRITE,
TLS_HANDSHAKE_ERROR TLS_HANDSHAKE_ERROR
} tls_handshake_status_t; } tls_handshake_status_t;
extern bool tls_is_initialized(void); extern bool tls_is_initialized(void);
extern void tls_init(void); extern void tls_init(void);
extern bool tls_new_cred(void); extern bool tls_new_credentials(void);
extern const char *tls_get_cipher(const tls_data_t *); extern const char *tls_get_cipher(const tls_data_t *);
extern const char *tls_get_version(void); extern const char *tls_get_version(void);
extern bool tls_isusing(tls_data_t *); extern bool tls_isusing(tls_data_t *);
extern bool tls_new(tls_data_t *, int, tls_role_t); extern bool tls_new(tls_data_t *, int, tls_role_t);
extern void tls_free(tls_data_t *); extern void tls_free(tls_data_t *);
extern tls_handshake_status_t tls_handshake(tls_data_t *, tls_role_t, const char **); extern tls_handshake_status_t tls_handshake(tls_data_t *, tls_role_t, const char **);
extern ssize_t tls_read(tls_data_t *, char *, size_t, bool *); extern ssize_t tls_read(tls_data_t *, char *, size_t, bool *);
extern ssize_t tls_write(tls_data_t *, const char *, size_t, bool *); extern ssize_t tls_write(tls_data_t *, const char *, size_t, bool *);
extern void tls_shutdown(tls_data_t *); extern void tls_shutdown(tls_data_t *);
extern bool tls_set_ciphers(tls_data_t *, const char *); extern bool tls_set_ciphers(tls_data_t *, const char *);
extern bool tls_verify_cert(tls_data_t *, tls_md_t, char **); extern bool tls_verify_certificate(tls_data_t *, tls_md_t, char **);
#endif /* INCLUDED_tls_h */ #endif /* INCLUDED_tls_h */
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)