Reviewed by Sam Weinig.
authoradachan@apple.com <adachan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Oct 2010 21:03:49 +0000 (21:03 +0000)
committeradachan@apple.com <adachan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Oct 2010 21:03:49 +0000 (21:03 +0000)
commit0eb1491f8709d7501661ca4fa0354c52a5c6fa58
tree6161e7ef67eb38928f7560187df499955e6deeba
parent1cef90dbdaac25c858bdfa5bbe6d8a8d7c8f46c7
    Reviewed by Sam Weinig.

        WebKit2: Store the certificate chain in PlatformCertificateInfo.
        https://bugs.webkit.org/show_bug.cgi?id=47603

        * Shared/API/c/win/WKCertificateInfoWin.cpp:
        (WKCertificateInfoGetCertificateChainLength):
        (WKCertificateInfoGetCertificateContextAtIndex):
        * Shared/API/c/win/WKCertificateInfoWin.h:
        * Shared/win/PlatformCertificateInfo.cpp:
        (WebKit::PlatformCertificateInfo::PlatformCertificateInfo): Get the chain context from the response and duplicate the certificate contexts
        in the chain to store in m_certificateChain.
        (WebKit::PlatformCertificateInfo::~PlatformCertificateInfo): Free all the certificate contexts in the chain.
        (WebKit::PlatformCertificateInfo::operator=): Duplicate the certificate contexts from the other PlatformCertificateInfo's certificate chain
        to store in m_certificateChain.
        (WebKit::PlatformCertificateInfo::encode):
        (WebKit::PlatformCertificateInfo::decode):
        (WebKit::PlatformCertificateInfo::clearCertificateChain): Free all the certificate contexts in the chain and clear the vector.
        * Shared/win/PlatformCertificateInfo.h:
        (WebKit::PlatformCertificateInfo::certificateChain):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@69802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit2/ChangeLog
WebKit2/Shared/API/c/win/WKCertificateInfoWin.cpp
WebKit2/Shared/API/c/win/WKCertificateInfoWin.h
WebKit2/Shared/win/PlatformCertificateInfo.cpp
WebKit2/Shared/win/PlatformCertificateInfo.h