]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_ssl/lib/SecureTransportPriv.h
Security-58286.20.16.tar.gz
[apple/security.git] / OSX / libsecurity_ssl / lib / SecureTransportPriv.h
index 2ff85fb16ccfd46844ba01763c3cafbdb9605ec4..4df1cbc31bf0eb49ba4e65223b230da63f4fa3da 100644 (file)
@@ -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