summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proto_lib/api_protocol.h6
-rw-r--r--proto_lib/protocol.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/proto_lib/api_protocol.h b/proto_lib/api_protocol.h
index 8206854..39681e4 100644
--- a/proto_lib/api_protocol.h
+++ b/proto_lib/api_protocol.h
@@ -51,9 +51,9 @@ bool serv_validate_client_proto(packet&);
//client functions
-packet cli_make_auth_packet(); //should be first packet to server
-packet cli_make_command_packet(std::string &service, std::string &command);
-packet cli_request_services();
+packet *cli_make_auth_packet(); //should be first packet to server
+packet *cli_make_command_packet(std::string &service, std::string &command);
+packet *cli_request_services();
std::list<service_s> cli_extract_services(packet&);
bool cli_check_auth_reply(packet&); //false on fail
std::string cli_parse_command_reply(packet&);
diff --git a/proto_lib/protocol.cpp b/proto_lib/protocol.cpp
index e709415..991f4e4 100644
--- a/proto_lib/protocol.cpp
+++ b/proto_lib/protocol.cpp
@@ -41,7 +41,7 @@ bool serv_validate_client_proto(packet &p)
return true;
}
-packet cli_make_auth_packet()
+packet *cli_make_auth_packet()
{
std::vector<unsigned char> v;
int size = sizeof(proto_header);
@@ -59,6 +59,6 @@ packet cli_make_auth_packet()
v.push_back(proto_footer[i]);
packet *p = new packet;
p->assign(v);
- return *p;
+ return p;
}