File: sslapp.h

package info (click to toggle)
netkit-telnet-ssl 0.17.41%2B0.2-3.3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 4,672 kB
  • sloc: cpp: 6,952; ansic: 6,720; sh: 203; makefile: 64
file content (88 lines) | stat: -rw-r--r-- 1,783 bytes parent folder | download | duplicates (2)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* 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>

#ifdef __cplusplus
extern "C" {
#endif

#include "crypto.h"

#if SSLEAY_VERSION_NUMBER >= 0x0800
#define SSLEAY8
#endif
 
#ifdef SSLEAY8
#define ONELINE_NAME(X) X509_NAME_oneline(X,NULL,0)
#else
#define ONELINE_NAME(X) X509_NAME_oneline(X)
#endif
  
#ifdef SSLEAY8
#define OLDPROTO NOPROTO
#define NOPROTO
#include "bio.h"
#undef NOPROTO
#define NOPROTO OLDPROTO
#undef OLDPROTO
#endif
#include "buffer.h"

#include "x509.h"
#include "ssl.h"
#define OLDPROTO NOPROTO
#undef NOPROTO
#define NOPROTO
#include "err.h"
#undef NOPROTO
#define NOPROTO OLDPROTO
#undef OLDPROTO

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_cacert_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 void display_connect_details(SSL *ssl_con, int verbose);
extern int server_verify_callback();
extern int client_verify_callback();
extern int ssl_only_verify_callback();

#ifdef __cplusplus
}
#endif

#endif /* USE_SSL */