From 0b97cfb3490c70664ec62cd5f9e5f01abd912270 Mon Sep 17 00:00:00 2001
From: LPW <812862340@qq.com>
Date: Wed, 05 Jan 2022 11:09:35 +0800
Subject: [PATCH] 2.4.1

---
 frameworks/AFNetworking.framework/Headers/AFSecurityPolicy.h |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/frameworks/AFNetworking.framework/Headers/AFSecurityPolicy.h b/frameworks/AFNetworking.framework/Headers/AFSecurityPolicy.h
index c005efa..9b966a5 100644
--- a/frameworks/AFNetworking.framework/Headers/AFSecurityPolicy.h
+++ b/frameworks/AFNetworking.framework/Headers/AFSecurityPolicy.h
@@ -45,10 +45,10 @@
 
 /**
  The certificates used to evaluate server trust according to the SSL pinning mode. 
-
-  By default, this property is set to any (`.cer`) certificates included in the target compiling AFNetworking. Note that if you are using AFNetworking as embedded framework, no certificates will be pinned by default. Use `certificatesInBundle` to load certificates from your target, and then create a new policy by calling `policyWithPinningMode:withPinnedCertificates`.
  
  Note that if pinning is enabled, `evaluateServerTrust:forDomain:` will return true if any pinned certificate matches.
+
+ @see policyWithPinningMode:withPinnedCertificates:
  */
 @property (nonatomic, strong, nullable) NSSet <NSData *> *pinnedCertificates;
 
@@ -90,10 +90,14 @@
 
 /**
  Creates and returns a security policy with the specified pinning mode.
+ 
+ Certificates with the `.cer` extension found in the main bundle will be pinned. If you want more control over which certificates are pinned, please use `policyWithPinningMode:withPinnedCertificates:` instead.
 
  @param pinningMode The SSL pinning mode.
 
  @return A new security policy.
+
+ @see -policyWithPinningMode:withPinnedCertificates:
  */
 + (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode;
 
@@ -104,7 +108,10 @@
  @param pinnedCertificates The certificates to pin against.
 
  @return A new security policy.
- */
+
+ @see +certificatesInBundle:
+ @see -pinnedCertificates
+*/
 + (instancetype)policyWithPinningMode:(AFSSLPinningMode)pinningMode withPinnedCertificates:(NSSet <NSData *> *)pinnedCertificates;
 
 ///------------------------------

--
Gitblit v1.8.0