2024-01-05 19:03:36 +01:00
|
|
|
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
2016-09-02 12:01:33 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2024-01-05 19:03:36 +01:00
|
|
|
// $hash=b23d3f9a53bb2c7020ee4d83adcd0de6f3d4a175$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/sslstatus_cpptoc.h"
|
2024-04-30 17:45:07 +02:00
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
#include "libcef_dll/cpptoc/x509certificate_cpptoc.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
int CEF_CALLBACK sslstatus_is_secure_connection(struct _cef_sslstatus_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-09-02 12:01:33 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefSSLStatusCppToC::Get(self)->IsSecureConnection();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_cert_status_t CEF_CALLBACK
|
|
|
|
sslstatus_get_cert_status(struct _cef_sslstatus_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-09-02 12:01:33 +02:00
|
|
|
return CERT_STATUS_NONE;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_cert_status_t _retval = CefSSLStatusCppToC::Get(self)->GetCertStatus();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_ssl_version_t CEF_CALLBACK
|
|
|
|
sslstatus_get_sslversion(struct _cef_sslstatus_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-09-02 12:01:33 +02:00
|
|
|
return SSL_CONNECTION_VERSION_UNKNOWN;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_ssl_version_t _retval = CefSSLStatusCppToC::Get(self)->GetSSLVersion();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_ssl_content_status_t CEF_CALLBACK
|
|
|
|
sslstatus_get_content_status(struct _cef_sslstatus_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-09-02 12:01:33 +02:00
|
|
|
return SSL_CONTENT_NORMAL_CONTENT;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_ssl_content_status_t _retval =
|
|
|
|
CefSSLStatusCppToC::Get(self)->GetContentStatus();
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_x509certificate_t* CEF_CALLBACK
|
|
|
|
sslstatus_get_x509certificate(struct _cef_sslstatus_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-09-02 12:01:33 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefX509Certificate> _retval =
|
|
|
|
CefSSLStatusCppToC::Get(self)->GetX509Certificate();
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefX509CertificateCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefSSLStatusCppToC::CefSSLStatusCppToC() {
|
|
|
|
GetStruct()->is_secure_connection = sslstatus_is_secure_connection;
|
|
|
|
GetStruct()->get_cert_status = sslstatus_get_cert_status;
|
|
|
|
GetStruct()->get_sslversion = sslstatus_get_sslversion;
|
|
|
|
GetStruct()->get_content_status = sslstatus_get_content_status;
|
|
|
|
GetStruct()->get_x509certificate = sslstatus_get_x509certificate;
|
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefSSLStatusCppToC::~CefSSLStatusCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefSSLStatus>
|
|
|
|
CefCppToCRefCounted<CefSSLStatusCppToC, CefSSLStatus, cef_sslstatus_t>::
|
|
|
|
UnwrapDerived(CefWrapperType type, cef_sslstatus_t* s) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2016-09-02 12:01:33 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefSSLStatusCppToC,
|
|
|
|
CefSSLStatus,
|
|
|
|
cef_sslstatus_t>::kWrapperType =
|
|
|
|
WT_SSLSTATUS;
|