arg_generate and input

This commit is contained in:
Nikola Petrov
2023-08-28 00:35:49 +02:00
parent 9085e0ebb4
commit 8ebca780cd
2 changed files with 29 additions and 35 deletions

View File

@@ -19,13 +19,11 @@ enum class Arg
Error // error
};
void print_args();
Arg get_args(int argc, char** argv, char** label);
std::optional<LoginInfoPointer> arg_get(Buffer& decrypted_buffer, const char* label);
std::optional<LoginInfoPointer> arg_generate(Buffer& decrypted_buffer, Buffer& encrypted_buffer, const char* label, Cryptography& crypto);
LoginInfoPointer arg_generate(Buffer& decrypted_buffer, Buffer& encrypted_buffer, const char* label, Cryptography& crypto);
std::optional<LoginInfoPointer> arg_input(Buffer& decrypted_buffer, Buffer& encrypted_buffer, const char* label, Cryptography& crypto);