MainLogic.h 815 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // Created by miti on 2019-12-28.
  3. //
  4. #ifndef APACHE_PHP_EXTENSION_MAINLOGIC_H
  5. #define APACHE_PHP_EXTENSION_MAINLOGIC_H
  6. #include "LA.h"
  7. #include "PostLAMessaging.h"
  8. #include <string>
  9. #include <vector>
  10. #include <phpcpp.h>
  11. class MainLogic : public Php::Base {
  12. LA laInitiator;
  13. PostLAMessaging postLaMessaging;
  14. uint32_t header_refresh_counter;
  15. std::string last_header_value;
  16. int set_up_socket_connect(int port);
  17. int conduct_la();
  18. int get_initial_headers();
  19. int decode_base64_fields_list(std::vector <std::string> &base64_fields_list, std::vector <std::vector<unsigned char>> &binary_fields_list);
  20. public:
  21. void deployment_stage();
  22. Php::Value get_mitigator_header();
  23. Php::Value php_decrypt_wrapper(Php::Parameters &params );
  24. };
  25. #endif //APACHE_PHP_EXTENSION_MAINLOGIC_H