deployd/client/include/proto.h
Arija A. 8fbb8e8c18
Implement command client
Signed-off-by: Arija A. <ari@ari.lt>
2025-07-24 19:48:39 +03:00

31 lines
862 B
C

#ifndef DEPLOYD_CLIENT_PROTO_H_
#define DEPLOYD_CLIENT_PROTO_H_
#include "conf.h"
#include "def.h"
#include "server/include/log.h"
#include "server/include/auth.h"
#include "server/include/proto.h"
#include <openssl/ssl.h>
#define DC_PROTO_LOG "client/proto"
bool dc_proto_read_server_info(SSL *ssl, dp_Logger *logger);
bool dc_proto_pow_solve(SSL *ssl, dp_Logger *logger);
bool dc_proto_command(SSL *ssl,
dp_Logger *logger,
dp_DeployCommand command,
bool is_unsafe,
uint64_t tid,
uint8_t domain_len,
const char *domain,
const uint8_t key[DP_AUTH_KEY_SIZE],
const uint8_t token[DP_AUTH_TOKEN_SIZE],
bool stream_logs);
#endif /* DEPLOYD_CLIENT_PROTO_H_ */