~ubuntu-branches/ubuntu/quantal/openconnect/quantal

« back to all changes in this revision

Viewing changes to openconnect.h

  • Committer: Bazaar Package Importer
  • Author(s): Dominic Hargreaves
  • Date: 2010-08-28 11:21:16 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100828112116-ryuqbk0u848n7zis
Tags: 2.25-0.1
* Non-maintainer upload.
* New upstream release (Closes: #566188)
  - always verify SSL server certificates (Closes: #590873)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include <sys/types.h>
36
36
#include <unistd.h>
37
37
#ifdef OPENCONNECT_LIBPROXY
38
 
#include <libproxy/proxy.h>
 
38
#include LIBPROXY_HDR
39
39
#endif
40
40
 
41
41
 
173
173
        char *dtls_ciphers;
174
174
        uid_t uid_csd;
175
175
        int uid_csd_given;
 
176
        int no_http_keepalive;
176
177
 
177
178
        char *cookie;
178
179
        struct vpn_option *cookies;
210
211
        char *ifname;
211
212
 
212
213
        int mtu;
 
214
        const char *banner;
213
215
        const char *vpn_addr;
214
216
        const char *vpn_netmask;
215
217
        const char *vpn_addr6;
249
251
 
250
252
        char *quit_reason;
251
253
 
252
 
        int (*validate_peer_cert) (struct openconnect_info *vpninfo, X509 *cert);
 
254
        int (*validate_peer_cert) (struct openconnect_info *vpninfo, X509 *cert, const char *reason);
253
255
        int (*write_new_config) (struct openconnect_info *vpninfo, char *buf, int buflen);
254
256
        int (*process_auth_form) (struct openconnect_info *vpninfo, struct oc_auth_form *form);
255
257
 
273
275
#define AC_PKT_TERM_SERVER      9       /* Server kick */
274
276
 
275
277
/* Ick */
276
 
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
 
278
#if OPENSSL_VERSION_NUMBER >= 0x00909000L
277
279
#define method_const const
278
280
#else
279
281
#define method_const
287
289
void shutdown_tun(struct openconnect_info *vpninfo);
288
290
 
289
291
/* dtls.c */
 
292
unsigned char unhex(const char *data);
290
293
int setup_dtls(struct openconnect_info *vpninfo);
291
294
int dtls_mainloop(struct openconnect_info *vpninfo, int *timeout);
292
295
int dtls_try_handshake(struct openconnect_info *vpninfo);