Browse Source

Temporary commit for starting refactoring

dettanym 4 years ago
parent
commit
a359f4b3ca

+ 16 - 0
MainLogic.cpp

@@ -0,0 +1,16 @@
+//
+// Created by miti on 2019-12-28.
+//
+
+#include "MainLogic.h"
+int MainLogic::deployment_stage() {
+    return 0;
+}
+
+int MainLogic::decrypt_values(std::vector <string> &base64_fields, std::vector <string> &plaintext_fields) {
+    return 0;
+}
+
+int MainLogic::get_mitigator_header(std::string header_value, int *value_length) {
+    return 0;
+}

+ 1 - 0
include/LA.h

@@ -0,0 +1 @@
+../../commonVerifierPHPfiles/header_files/LA.h

+ 21 - 0
include/MainLogic.h

@@ -0,0 +1,21 @@
+//
+// Created by miti on 2019-12-28.
+//
+
+#ifndef APACHE_PHP_EXTENSION_MAINLOGIC_H
+#define APACHE_PHP_EXTENSION_MAINLOGIC_H
+#include <LA.h>
+#include <PostLAMessaging.h>
+#include <string>
+#include <vector>
+class MainLogic {
+    LA laInitiator;
+    PostLAMessaging postLaMessaging;
+public:
+    int deployment_stage();
+    int get_mitigator_header(std::string header_value, int* value_length);
+    int decrypt_values(std::vector<std::string>& base64_fields, std::vector<std::string>& plaintext_fields);
+};
+
+
+#endif //APACHE_PHP_EXTENSION_MAINLOGIC_H

+ 1 - 0
include/PostLAMessages.pb.h

@@ -0,0 +1 @@
+../../dhmsgs_proto_defs/PostLAMessages.pb.h

+ 8 - 0
include/PostLAMessaging.h

@@ -0,0 +1,8 @@
+//
+// Created by miti on 2019-12-28.
+//
+
+#ifndef APACHE_PHP_EXTENSION_POSTLAMESSAGING_H
+#define APACHE_PHP_EXTENSION_POSTLAMESSAGING_H
+
+#endif //APACHE_PHP_EXTENSION_POSTLAMESSAGING_H

+ 1 - 0
include/ProtobufMessageRW.h

@@ -0,0 +1 @@
+../../commonVerifierPHPfiles/header_files/ProtobufMessageRW.h

+ 1 - 0
include/Transforms.h

@@ -0,0 +1 @@
+../../commonVerifierPHPfiles/header_files/Transforms.h