File: sslapp.h

package info (click to toggle)
netkit-ftp-ssl 0.17.9%2B0.2-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 344 kB
  • ctags: 425
  • sloc: ansic: 6,060; makefile: 88; sh: 6
file content (63 lines) | stat: -rw-r--r-- 1,467 bytes parent folder | download | duplicates (22)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* sslapp.h	- ssl application code */

/*
 * The modifications to support SSLeay were done by Tim Hudson
 * tjh@cryptsoft.com
 *
 * You can do whatever you like with these patches except pretend that
 * you wrote them.
 *
 * Email ssl-users-request@mincom.oz.au to get instructions on how to
 * join the mailing list that discusses SSLeay and also these patches.
 *
 */

#ifdef USE_SSL

#include <stdio.h>

#include <openssl/crypto.h>

#define SSL_set_pref_cipher(c,n)        SSL_set_cipher_list(c,n)
#define ONELINE_NAME(X) X509_NAME_oneline(X,NULL,0)
  
#define OLDPROTO NOPROTO
#define NOPROTO
#include <openssl/bio.h>
#undef NOPROTO
#define NOPROTO OLDPROTO
#undef OLDPROTO
#include <openssl/buffer.h>

#include <openssl/x509.h>
#include <openssl/ssl.h>
#include <openssl/err.h>

extern BIO *bio_err;
extern SSL *ssl_con;
extern SSL_CTX *ssl_ctx;
extern int ssl_debug_flag;
extern int ssl_only_flag;
extern int ssl_active_flag;
extern int ssl_verify_flag;
extern int ssl_secure_flag;
extern int ssl_verbose_flag;
extern int ssl_disabled_flag;
extern int ssl_cert_required;
extern int ssl_certsok_flag;

extern char *ssl_log_file; 
extern char *ssl_cert_file; 
extern char *ssl_key_file;
extern char *ssl_cipher_list;

/* we hide all the initialisation code in a separate file now */
extern int do_ssleay_init(int server);

/*extern int display_connect_details();
extern int server_verify_callback();
extern int client_verify_callback();*/

#endif /* USE_SSL */