From c77203090e0536c3e51b891cb455a4f53464f819 Mon Sep 17 00:00:00 2001 From: lpw Date: Tue, 12 Jul 2022 09:32:13 +0800 Subject: [PATCH] 2.6.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