2011-03-28 Jeff Miller <jeffm@apple.com>
Reviewed by Adam Roben.
Include certificate when sending a WebCore::ResourceError to UI process on Windows
https://bugs.webkit.org/show_bug.cgi?id=57195
Rename wkGetSSLPeerCertificateData() to wkGetSSLPeerCertificateDataBytePtr(), since it returns a void*, and
implement wkGetSSLPeerCertificateData() to return a CFDataRef. Add wkSetSSLPeerCertificateData() so
WebCore::ResourceError can set the certificate in the user info dictionary.
* win/include/WebKitSystemInterface/WebKitSystemInterface.h:
* win/lib/WebKitSystemInterface.lib:
2011-03-28 Jeff Miller <jeffm@apple.com>
Reviewed by Adam Roben.
Include certificate when sending a WebCore::ResourceError to UI process on Windows
https://bugs.webkit.org/show_bug.cgi?id=57195
Rename callers of wkGetSSLPeerCertificateData() to use wkGetSSLPeerCertificateDataBytePtr(), since it returns a void*.
* WebError.cpp:
(WebError::sslPeerCertificate):
* WebURLResponse.cpp:
(WebURLResponse::sslPeerCertificate):
2011-03-28 Jeff Miller <jeffm@apple.com>
Reviewed by Adam Roben.
Include certificate when sending a WebCore::ResourceError to UI process on Windows
https://bugs.webkit.org/show_bug.cgi?id=57195
Add support for tracking the certificate in WebCore::ResourceError.
* platform/network/ResourceErrorBase.cpp:
(WebCore::ResourceErrorBase::copy): Call platformCopy() to copy platform-specific fields.
* platform/network/ResourceErrorBase.h:
(WebCore::ResourceErrorBase::platformCopy): Added.
* platform/network/cf/ResourceError.h: Added constructor that takes certificate data, shadowed platformCopy, added m_certificate.
(WebCore::ResourceError::certificate): Added.
* platform/network/cf/ResourceErrorCF.cpp:
(WebCore::ResourceError::ResourceError): Added constructor that takes certificate data.
(WebCore::ResourceError::platformLazyInit): Read any certificate from the userInfo dictionary.
(WebCore::ResourceError::platformCopy): Copy m_certificate.
(WebCore::ResourceError::cfError): Add any certificate data to the userInfo dictionary in the CFErrorRef.
2011-03-28 Jeff Miller <jeffm@apple.com>
Reviewed by Adam Roben.
Include certificate when sending a WebCore::ResourceError to UI process on Windows
https://bugs.webkit.org/show_bug.cgi?id=57195
Add support for sending the certificate with the WebCore::ResourceError.
* Shared/win/WebCoreArgumentCodersWin.cpp:
(CoreIPC::encodeResourceError): Encode certificate data.
(CoreIPC::deallocCertContext): Added.
(CoreIPC::createCertContextDeallocator): Added.
(CoreIPC::copyCert): Added.
(CoreIPC::decodeResourceError): Decode certificate data.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@82137
268f45cc-cd09-0410-ab3c-
d52691b4dbfc