mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add API for SSL status and certificate retrieval (issue #1924)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "libcef/browser/navigation_entry_impl.h"
|
||||
|
||||
#include "libcef/browser/ssl_status_impl.h"
|
||||
#include "libcef/common/time_util.h"
|
||||
|
||||
#include "content/public/browser/navigation_entry.h"
|
||||
@@ -62,3 +63,9 @@ int CefNavigationEntryImpl::GetHttpStatusCode() {
|
||||
CEF_VALUE_VERIFY_RETURN(false, 0);
|
||||
return const_value().GetHttpStatusCode();
|
||||
}
|
||||
|
||||
CefRefPtr<CefSSLStatus> CefNavigationEntryImpl::GetSSLStatus() {
|
||||
CEF_VALUE_VERIFY_RETURN(false, nullptr);
|
||||
return new CefSSLStatusImpl(const_value().GetSSL());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user