diff --git a/Password_manager/include/cryptography.h b/Password_manager/include/cryptography.h index 07bdfdb..ec425f6 100644 --- a/Password_manager/include/cryptography.h +++ b/Password_manager/include/cryptography.h @@ -1,10 +1,10 @@ #pragma once #include <cstdint> -#include "buffer.h" struct evp_cipher_ctx_st; typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX; +class Buffer; class Cryptography { diff --git a/Password_manager/include/func.h b/Password_manager/include/func.h index 2f59dbb..478b2d5 100644 --- a/Password_manager/include/func.h +++ b/Password_manager/include/func.h @@ -1,9 +1,10 @@ #pragma once #include <fstream> -#include "buffer.h" constexpr auto MAX_STRING_SIZE = 21; +class Buffer; + struct Pass { char label[MAX_STRING_SIZE]; diff --git a/Password_manager/source/cryptography.cpp b/Password_manager/source/cryptography.cpp index d6e378a..dee738f 100644 --- a/Password_manager/source/cryptography.cpp +++ b/Password_manager/source/cryptography.cpp @@ -6,6 +6,7 @@ #include <fstream> #include "cryptography.h" +#include "Buffer.h" Cryptography::Cryptography(const char* password, size_t size) diff --git a/Password_manager/source/func.cpp b/Password_manager/source/func.cpp index cab91ec..563aa85 100644 --- a/Password_manager/source/func.cpp +++ b/Password_manager/source/func.cpp @@ -1,5 +1,6 @@ #include "func.h" #include "glob.h" +#include "Buffer.h" Pass* find_password(Buffer* buff, char* label) {