1 #ifndef GLOBUS_SSL_LOCL_H
2 #define GLOBUS_SSL_LOCL_H
4 #if OPENSSL_VERSION_NUMBER < 0x10100000L
6 #if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
7 #define SSL_STRONG_MASK 0x000001fcL
9 #define SSL_STRONG_MASK 0x000000fcL
12 #define SSL_LOW 0x00000020L
14 typedef struct ssl3_enc_method
16 int (*enc)(SSL *, int);
17 int (*mac)(SSL *,
unsigned char *, int);
18 int (*setup_key_block)(SSL *);
19 int (*generate_master_secret)(SSL *,
unsigned char *,
unsigned char *, int);
20 int (*change_cipher_state)(SSL *, int);
21 #if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
22 int (*final_finish_mac)(SSL *, EVP_MD_CTX *, EVP_MD_CTX *,
const char *, int,
unsigned char *);
24 int (*final_finish_mac)(SSL *,
const char *, int,
unsigned char *);
26 int finish_mac_length;
27 #if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
28 int (*cert_verify_mac)(SSL *, EVP_MD_CTX *,
unsigned char *);
30 int (*cert_verify_mac)(SSL *, int,
unsigned char *);
32 const char *client_finished_label;
33 int client_finished_label_len;
34 const char *server_finished_label;
35 int server_finished_label_len;
36 int (*alert_value)(int);
39 int ssl3_setup_buffers(SSL *s);
41 int ssl_init_wbio_buffer(SSL *s,
int push);
42 void ssl_free_wbio_buffer(SSL *s);
44 int ssl3_setup_key_block(SSL *s);
45 void ssl3_cleanup_key_block(SSL *s);
47 #if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
48 int ssl_cipher_get_evp(
const SSL_SESSION *s,
const EVP_CIPHER **enc,
49 const EVP_MD **md,
int *mac_pkey_type,
50 int *mac_secret_size, SSL_COMP **comp);
52 int ssl_cipher_get_evp(SSL_SESSION *s,
const EVP_CIPHER **enc,
53 const EVP_MD **md, SSL_COMP **comp);