GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
Namespaces | |
RawAPI | |
Thread | |
UI | |
Typedefs | |
typedef std::list< GpgImportedKey > | GpgImportedKeyList |
using | ByteArray = std::string |
using | ByteArrayPtr = std::unique_ptr< ByteArray > |
using | StdBypeArrayPtr = std::unique_ptr< ByteArray > |
using | BypeArrayRef = ByteArray & |
using | BypeArrayConstRef = const ByteArray & |
using | StringArgsPtr = std::unique_ptr< std::vector< std::string > > |
using | StringArgsRef = std::vector< std::string > & |
using | GpgError = gpgme_error_t |
using | GpgEncrResult = std::shared_ptr< struct _gpgme_op_encrypt_result > |
using | GpgDecrResult = std::shared_ptr< struct _gpgme_op_decrypt_result > |
using | GpgSignResult = std::shared_ptr< struct _gpgme_op_sign_result > |
using | GpgVerifyResult = std::shared_ptr< struct _gpgme_op_verify_result > |
using | GpgGenKeyResult = std::shared_ptr< struct _gpgme_op_genkey_result > |
using | KeyId = std::string |
using | SubkeyId = std::string |
using | KeyIdArgsList = std::vector< KeyId > |
using | KeyIdArgsListPtr = std::unique_ptr< KeyIdArgsList > |
using | UIDArgsList = std::vector< std::string > |
using | UIDArgsListPtr = std::unique_ptr< UIDArgsList > |
using | SignIdArgsList = std::vector< std::pair< std::string, std::string > > |
using | SignIdArgsListPtr = std::unique_ptr< SignIdArgsList > |
using | KeyFprArgsListPtr = std::unique_ptr< std::vector< std::string > > |
using | KeyArgsList = std::vector< GpgKey > |
using | KeyListPtr = std::unique_ptr< KeyArgsList > |
using | GpgKeyLinkList = std::list< GpgFrontend::GpgKey > |
using | KeyLinkListPtr = std::unique_ptr< GpgKeyLinkList > |
using | KeyPtr = std::unique_ptr< GpgKey > |
using | KeyPtrArgsList = const std::initializer_list< KeyPtr > |
Functions | |
GPGFRONTEND_CORE_EXPORT GpgEncrResult | _new_result (gpgme_encrypt_result_t &&result) |
GPGFRONTEND_CORE_EXPORT GpgDecrResult | _new_result (gpgme_decrypt_result_t &&result) |
GPGFRONTEND_CORE_EXPORT GpgSignResult | _new_result (gpgme_sign_result_t &&result) |
GPGFRONTEND_CORE_EXPORT GpgVerifyResult | _new_result (gpgme_verify_result_t &&result) |
GPGFRONTEND_CORE_EXPORT GpgGenKeyResult | _new_result (gpgme_genkey_result_t &&result) |
GPGFRONTEND_CORE_EXPORT GpgError | check_gpg_error (GpgError err) |
GPGFRONTEND_CORE_EXPORT GpgError | check_gpg_error (GpgError gpgmeError, const std::string &comment) |
GPGFRONTEND_CORE_EXPORT gpg_err_code_t | check_gpg_error_2_err_code (gpgme_error_t err, gpgme_error_t predict=GPG_ERR_NO_ERROR) |
GPGFRONTEND_CORE_EXPORT std::string | beautify_fingerprint (BypeArrayConstRef fingerprint) |
std::string | read_all_data_in_file (const std::string &path) |
GPGFRONTEND_CORE_EXPORT bool | write_buffer_to_file (const std::string &path, const std::string &out_buffer) |
std::string | get_file_extension (const std::string &path) |
Get the file extension object. More... | |
std::string | get_only_file_name_with_path (const std::string &path) |
Get the only file name with path object. More... | |
int | text_is_signed (BypeArrayRef text) |
void | InitLoggingSystem () |
setup logging system and do proper initialization | |
void | ResetGpgFrontendCore () |
void | init_gpgfrontend_core () |
void | reset_gpgfrontend_core () |
void | new_default_settings_channel (int channel) |
Variables | |
const int | GPGFRONTEND_DEFAULT_CHANNEL = 0 |
const int | GPGFRONTEND_NON_ASCII_CHANNEL = 2 |
Copyright (C) 2021 Saturneric
This file is part of GpgFrontend.
GpgFrontend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
GpgFrontend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GpgFrontend. If not, see https://www.gnu.org/licenses/.
The initial version of the source code is inherited from the gpg4usb project, which is under GPL-3.0-or-later.
The source code version of this software was modified and released by Saturnericeric@ bktu s.comeric@ starting on May 12, 2021. bktu s.com
Copyright (C) 2021 Saturneric
This file is part of GpgFrontend.
GpgFrontend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
GpgFrontend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GpgFrontend. If not, see https://www.gnu.org/licenses/.
The initial version of the source code is inherited from the gpg4usb project, which is under GPL-3.0-or-later.
All the source code of GpgFrontend was modified and released by Saturnericeric@ starting on May 12, 2021. bktu s.com
SPDX-License-Identifier: GPL-3.0-or-later
GpgFrontend::GpgDecrResult GpgFrontend::_new_result | ( | gpgme_decrypt_result_t && | result | ) |
result |
GpgFrontend::GpgEncrResult GpgFrontend::_new_result | ( | gpgme_encrypt_result_t && | result | ) |
result |
Referenced by GpgFrontend::GpgBasicOperator::Decrypt(), GpgFrontend::GpgBasicOperator::DecryptVerify(), GpgFrontend::GpgBasicOperator::Encrypt(), GpgFrontend::GpgBasicOperator::EncryptSign(), GpgFrontend::GpgBasicOperator::EncryptSymmetric(), GpgFrontend::GpgKeyOpera::GenerateKey(), GpgFrontend::GpgBasicOperator::Sign(), and GpgFrontend::GpgBasicOperator::Verify().
GpgFrontend::GpgGenKeyResult GpgFrontend::_new_result | ( | gpgme_genkey_result_t && | result | ) |
result |
GpgFrontend::GpgSignResult GpgFrontend::_new_result | ( | gpgme_sign_result_t && | result | ) |
result |
GpgFrontend::GpgVerifyResult GpgFrontend::_new_result | ( | gpgme_verify_result_t && | result | ) |
result |
std::string GpgFrontend::beautify_fingerprint | ( | GpgFrontend::BypeArrayConstRef | fingerprint | ) |
fingerprint |
Referenced by GpgFrontend::UI::VerifyKeyDetailBox::create_key_info_grid().
gpgme_error_t GpgFrontend::check_gpg_error | ( | GpgError | err | ) |
err |
Referenced by GpgFrontend::GpgBasicOperator::Decrypt(), GpgFrontend::GpgBasicOperator::DecryptVerify(), GpgFrontend::GpgKeyOpera::DeleteKeys(), GpgFrontend::GpgBasicOperator::Encrypt(), GpgFrontend::GpgBasicOperator::EncryptSign(), GpgFrontend::GpgBasicOperator::EncryptSymmetric(), GpgFrontend::GpgKeyOpera::GenerateKey(), GpgFrontend::GpgKeyOpera::GenerateSubkey(), GpgFrontend::GpgContext::GpgContext(), GpgFrontend::GpgKeyImportExporter::ImportKey(), GpgFrontend::GpgKeyOpera::ModifyPassword(), GpgFrontend::GpgKeyOpera::ModifyTOFUPolicy(), GpgFrontend::GpgContext::post_init_ctx(), GpgFrontend::GpgKeyManager::RevSign(), GpgFrontend::GpgUIDOperator::RevUID(), GpgFrontend::GpgKeyManager::SetExpire(), GpgFrontend::GpgUIDOperator::SetPrimaryUID(), GpgFrontend::GpgBasicOperator::SetSigners(), GpgFrontend::GpgBasicOperator::Sign(), GpgFrontend::GpgKeyManager::SignKey(), and GpgFrontend::GpgBasicOperator::Verify().
gpgme_error_t GpgFrontend::check_gpg_error | ( | GpgError | gpgmeError, |
const std::string & | comment | ||
) |
gpgmeError | |
comment |
gpg_err_code_t GpgFrontend::check_gpg_error_2_err_code | ( | gpgme_error_t | err, |
gpgme_error_t | predict = GPG_ERR_NO_ERROR |
||
) |
err | |
predict |
Referenced by GpgFrontend::GpgUIDOperator::AddUID(), GpgFrontend::GpgFileOpera::DecryptFile(), GpgFrontend::GpgFileOpera::DecryptVerifyFile(), GpgFrontend::GpgFileOpera::EncryptFile(), GpgFrontend::GpgFileOpera::EncryptFileSymmetric(), GpgFrontend::GpgFileOpera::EncryptSignFile(), GpgFrontend::GpgKeyImportExporter::ExportKey(), GpgFrontend::GpgKeyImportExporter::ExportKeyOpenSSH(), GpgFrontend::GpgKeyImportExporter::ExportSecretKey(), GpgFrontend::GpgKeyImportExporter::ExportSecretKeyShortest(), GpgFrontend::GpgKeyGetter::FlushKeyCache(), GpgFrontend::GpgKeyOpera::GenerateKey(), GpgFrontend::GpgContext::GpgContext(), GpgFrontend::GpgContext::post_init_ctx(), GpgFrontend::GpgKeyManager::RevSign(), GpgFrontend::GpgUIDOperator::RevUID(), GpgFrontend::GpgKeyManager::SetExpire(), GpgFrontend::GpgUIDOperator::SetPrimaryUID(), GpgFrontend::GpgFileOpera::SignFile(), GpgFrontend::GpgKeyManager::SignKey(), GpgFrontend::UI::MainWindow::slot_decrypt(), GpgFrontend::UI::MainWindow::slot_decrypt_verify(), GpgFrontend::UI::MainWindow::slot_encrypt(), GpgFrontend::UI::MainWindow::slot_encrypt_sign(), GpgFrontend::UI::SubkeyGenerateDialog::slot_key_gen_accept(), GpgFrontend::UI::MainWindow::slot_sign(), and GpgFrontend::UI::MainWindow::slot_verify().
std::string GpgFrontend::get_file_extension | ( | const std::string & | path | ) |
Get the file extension object.
path |
std::string GpgFrontend::get_only_file_name_with_path | ( | const std::string & | path | ) |
Get the only file name with path object.
path |
void GpgFrontend::new_default_settings_channel | ( | int | channel = GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL | ) |
channel |
References GpgFrontend::SingletonFunctionObject< GpgContext >::CreateInstance().
std::string GpgFrontend::read_all_data_in_file | ( | const std::string & | path | ) |
path |
int GpgFrontend::text_is_signed | ( | GpgFrontend::BypeArrayRef | text | ) |
text |
bool GpgFrontend::write_buffer_to_file | ( | const std::string & | path, |
const std::string & | out_buffer | ||
) |
path | |
out_buffer |
Referenced by GpgFrontend::UI::KeyPairOperaTab::slot_export_private_key().