~ubuntu-branches/ubuntu/feisty/elinks/feisty-updates

« back to all changes in this revision

Viewing changes to src/ssl/ssl.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-06-30 08:57:43 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060630085743-l81fgbw9dehvl1ds
Tags: 0.11.1-1ubuntu1
* Merge to Debian unstable.
* Removed gnutls12 porting, this is upstream now.
* Only Ubuntu changes left:
  - Killed type-handling.
  - Add X-Ubuntu-Gettext-Domain to .desktop files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: ssl.h,v 1.21 2004/08/03 00:50:50 jonas Exp $ */
2
 
 
3
 
#ifndef EL__SSL_SSL_H
4
 
#define EL__SSL_SSL_H
5
 
 
6
 
#ifdef CONFIG_SSL
7
 
 
8
 
#include "modules/module.h"
9
 
#include "sched/connection.h"
10
 
 
11
 
extern struct module ssl_module;
12
 
 
13
 
/* Initializes the SSL connection data. Returns S_OK on success and S_SSL_ERROR
14
 
 * on failure. */
15
 
int init_ssl_connection(struct connection_socket *socket);
16
 
 
17
 
/* Releases the SSL connection data */
18
 
void done_ssl_connection(struct connection_socket *socket);
19
 
 
20
 
unsigned char *get_ssl_connection_cipher(struct connection *conn);
21
 
 
22
 
 
23
 
/* Internal type used in ssl module. */
24
 
 
25
 
#ifdef CONFIG_OPENSSL
26
 
#define ssl_t   SSL
27
 
#elif defined(CONFIG_GNUTLS)
28
 
#define ssl_t   gnutls_session_t
29
 
#endif
30
 
 
31
 
#endif /* CONFIG_SSL */
32
 
#endif