X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5c19dc3ae3bd8e40a9c028b0deddd50ff337692c..dd5fb164cf5b32c462296bc65e289e100f74b59a:/OSX/libsecurity_ssl/lib/SecureTransportPriv.h?ds=inline diff --git a/OSX/libsecurity_ssl/lib/SecureTransportPriv.h b/OSX/libsecurity_ssl/lib/SecureTransportPriv.h index 2ff85fb1..4df1cbc3 100644 --- a/OSX/libsecurity_ssl/lib/SecureTransportPriv.h +++ b/OSX/libsecurity_ssl/lib/SecureTransportPriv.h @@ -146,6 +146,7 @@ SSLGetClientSideAuthenticate ( SSLContextRef context, SSLAuthenticate *auth); // RETURNED +#if !TARGET_OS_IPHONE /* * Get/set array of trusted leaf certificates. * @@ -161,7 +162,7 @@ OSStatus SSLCopyTrustedLeafCertificates ( SSLContextRef context, CFArrayRef *certRefs); // RETURNED, caller must release - +#endif /* * Get/set enable of anonymous ciphers. This is deprecated and now a no-op. */ @@ -375,10 +376,10 @@ extern OSStatus SSLGetClientAuthTypes( unsigned *numTypes); /* IN/OUT */ /* - * Obtain the SSLClientAuthenticationType actually performed. - * Only valid if client certificate state is kSSLClientCertSent - * or kSSLClientCertRejected; SSLClientAuthNone is returned as - * the negotiated auth type otherwise. + * -- DEPRECATED -- + * This is not actually useful. Currently return errSecUnimplemented. + * The client auth type is fully determined by the type of private key used by + * the client. */ extern OSStatus SSLGetNegotiatedClientAuthType( SSLContextRef ctx, @@ -737,6 +738,13 @@ _SSLDisposeContext (SSLContextRef context); #endif /* TARGET_OS_IPHONE */ +/* + * Map the SSLProtocol enum to an enum capturing the wire format (coreTLS) version. + */ +#define SECURITY_HAS_TLS_VERSION_TRANSLATOR 1 +tls_protocol_version +_SSLProtocolVersionToWireFormatValue (SSLProtocol protocol); + /* * Create a new Datagram TLS session context. @@ -824,16 +832,6 @@ SSLGetALPNData (SSLContextRef context, // end of ALPN -OSStatus -SSLCopyRequestedPeerName (SSLContextRef context, - char *peerName, - size_t *peerNameLen); - -OSStatus -SSLCopyRequestedPeerNameLength (SSLContextRef ctx, - size_t *peerNameLen); - - #ifdef __cplusplus } #endif