123456789101112131415161718192021222324252627282930313233 |
- //
- // Created by miti on 2019-12-24.
- //
- #ifndef VERIFIER_DEPLOYMENTSTAGELOGIC_H
- #define VERIFIER_DEPLOYMENTSTAGELOGIC_H
- #include "stdio.h"
- // For socket programming
- #include <arpa/inet.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include "PostLAMessaging.h"
- #include "LAInitiator_Protobuf.h"
- class DeploymentStageLogic {
- LAInitiator_Protobuf laInitiator;
- PostLAMessaging postLaMessaging;
- uint8_t target_hash[32];
- public:
- // 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};
- // return_status=generate_rsa_keypair_hash(hash);
- // if(return_status!=0)
- // return return_status;
- void set_target_hash(uint8_t* given_hash);
- int set_up_socket_connect(int port);
- int main_logic();
- };
- #endif //VERIFIER_DEPLOYMENTSTAGELOGIC_H
|