Lines 68-74
Link Here
|
68 |
if (strFirstLine == "HTTP/1.1 200 OK") |
68 |
if (strFirstLine == "HTTP/1.1 200 OK") |
69 |
{ |
69 |
{ |
70 |
m_pSSLPacket->ParseHeaders(); |
70 |
m_pSSLPacket->ParseHeaders(); |
71 |
char *fromPP = strstr(m_pSSLPacket->GetValue("Authentication-Info").c_str(), "from-PP="); |
71 |
const char *fromPP = strstr(m_pSSLPacket->GetValue("Authentication-Info").c_str(), "from-PP="); |
72 |
char *tag; |
72 |
char *tag; |
73 |
|
73 |
|
74 |
if (fromPP == 0) |
74 |
if (fromPP == 0) |
Lines 76-82
Link Here
|
76 |
else |
76 |
else |
77 |
{ |
77 |
{ |
78 |
fromPP+= 9; // skip to the tag |
78 |
fromPP+= 9; // skip to the tag |
79 |
char *endTag = strchr(fromPP, '\''); |
79 |
const char *endTag = strchr(fromPP, '\''); |
80 |
tag = strndup(fromPP, endTag - fromPP); // Thanks, this is all we need |
80 |
tag = strndup(fromPP, endTag - fromPP); // Thanks, this is all we need |
81 |
} |
81 |
} |
82 |
|
82 |
|
Lines 146-152
Link Here
|
146 |
|
146 |
|
147 |
m_pNexusBuff->ParseHeaders(); |
147 |
m_pNexusBuff->ParseHeaders(); |
148 |
|
148 |
|
149 |
char *szLogin = strstr(m_pNexusBuff->GetValue("PassportURLs").c_str(), "DALogin="); |
149 |
const char *szLogin = strstr(m_pNexusBuff->GetValue("PassportURLs").c_str(), "DALogin="); |
150 |
szLogin += 8; // skip to the tag |
150 |
szLogin += 8; // skip to the tag |
151 |
//char *szEndURL = strchr(szLogin, '/'); |
151 |
//char *szEndURL = strchr(szLogin, '/'); |
152 |
//char *szServer = strndup(szLogin, szEndURL - szLogin); // this is all we need |
152 |
//char *szServer = strndup(szLogin, szEndURL - szLogin); // this is all we need |