godot/editor/export/codesign.cpp

/**************************************************************************/
/*  codesign.cpp                                                          */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "codesign.h"

#include "lipo.h"
#include "macho.h"

#include "core/io/plist.h"
#include "core/os/os.h"
#include "editor/editor_paths.h"
#include "editor/editor_settings.h"

#include "modules/modules_enabled.gen.h" // For regex.

#include <ctime>

#ifdef MODULE_REGEX_ENABLED

/*************************************************************************/
/* CodeSignCodeResources                                                 */
/*************************************************************************/

String CodeSignCodeResources::hash_sha1_base64(const String &p_path) {}

String CodeSignCodeResources::hash_sha256_base64(const String &p_path) {}

void CodeSignCodeResources::add_rule1(const String &p_rule, const String &p_key, int p_weight, bool p_store) {}

void CodeSignCodeResources::add_rule2(const String &p_rule, const String &p_key, int p_weight, bool p_store) {}

CodeSignCodeResources::CRMatch CodeSignCodeResources::match_rules1(const String &p_path) const {}

CodeSignCodeResources::CRMatch CodeSignCodeResources::match_rules2(const String &p_path) const {}

bool CodeSignCodeResources::add_file1(const String &p_root, const String &p_path) {}

bool CodeSignCodeResources::add_file2(const String &p_root, const String &p_path) {}

bool CodeSignCodeResources::add_nested_file(const String &p_root, const String &p_path, const String &p_exepath) {}

bool CodeSignCodeResources::add_folder_recursive(const String &p_root, const String &p_path, const String &p_main_exe_path) {}

bool CodeSignCodeResources::save_to_file(const String &p_path) {}

/*************************************************************************/
/* CodeSignRequirements                                                  */
/*************************************************************************/

CodeSignRequirements::CodeSignRequirements() {}

CodeSignRequirements::CodeSignRequirements(const PackedByteArray &p_data) {}

_FORCE_INLINE_ void CodeSignRequirements::_parse_certificate_slot(uint32_t &r_pos, String &r_out, uint32_t p_rq_size) const {}

_FORCE_INLINE_ void CodeSignRequirements::_parse_key(uint32_t &r_pos, String &r_out, uint32_t p_rq_size) const {}

_FORCE_INLINE_ void CodeSignRequirements::_parse_oid_key(uint32_t &r_pos, String &r_out, uint32_t p_rq_size) const {}

_FORCE_INLINE_ void CodeSignRequirements::_parse_hash_string(uint32_t &r_pos, String &r_out, uint32_t p_rq_size) const {}

_FORCE_INLINE_ void CodeSignRequirements::_parse_value(uint32_t &r_pos, String &r_out, uint32_t p_rq_size) const {}

_FORCE_INLINE_ void CodeSignRequirements::_parse_date(uint32_t &r_pos, String &r_out, uint32_t p_rq_size) const {}

_FORCE_INLINE_ bool CodeSignRequirements::_parse_match(uint32_t &r_pos, String &r_out, uint32_t p_rq_size) const {}

Vector<String> CodeSignRequirements::parse_requirements() const {}

PackedByteArray CodeSignRequirements::get_hash_sha1() const {}

PackedByteArray CodeSignRequirements::get_hash_sha256() const {}

int CodeSignRequirements::get_size() const {}

void CodeSignRequirements::write_to_file(Ref<FileAccess> p_file) const {}

/*************************************************************************/
/* CodeSignEntitlementsText                                             */
/*************************************************************************/

CodeSignEntitlementsText::CodeSignEntitlementsText() {}

CodeSignEntitlementsText::CodeSignEntitlementsText(const String &p_string) {}

PackedByteArray CodeSignEntitlementsText::get_hash_sha1() const {}

PackedByteArray CodeSignEntitlementsText::get_hash_sha256() const {}

int CodeSignEntitlementsText::get_size() const {}

void CodeSignEntitlementsText::write_to_file(Ref<FileAccess> p_file) const {}

/*************************************************************************/
/* CodeSignEntitlementsBinary                                           */
/*************************************************************************/

CodeSignEntitlementsBinary::CodeSignEntitlementsBinary() {}

CodeSignEntitlementsBinary::CodeSignEntitlementsBinary(const String &p_string) {}

PackedByteArray CodeSignEntitlementsBinary::get_hash_sha1() const {}

PackedByteArray CodeSignEntitlementsBinary::get_hash_sha256() const {}

int CodeSignEntitlementsBinary::get_size() const {}

void CodeSignEntitlementsBinary::write_to_file(Ref<FileAccess> p_file) const {}

/*************************************************************************/
/* CodeSignCodeDirectory                                                 */
/*************************************************************************/

CodeSignCodeDirectory::CodeSignCodeDirectory() {}

CodeSignCodeDirectory::CodeSignCodeDirectory(uint8_t p_hash_size, uint8_t p_hash_type, bool p_main, const CharString &p_id, const CharString &p_team_id, uint32_t p_page_size, uint64_t p_exe_limit, uint64_t p_code_limit) {}

bool CodeSignCodeDirectory::set_hash_in_slot(const PackedByteArray &p_hash, int p_slot) {}

int32_t CodeSignCodeDirectory::get_page_count() {}

int32_t CodeSignCodeDirectory::get_page_remainder() {}

PackedByteArray CodeSignCodeDirectory::get_hash_sha1() const {}

PackedByteArray CodeSignCodeDirectory::get_hash_sha256() const {}

int CodeSignCodeDirectory::get_size() const {}

void CodeSignCodeDirectory::write_to_file(Ref<FileAccess> p_file) const {}

/*************************************************************************/
/* CodeSignSignature                                                     */
/*************************************************************************/

CodeSignSignature::CodeSignSignature() {}

PackedByteArray CodeSignSignature::get_hash_sha1() const {}

PackedByteArray CodeSignSignature::get_hash_sha256() const {}

int CodeSignSignature::get_size() const {}

void CodeSignSignature::write_to_file(Ref<FileAccess> p_file) const {}

/*************************************************************************/
/* CodeSignSuperBlob                                                     */
/*************************************************************************/

bool CodeSignSuperBlob::add_blob(const Ref<CodeSignBlob> &p_blob) {}

int CodeSignSuperBlob::get_size() const {}

void CodeSignSuperBlob::write_to_file(Ref<FileAccess> p_file) const {}

/*************************************************************************/
/* CodeSign                                                              */
/*************************************************************************/

PackedByteArray CodeSign::file_hash_sha1(const String &p_path) {}

PackedByteArray CodeSign::file_hash_sha256(const String &p_path) {}

Error CodeSign::_codesign_file(bool p_use_hardened_runtime, bool p_force, const String &p_info, const String &p_exe_path, const String &p_bundle_path, const String &p_ent_path, bool p_ios_bundle, String &r_error_msg) {}

Error CodeSign::codesign(bool p_use_hardened_runtime, bool p_force, const String &p_path, const String &p_ent_path, String &r_error_msg) {}

#endif // MODULE_REGEX_ENABLED