/* $NetBSD: tls_proxy.h,v 1.1.1.1 2011/03/02 19:32:27 tron Exp $ */ #ifndef _TLS_PROXY_H_INCLUDED_ #define _TLS_PROXY_H_INCLUDED_ /*++ /* NAME /* tls_proxy_clnt 3h /* SUMMARY /* postscreen TLS proxy support /* SYNOPSIS /* #include /* DESCRIPTION /* .nf /* * Utility library. */ #include #include /* * TLS library. */ #include /* * External interface. */ #define TLS_PROXY_FLAG_ROLE_SERVER (1<<0) /* request server role */ #define TLS_PROXY_FLAG_ROLE_CLIENT (1<<1) /* request client role */ #define TLS_PROXY_FLAG_SEND_CONTEXT (1<<2) /* send TLS context */ #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 /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA /*--*/ #endif