DeploymentStageLogic.h 893 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // Created by miti on 2019-12-24.
  3. //
  4. #ifndef VERIFIER_DEPLOYMENTSTAGELOGIC_H
  5. #define VERIFIER_DEPLOYMENTSTAGELOGIC_H
  6. #include "stdio.h"
  7. // For socket programming
  8. #include <arpa/inet.h>
  9. #include <sys/socket.h>
  10. #include <netinet/in.h>
  11. #include "PostLAMessaging.h"
  12. #include "LAInitiator_Protobuf.h"
  13. class DeploymentStageLogic {
  14. LAInitiator_Protobuf laInitiator;
  15. PostLAMessaging postLaMessaging;
  16. uint8_t target_hash[32];
  17. public:
  18. // hash = {0x54,0x24,0x5d,0x63,0x5c,0x8f,0xec,0xcf,0x37,0xb9,0xcf,0x9e,0xb8,0xd3,0x22,0x04,0x57,0x5b,0xb2,0xfc,0xa6,0xd3,0x11,0xfb,0x87,0xb7,0x01,0x06,0x2f,0x18,0x25,0xc1};
  19. // return_status=generate_rsa_keypair_hash(hash);
  20. // if(return_status!=0)
  21. // return return_status;
  22. void set_target_hash(uint8_t* given_hash);
  23. int set_up_socket_connect(int port);
  24. int main_logic();
  25. };
  26. #endif //VERIFIER_DEPLOYMENTSTAGELOGIC_H