31 lines
862 B
C
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_ */
|