1 #ifndef __USTREAM_SSL_H
2 #define __USTREAM_SSL_H
7 struct uloop_timeout error_timer
;
9 void (*notify_connected
)(struct ustream_ssl
*us
);
10 void (*notify_error
)(struct ustream_ssl
*us
, int error
, const char *str
);
20 void *ustream_ssl_context_new(bool server
);
21 int ustream_ssl_context_set_crt_file(void *ctx
, const char *file
);
22 int ustream_ssl_context_set_key_file(void *ctx
, const char *file
);
23 void ustream_ssl_context_free(void *ctx
);
25 int ustream_ssl_init(struct ustream_ssl
*us
, struct ustream
*conn
, void *ctx
, bool server
);