#ifndef _TLS_PROXY_H_INCLUDED_
#define _TLS_PROXY_H_INCLUDED_
#include <vstream.h>
#include <attr.h>
#include <tls.h>
#define TLS_PROXY_FLAG_ROLE_SERVER (1<<0)
#define TLS_PROXY_FLAG_ROLE_CLIENT (1<<1)
#define TLS_PROXY_FLAG_SEND_CONTEXT (1<<2)
#ifdef USE_TLS
extern VSTREAM *tls_proxy_open(const char *, int, VSTREAM *, const char *,
const char *, int);
extern TLS_SESS_STATE *tls_proxy_context_receive(VSTREAM *);
extern void tls_proxy_context_free(TLS_SESS_STATE *);
extern int tls_proxy_context_print(ATTR_PRINT_MASTER_FN, VSTREAM *, int, void *);
extern int tls_proxy_context_scan(ATTR_SCAN_MASTER_FN, VSTREAM *, int, void *);
#endif
#endif