Changeset 202361 in webkit
- Timestamp:
- Jun 22, 2016 5:19:53 PM (8 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r202359 r202361 1 2016-06-22 Sam Weinig <sam@webkit.org> 2 3 Add SPI to allow creating a WKCertificateInfoRef from a SecTrustRef 4 https://bugs.webkit.org/show_bug.cgi?id=159025 5 6 Reviewed by Tim Horton. 7 8 * Shared/API/c/mac/WKCertificateInfoMac.h: 9 * Shared/API/c/mac/WKCertificateInfoMac.mm: 10 (WKCertificateInfoCreateWithServerTrust): 11 1 12 2016-06-22 Brady Eidson <beidson@apple.com> 2 13 -
trunk/Source/WebKit2/Shared/API/c/mac/WKCertificateInfoMac.h
r200463 r202361 35 35 #endif 36 36 37 WK_EXPORT WKCertificateInfoRef WKCertificateInfoCreateWithServerTrust(SecTrustRef serverTrust); 37 38 WK_EXPORT WKCertificateInfoRef WKCertificateInfoCreateWithCertficateChain(CFArrayRef certificateChain); 38 39 WK_EXPORT SecTrustRef WKCertificateInfoGetServerTrust(WKCertificateInfoRef certificateInfo); -
trunk/Source/WebKit2/Shared/API/c/mac/WKCertificateInfoMac.mm
r202242 r202361 33 33 using namespace WebKit; 34 34 35 WKCertificateInfoRef WKCertificateInfoCreateWithServerTrust(SecTrustRef serverTrust) 36 { 37 #if HAVE(SEC_TRUST_SERIALIZATION) 38 RefPtr<WebCertificateInfo> certificateInfo = WebCertificateInfo::create(CertificateInfo(serverTrust)); 39 return toAPI(certificateInfo.leakRef()); 40 #else 41 return nullptr; 42 #endif 43 } 44 35 45 WKCertificateInfoRef WKCertificateInfoCreateWithCertficateChain(CFArrayRef certificateChain) 36 46 {
Note: See TracChangeset
for help on using the changeset viewer.