2023-01-02 23:47:15 +01:00
|
|
|
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
|
2015-02-11 19:15:04 +01: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.
|
|
|
|
//
|
2023-01-02 23:47:15 +01:00
|
|
|
// $hash=06fc26b84bc5dda324774ba87944b41e3669bfb7$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2015-02-11 19:15:04 +01:00
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
#include "libcef_dll/cpptoc/x509cert_principal_cpptoc.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2015-02-11 19:15:04 +01:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
namespace {
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
x509cert_principal_get_display_name(struct _cef_x509cert_principal_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2016-09-02 12:01:33 +02:00
|
|
|
CefString _retval = CefX509CertPrincipalCppToC::Get(self)->GetDisplayName();
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
x509cert_principal_get_common_name(struct _cef_x509cert_principal_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2016-09-02 12:01:33 +02:00
|
|
|
CefString _retval = CefX509CertPrincipalCppToC::Get(self)->GetCommonName();
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
x509cert_principal_get_locality_name(struct _cef_x509cert_principal_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2016-09-02 12:01:33 +02:00
|
|
|
CefString _retval = CefX509CertPrincipalCppToC::Get(self)->GetLocalityName();
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
x509cert_principal_get_state_or_province_name(
|
2016-09-02 12:01:33 +02:00
|
|
|
struct _cef_x509cert_principal_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval =
|
|
|
|
CefX509CertPrincipalCppToC::Get(self)->GetStateOrProvinceName();
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
x509cert_principal_get_country_name(struct _cef_x509cert_principal_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Execute
|
2016-09-02 12:01:33 +02:00
|
|
|
CefString _retval = CefX509CertPrincipalCppToC::Get(self)->GetCountryName();
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
x509cert_principal_get_street_addresses(struct _cef_x509cert_principal_t* self,
|
|
|
|
cef_string_list_t addresses) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
// Verify param: addresses; type: string_vec_byref
|
|
|
|
DCHECK(addresses);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!addresses) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Translate param: addresses; type: string_vec_byref
|
|
|
|
std::vector<CefString> addressesList;
|
|
|
|
transfer_string_list_contents(addresses, addressesList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefX509CertPrincipalCppToC::Get(self)->GetStreetAddresses(addressesList);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Restore param: addresses; type: string_vec_byref
|
|
|
|
cef_string_list_clear(addresses);
|
|
|
|
transfer_string_list_contents(addressesList, addresses);
|
|
|
|
}
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
void CEF_CALLBACK x509cert_principal_get_organization_names(
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_x509cert_principal_t* self,
|
|
|
|
cef_string_list_t names) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
// Verify param: names; type: string_vec_byref
|
|
|
|
DCHECK(names);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!names) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Translate param: names; type: string_vec_byref
|
|
|
|
std::vector<CefString> namesList;
|
|
|
|
transfer_string_list_contents(names, namesList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefX509CertPrincipalCppToC::Get(self)->GetOrganizationNames(namesList);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Restore param: names; type: string_vec_byref
|
|
|
|
cef_string_list_clear(names);
|
|
|
|
transfer_string_list_contents(namesList, names);
|
|
|
|
}
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
void CEF_CALLBACK x509cert_principal_get_organization_unit_names(
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_x509cert_principal_t* self,
|
|
|
|
cef_string_list_t names) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
// Verify param: names; type: string_vec_byref
|
|
|
|
DCHECK(names);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!names) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Translate param: names; type: string_vec_byref
|
|
|
|
std::vector<CefString> namesList;
|
|
|
|
transfer_string_list_contents(names, namesList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefX509CertPrincipalCppToC::Get(self)->GetOrganizationUnitNames(namesList);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Restore param: names; type: string_vec_byref
|
|
|
|
cef_string_list_clear(names);
|
|
|
|
transfer_string_list_contents(namesList, names);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
x509cert_principal_get_domain_components(struct _cef_x509cert_principal_t* self,
|
|
|
|
cef_string_list_t components) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
// Verify param: components; type: string_vec_byref
|
|
|
|
DCHECK(components);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!components) {
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Translate param: components; type: string_vec_byref
|
|
|
|
std::vector<CefString> componentsList;
|
|
|
|
transfer_string_list_contents(components, componentsList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefX509CertPrincipalCppToC::Get(self)->GetDomainComponents(componentsList);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Restore param: components; type: string_vec_byref
|
|
|
|
cef_string_list_clear(components);
|
|
|
|
transfer_string_list_contents(componentsList, components);
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
} // namespace
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
CefX509CertPrincipalCppToC::CefX509CertPrincipalCppToC() {
|
|
|
|
GetStruct()->get_display_name = x509cert_principal_get_display_name;
|
|
|
|
GetStruct()->get_common_name = x509cert_principal_get_common_name;
|
|
|
|
GetStruct()->get_locality_name = x509cert_principal_get_locality_name;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->get_state_or_province_name =
|
2016-09-02 12:01:33 +02:00
|
|
|
x509cert_principal_get_state_or_province_name;
|
|
|
|
GetStruct()->get_country_name = x509cert_principal_get_country_name;
|
|
|
|
GetStruct()->get_street_addresses = x509cert_principal_get_street_addresses;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->get_organization_names =
|
2016-09-02 12:01:33 +02:00
|
|
|
x509cert_principal_get_organization_names;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->get_organization_unit_names =
|
2016-09-02 12:01:33 +02:00
|
|
|
x509cert_principal_get_organization_unit_names;
|
|
|
|
GetStruct()->get_domain_components = x509cert_principal_get_domain_components;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefX509CertPrincipalCppToC::~CefX509CertPrincipalCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefX509CertPrincipal> CefCppToCRefCounted<
|
|
|
|
CefX509CertPrincipalCppToC,
|
|
|
|
CefX509CertPrincipal,
|
|
|
|
cef_x509cert_principal_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
cef_x509cert_principal_t* s) {
|
2015-04-26 20:40:01 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2015-02-11 19:15:04 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefX509CertPrincipalCppToC,
|
|
|
|
CefX509CertPrincipal,
|
|
|
|
cef_x509cert_principal_t>::kWrapperType =
|
2016-09-02 12:01:33 +02:00
|
|
|
WT_X509CERT_PRINCIPAL;
|