File: ssl.h

package info (click to toggle)
vsftpd 3.0.3-12
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,548 kB
  • sloc: ansic: 16,632; sh: 267; makefile: 51; python: 18
file content (33 lines) | stat: -rw-r--r-- 1,187 bytes parent folder | download | duplicates (6)
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
#ifndef VSF_SSL_H
#define VSF_SSL_H

struct vsf_session;
struct mystr;

int ssl_read(struct vsf_session* p_sess,
             void* p_ssl,
             char* p_buf,
             unsigned int len);
int ssl_peek(struct vsf_session* p_sess,
             void* p_ssl,
             char* p_buf,
             unsigned int len);
int ssl_write(void* p_ssl, const char* p_buf, unsigned int len);
int ssl_write_str(void* p_ssl, const struct mystr* p_str);
int ssl_read_into_str(struct vsf_session* p_sess,
                      void* p_ssl,
                      struct mystr* p_str);
void ssl_init(struct vsf_session* p_sess);
int ssl_accept(struct vsf_session* p_sess, int fd);
int ssl_data_close(struct vsf_session* p_sess);
void ssl_comm_channel_init(struct vsf_session* p_sess);
void ssl_comm_channel_set_consumer_context(struct vsf_session* p_sess);
void ssl_comm_channel_set_producer_context(struct vsf_session* p_sess);
void handle_auth(struct vsf_session* p_sess);
void handle_pbsz(struct vsf_session* p_sess);
void handle_prot(struct vsf_session* p_sess);
void ssl_control_handshake(struct vsf_session* p_sess);
void ssl_add_entropy(struct vsf_session* p_sess);

#endif /* VSF_SSL_H */