2021-01-27 19:36:54 +01:00
|
|
|
// Copyright (c) 2021 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.
|
|
|
|
//
|
2021-01-27 19:36:54 +01:00
|
|
|
// $hash=f23f6d879d43ceea6d21e76c20942c242464deb8$
|
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/ctocpp/x509cert_principal_ctocpp.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"
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-09-02 12:01:33 +02:00
|
|
|
CefString CefX509CertPrincipalCToCpp::GetDisplayName() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
cef_x509cert_principal_t* _struct = GetStruct();
|
2015-04-26 20:40:01 +02:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_display_name))
|
2015-02-11 19:15:04 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_display_name(_struct);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CefString CefX509CertPrincipalCToCpp::GetCommonName() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
cef_x509cert_principal_t* _struct = GetStruct();
|
2015-04-26 20:40:01 +02:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_common_name))
|
2015-02-11 19:15:04 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_common_name(_struct);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-09-02 12:01:33 +02:00
|
|
|
CefString CefX509CertPrincipalCToCpp::GetLocalityName() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
cef_x509cert_principal_t* _struct = GetStruct();
|
2015-04-26 20:40:01 +02:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_locality_name))
|
2015-02-11 19:15:04 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_locality_name(_struct);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-09-02 12:01:33 +02:00
|
|
|
CefString CefX509CertPrincipalCToCpp::GetStateOrProvinceName() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
cef_x509cert_principal_t* _struct = GetStruct();
|
2015-04-26 20:40:01 +02:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_state_or_province_name))
|
2015-02-11 19:15:04 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_state_or_province_name(_struct);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-09-02 12:01:33 +02:00
|
|
|
CefString CefX509CertPrincipalCToCpp::GetCountryName() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
cef_x509cert_principal_t* _struct = GetStruct();
|
2015-04-26 20:40:01 +02:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_country_name))
|
2015-02-11 19:15:04 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_country_name(_struct);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-09-02 12:01:33 +02:00
|
|
|
void CefX509CertPrincipalCToCpp::GetStreetAddresses(
|
2015-02-11 19:15:04 +01:00
|
|
|
std::vector<CefString>& addresses) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
cef_x509cert_principal_t* _struct = GetStruct();
|
2015-04-26 20:40:01 +02:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_street_addresses))
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: addresses; type: string_vec_byref
|
|
|
|
cef_string_list_t addressesList = cef_string_list_alloc();
|
|
|
|
DCHECK(addressesList);
|
|
|
|
if (addressesList)
|
|
|
|
transfer_string_list_contents(addresses, addressesList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->get_street_addresses(_struct, addressesList);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Restore param:addresses; type: string_vec_byref
|
|
|
|
if (addressesList) {
|
|
|
|
addresses.clear();
|
|
|
|
transfer_string_list_contents(addressesList, addresses);
|
|
|
|
cef_string_list_free(addressesList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-09-02 12:01:33 +02:00
|
|
|
void CefX509CertPrincipalCToCpp::GetOrganizationNames(
|
2015-02-11 19:15:04 +01:00
|
|
|
std::vector<CefString>& names) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
cef_x509cert_principal_t* _struct = GetStruct();
|
2015-04-26 20:40:01 +02:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_organization_names))
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: names; type: string_vec_byref
|
|
|
|
cef_string_list_t namesList = cef_string_list_alloc();
|
|
|
|
DCHECK(namesList);
|
|
|
|
if (namesList)
|
|
|
|
transfer_string_list_contents(names, namesList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->get_organization_names(_struct, namesList);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Restore param:names; type: string_vec_byref
|
|
|
|
if (namesList) {
|
|
|
|
names.clear();
|
|
|
|
transfer_string_list_contents(namesList, names);
|
|
|
|
cef_string_list_free(namesList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-09-02 12:01:33 +02:00
|
|
|
void CefX509CertPrincipalCToCpp::GetOrganizationUnitNames(
|
2015-02-11 19:15:04 +01:00
|
|
|
std::vector<CefString>& names) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
cef_x509cert_principal_t* _struct = GetStruct();
|
2015-04-26 20:40:01 +02:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_organization_unit_names))
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: names; type: string_vec_byref
|
|
|
|
cef_string_list_t namesList = cef_string_list_alloc();
|
|
|
|
DCHECK(namesList);
|
|
|
|
if (namesList)
|
|
|
|
transfer_string_list_contents(names, namesList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->get_organization_unit_names(_struct, namesList);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Restore param:names; type: string_vec_byref
|
|
|
|
if (namesList) {
|
|
|
|
names.clear();
|
|
|
|
transfer_string_list_contents(namesList, names);
|
|
|
|
cef_string_list_free(namesList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2016-09-02 12:01:33 +02:00
|
|
|
void CefX509CertPrincipalCToCpp::GetDomainComponents(
|
2015-02-11 19:15:04 +01:00
|
|
|
std::vector<CefString>& components) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
cef_x509cert_principal_t* _struct = GetStruct();
|
2015-04-26 20:40:01 +02:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_domain_components))
|
2015-02-11 19:15:04 +01:00
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: components; type: string_vec_byref
|
|
|
|
cef_string_list_t componentsList = cef_string_list_alloc();
|
|
|
|
DCHECK(componentsList);
|
|
|
|
if (componentsList)
|
|
|
|
transfer_string_list_contents(components, componentsList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->get_domain_components(_struct, componentsList);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
// Restore param:components; type: string_vec_byref
|
|
|
|
if (componentsList) {
|
|
|
|
components.clear();
|
|
|
|
transfer_string_list_contents(componentsList, components);
|
|
|
|
cef_string_list_free(componentsList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CefX509CertPrincipalCToCpp::CefX509CertPrincipalCToCpp() {}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefX509CertPrincipalCToCpp::~CefX509CertPrincipalCToCpp() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
cef_x509cert_principal_t* CefCToCppRefCounted<
|
|
|
|
CefX509CertPrincipalCToCpp,
|
|
|
|
CefX509CertPrincipal,
|
|
|
|
cef_x509cert_principal_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
CefX509CertPrincipal* c) {
|
2015-04-26 20:40:01 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCToCppRefCounted<CefX509CertPrincipalCToCpp,
|
|
|
|
CefX509CertPrincipal,
|
|
|
|
cef_x509cert_principal_t>::kWrapperType =
|
2016-09-02 12:01:33 +02:00
|
|
|
WT_X509CERT_PRINCIPAL;
|