#ifndef __TLS_HELPERS_H__
#define __TLS_HELPERS_H__
#include <tls_handshake.h>
#include <Security/SecTrust.h>
#include <Security/SecureTransport.h>
OSStatus
tls_helper_create_peer_trust(tls_handshake_t hdsk, bool server, SecTrustRef *trustRef);
OSStatus
tls_helper_set_peer_pubkey(tls_handshake_t hdsk);
tls_protocol_version
tls_helper_version_from_SSLProtocol(SSLProtocol protocol);
SSLProtocol
tls_helper_SSLProtocol_from_version(tls_protocol_version version);
CFArrayRef
tls_helper_create_peer_acceptable_dn_array(tls_handshake_t hdsk);
OSStatus
tls_helper_set_identity_from_array(tls_handshake_t hdsk, CFArrayRef certchain);
#endif