Page MenuHomePhorge

D3245.1769046595.diff
No OneTemporary

Size
4 KB
Referenced Files
None
Subscribers
None

D3245.1769046595.diff

diff --git a/services/backup/docker-server/contents/server/CMakeLists.txt b/services/backup/docker-server/contents/server/CMakeLists.txt
--- a/services/backup/docker-server/contents/server/CMakeLists.txt
+++ b/services/backup/docker-server/contents/server/CMakeLists.txt
@@ -51,6 +51,7 @@
include_directories(
./src
./src/DatabaseEntities
+ ./src/Authentication
./_generated
${FOLLY_INCLUDES}
./lib/double-conversion
diff --git a/services/backup/docker-server/contents/server/src/Authentication/AuthenticationHandler.h b/services/backup/docker-server/contents/server/src/Authentication/AuthenticationHandler.h
new file mode 100644
--- /dev/null
+++ b/services/backup/docker-server/contents/server/src/Authentication/AuthenticationHandler.h
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <string>
+
+namespace comm {
+namespace network {
+namespace crypto {
+
+// enum class AuthenticationState {
+// NOT_STARTED = 1,
+// IN_PROGRESS = 2,
+// FINISHED_SUCCESS = 3,
+// FINISHED_FAIL = 4,
+// };
+
+class AuthenticationHandler {
+ // AuthenticationState state = AuthenticationState::NOT_STARTED;
+public:
+ virtual std::string processRequest(const std::string &data) = 0;
+};
+
+} // namespace crypto
+} // namespace network
+} // namespace comm
diff --git a/services/backup/docker-server/contents/server/src/Authentication/PakeAuthenticationHandler.h b/services/backup/docker-server/contents/server/src/Authentication/PakeAuthenticationHandler.h
new file mode 100644
--- /dev/null
+++ b/services/backup/docker-server/contents/server/src/Authentication/PakeAuthenticationHandler.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include "AuthenticationHandler.h"
+
+#include <string>
+
+namespace comm {
+namespace network {
+namespace crypto {
+
+// enum class AuthenticationState {
+// NOT_STARTED = 1,
+// IN_PROGRESS = 2,
+// FINISHED_SUCCESS = 3,
+// FINISHED_FAIL = 4,
+// };
+
+class PakeAuthenticationHandler : public AuthenticationHandler {
+ // AuthenticationState state = AuthenticationState::NOT_STARTED;
+public:
+ std::string processRequest(const std::string &data) override;
+};
+
+} // namespace crypto
+} // namespace network
+} // namespace comm
diff --git a/services/backup/docker-server/contents/server/src/Authentication/PakeAuthenticationHandler.cpp b/services/backup/docker-server/contents/server/src/Authentication/PakeAuthenticationHandler.cpp
new file mode 100644
--- /dev/null
+++ b/services/backup/docker-server/contents/server/src/Authentication/PakeAuthenticationHandler.cpp
@@ -0,0 +1,13 @@
+#include "PakeAuthenticationHandler.h"
+
+namespace comm {
+namespace network {
+namespace crypto {
+
+std::string PakeAuthenticationHandler::processRequest(const std::string &data) {
+ return "";
+}
+
+} // namespace crypto
+} // namespace network
+} // namespace comm
diff --git a/services/backup/docker-server/contents/server/src/Authentication/WalletAuthenticationHandler.h b/services/backup/docker-server/contents/server/src/Authentication/WalletAuthenticationHandler.h
new file mode 100644
--- /dev/null
+++ b/services/backup/docker-server/contents/server/src/Authentication/WalletAuthenticationHandler.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include "AuthenticationHandler.h"
+
+#include <string>
+
+namespace comm {
+namespace network {
+namespace crypto {
+
+// enum class AuthenticationState {
+// NOT_STARTED = 1,
+// IN_PROGRESS = 2,
+// FINISHED_SUCCESS = 3,
+// FINISHED_FAIL = 4,
+// };
+
+class WalletAuthenticationHandler : public AuthenticationHandler {
+ // AuthenticationState state = AuthenticationState::NOT_STARTED;
+public:
+ std::string processRequest(const std::string &data) override;
+};
+
+} // namespace crypto
+} // namespace network
+} // namespace comm
diff --git a/services/backup/docker-server/contents/server/src/Authentication/WalletAuthenticationHandler.cpp b/services/backup/docker-server/contents/server/src/Authentication/WalletAuthenticationHandler.cpp
new file mode 100644
--- /dev/null
+++ b/services/backup/docker-server/contents/server/src/Authentication/WalletAuthenticationHandler.cpp
@@ -0,0 +1,14 @@
+#include "WalletAuthenticationHandler.h"
+
+namespace comm {
+namespace network {
+namespace crypto {
+
+std::string
+WalletAuthenticationHandler::processRequest(const std::string &data) {
+ return "";
+}
+
+} // namespace crypto
+} // namespace network
+} // namespace comm

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 22, 1:49 AM (14 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5973188
Default Alt Text
D3245.1769046595.diff (4 KB)

Event Timeline