Add tests

This commit is contained in:
Nikola Petrov
2023-08-25 00:29:16 +02:00
parent 48b4402f0e
commit 57af63a71c
7 changed files with 283 additions and 193 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
struct Pass;
class Buffer;
class Cryptography;
#include <string>
Pass* arg_get(Buffer& decrypted_buffer, const char* label);
Pass* arg_generate(Buffer& decrypted_buffer, Buffer& encrypted_buffer, const char* label, Cryptography& crypto);
void arg_list(Buffer& decrypted_buffer);
void arg_delete(Buffer& decrypted_buffer, Buffer& encrypted_buffer, const char* label, Cryptography& crypto);
void arg_print_all_p(Buffer& decrypted_buffer, std::string& user_pass);
Pass* arg_input(Buffer& decrypted_buffer, Buffer& encrypted_buffer, const char* label, Cryptography& crypto);
void arg_change(Buffer& decrypted_buffer, Buffer& encrypted_buffer, std::string& user_pass, Cryptography& crypto);
void arg_show(Buffer& decrypted_buffer, const char* label);

View File

@@ -26,7 +26,7 @@ enum class Arg
Error // error
};
Pass* find_password(Buffer* buff, char* label);
Pass* find_password(Buffer* buff, const char* label);
void generate_password(char* password);