0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-10-21 19:54:04 -04:00
Files
elinks/src/network/ssl/ssl.h
Petr Baudis 0f6d4310ad Initial commit of the HEAD branch of the ELinks CVS repository, as of
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this
by grafting.
2005-09-15 15:58:31 +02:00

34 lines
696 B
C

/* $Id: ssl.h,v 1.26 2005/09/13 16:44:10 pasky Exp $ */
#ifndef EL__NETWORK_SSL_SSL_H
#define EL__NETWORK_SSL_SSL_H
#ifdef CONFIG_SSL
#include "main/module.h"
struct socket;
extern struct module ssl_module;
/* Initializes the SSL connection data. Returns S_OK on success and S_SSL_ERROR
* on failure. */
int init_ssl_connection(struct socket *socket);
/* Releases the SSL connection data */
void done_ssl_connection(struct socket *socket);
unsigned char *get_ssl_connection_cipher(struct socket *socket);
/* Internal type used in ssl module. */
#ifdef CONFIG_OPENSSL
#define ssl_t SSL
#elif defined(CONFIG_GNUTLS)
#define ssl_t gnutls_session_t
#endif
#endif /* CONFIG_SSL */
#endif