Added test for uploading big files.
[elinks.git] / src / network / ssl / ssl.h
blob7c54a7a861a2313a52767d160f98426ae557c818
2 #ifndef EL__NETWORK_SSL_SSL_H
3 #define EL__NETWORK_SSL_SSL_H
5 #ifdef CONFIG_SSL
7 #include "main/module.h"
9 struct socket;
11 extern struct module ssl_module;
13 /* Initializes the SSL connection data. Returns S_OK on success and S_SSL_ERROR
14 * on failure. */
15 int init_ssl_connection(struct socket *socket);
17 /* Releases the SSL connection data */
18 void done_ssl_connection(struct socket *socket);
20 unsigned char *get_ssl_connection_cipher(struct socket *socket);
23 /* Internal type used in ssl module. */
25 #ifdef CONFIG_OPENSSL
26 #define ssl_t SSL
27 #elif defined(CONFIG_GNUTLS)
28 #define ssl_t gnutls_session_t
29 #endif
31 #endif /* CONFIG_SSL */
32 #endif