-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
202ad79
commit 3ffc85e
Showing
10 changed files
with
163 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// Created by user on 18.10.18. | ||
// | ||
|
||
#include "sec_mod_linux.hpp" | ||
|
||
using namespace keychain_app; | ||
|
||
#include <pass_entry_term.hpp> | ||
|
||
sec_mod_linux::sec_mod_linux() | ||
{} | ||
|
||
sec_mod_linux::~sec_mod_linux() | ||
{} | ||
|
||
std::string sec_mod_linux::get_uid() const | ||
{ | ||
return std::string("uid"); | ||
} | ||
|
||
void sec_mod_linux::print_mnemonic(const string_list& mnemonic) const | ||
{ | ||
} | ||
|
||
byte_seq_t sec_mod_linux::get_passwd_trx_raw(const std::string& raw_trx) const | ||
{ | ||
auto pass_entry = pass_entry_term(); | ||
auto map_instance = map_translate_singletone::instance(pass_entry._display); | ||
auto pass = pass_entry.fork_gui(map_instance.map, raw_trx); | ||
return pass; | ||
} | ||
|
||
byte_seq_t sec_mod_linux::get_passwd_on_create() const | ||
{ | ||
auto pass_entry = pass_entry_term(); | ||
auto map_instance = map_translate_singletone::instance(pass_entry._display); | ||
auto pass = pass_entry.fork_gui(map_instance.map, ""); | ||
return pass; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
#ifndef KEYCHAINAPP_SEC_MOD_LINUX_HPP | ||
#define KEYCHAINAPP_SEC_MOD_LINUX_HPP | ||
|
||
#include <keychain_lib/keychain_wrapper.hpp> | ||
|
||
namespace keychain_app | ||
{ | ||
|
||
class sec_mod_linux: public secure_dlg_mod_base | ||
{ | ||
public: | ||
sec_mod_linux(); | ||
virtual ~sec_mod_linux(); | ||
virtual keychain_app::byte_seq_t get_passwd_trx_raw(const std::string& raw_trx) const override; | ||
virtual keychain_app::byte_seq_t get_passwd_on_create() const override; | ||
virtual void print_mnemonic(const string_list& mnemonic) const override; | ||
virtual std::string get_uid() const override; | ||
private: | ||
static constexpr const char* pass_str = "blank_password"; | ||
}; | ||
|
||
} | ||
|
||
#endif //KEYCHAINAPP_SEC_MOD_LINUX_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters