From 1aa39580f8dd4e402eb79d4eb22606aa647ba20c Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期一, 12 十二月 2016 11:51:09 +0800 Subject: [PATCH] add HCNetSDK support Fixed --- ProxyConsole/proxyconsole.cpp | 2 +- ProxyConsole/proxyconsole-hc.cpp | 2 +- ProxyConsole/make.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ProxyConsole/make.sh b/ProxyConsole/make.sh index 7b5c3ab..a67064e 100644 --- a/ProxyConsole/make.sh +++ b/ProxyConsole/make.sh @@ -2,4 +2,4 @@ #gcc -pthread -lmysqlclient proxyconsole.c -o proxyconsole -gcc proxyconsole-hc.c -L./HCNetSDK/lib -lhcnetsdk -lHCCore -lhpr -o proxyconsole-hc +g++ proxyconsole.cpp -pthread -L./HCNetSDK/lib -lhcnetsdk -lHCCore -lhpr -o proxyconsole-hc diff --git a/ProxyConsole/proxyconsole.c b/ProxyConsole/proxyconsole-hc.cpp similarity index 99% rename from ProxyConsole/proxyconsole.c rename to ProxyConsole/proxyconsole-hc.cpp index 9f06efd..90cc149 100644 --- a/ProxyConsole/proxyconsole.c +++ b/ProxyConsole/proxyconsole-hc.cpp @@ -744,7 +744,7 @@ return -1; } -void AurhorizationResponseBytesReal(char* byte_array_out,int * byte_array_length_out,char *Myuri, char *nonce,char *cnonce,char *response) +void AurhorizationResponseBytesReal(char* byte_array_out,int * byte_array_length_out,char *Myuri, char *nonce,const char *cnonce,char *response) { // Authorization: Digest username="supervisor", realm="VideoIQ", nonce="n99u1VYBAABAf0HT+h92EO4hT2CzmfxG", uri="/PSIA/VIQ/Event/metadata/0/files", response="7d8d929e39655ad9f3e6e94e9004792e", qop=auth, nc=00000001, cnonce="0d2175d8cdb63f84f18894200e129ace", algorithm="MD5" int idx=0,len; diff --git a/ProxyConsole/proxyconsole.c b/ProxyConsole/proxyconsole.cpp similarity index 99% copy from ProxyConsole/proxyconsole.c copy to ProxyConsole/proxyconsole.cpp index 9f06efd..90cc149 100644 --- a/ProxyConsole/proxyconsole.c +++ b/ProxyConsole/proxyconsole.cpp @@ -744,7 +744,7 @@ return -1; } -void AurhorizationResponseBytesReal(char* byte_array_out,int * byte_array_length_out,char *Myuri, char *nonce,char *cnonce,char *response) +void AurhorizationResponseBytesReal(char* byte_array_out,int * byte_array_length_out,char *Myuri, char *nonce,const char *cnonce,char *response) { // Authorization: Digest username="supervisor", realm="VideoIQ", nonce="n99u1VYBAABAf0HT+h92EO4hT2CzmfxG", uri="/PSIA/VIQ/Event/metadata/0/files", response="7d8d929e39655ad9f3e6e94e9004792e", qop=auth, nc=00000001, cnonce="0d2175d8cdb63f84f18894200e129ace", algorithm="MD5" int idx=0,len; -- Gitblit v1.8.0