summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_captcha.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-20 13:55:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-20 13:55:58 +0000
commit04f4e2acfbc82946ca3def654214c08071a87359 (patch)
tree871e1f476ed5086e8ebbd7e182ea2a89707cc249 /protocols/JabberG/src/jabber_captcha.cpp
parent24cbc87262dc8856741db8e9f8388c18b16583ad (diff)
xml api became a set of functions
git-svn-id: http://svn.miranda-ng.org/main/trunk@14288 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_captcha.cpp')
-rw-r--r--protocols/JabberG/src/jabber_captcha.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/protocols/JabberG/src/jabber_captcha.cpp b/protocols/JabberG/src/jabber_captcha.cpp
index c923fee4a1..17f37fc7f5 100644
--- a/protocols/JabberG/src/jabber_captcha.cpp
+++ b/protocols/JabberG/src/jabber_captcha.cpp
@@ -112,38 +112,38 @@ INT_PTR CALLBACK JabberCaptchaFormDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam,
bool CJabberProto::ProcessCaptcha(HXML node, HXML parentNode, ThreadData *info)
{
- HXML x = xmlGetChildByTag(node, "x", "xmlns", JABBER_FEAT_DATA_FORMS);
+ HXML x = XmlGetChildByTag(node, "x", "xmlns", JABBER_FEAT_DATA_FORMS);
if (x == NULL)
return false;
- HXML y = xmlGetChildByTag(x, _T("field"), _T("var"), _T("from"));
+ HXML y = XmlGetChildByTag(x, _T("field"), _T("var"), _T("from"));
if (y == NULL)
return false;
- if ((y = xmlGetChild(y, "value")) == NULL)
+ if ((y = XmlGetChild(y, "value")) == NULL)
return false;
CAPTCHA_FORM_PARAMS param;
- param.fromjid = xmlGetText(y);
+ param.fromjid = XmlGetText(y);
- if ((y = xmlGetChildByTag(x, _T("field"), _T("var"), _T("sid"))) == NULL)
+ if ((y = XmlGetChildByTag(x, _T("field"), _T("var"), _T("sid"))) == NULL)
return false;
- if ((y = xmlGetChild(y, "value")) == NULL)
+ if ((y = XmlGetChild(y, "value")) == NULL)
return false;
- param.sid = xmlGetText(y);
+ param.sid = XmlGetText(y);
- if ((y = xmlGetChildByTag(x, _T("field"), _T("var"), _T("ocr"))) == NULL)
+ if ((y = XmlGetChildByTag(x, _T("field"), _T("var"), _T("ocr"))) == NULL)
return false;
- param.hint = xmlGetAttrValue (y, _T("label"));
+ param.hint = XmlGetAttrValue (y, _T("label"));
- param.from = xmlGetAttrValue(parentNode, _T("from"));
- param.to = xmlGetAttrValue(parentNode, _T("to"));
- param.challenge = xmlGetAttrValue(parentNode, _T("id"));
- HXML o = xmlGetChild(parentNode, "data");
- if (o == NULL || xmlGetText(o) == NULL)
+ param.from = XmlGetAttrValue(parentNode, _T("from"));
+ param.to = XmlGetAttrValue(parentNode, _T("to"));
+ param.challenge = XmlGetAttrValue(parentNode, _T("id"));
+ HXML o = XmlGetChild(parentNode, "data");
+ if (o == NULL || XmlGetText(o) == NULL)
return false;
unsigned bufferLen;
- ptrA buffer((char*)mir_base64_decode( _T2A(xmlGetText(o)), &bufferLen));
+ ptrA buffer((char*)mir_base64_decode( _T2A(XmlGetText(o)), &bufferLen));
if (buffer == NULL)
return false;