|
$refNode = $encNode->firstChild; |
|
while ($refNode && $refNode->nodeType != XML_ELEMENT_NODE) { |
|
$refNode = $refNode->nextSibling; |
|
} |
|
if ($refNode) { |
|
$refNode = $refNode->nextSibling; |
|
} |
|
if ($this->addEncryptedKey($encNode, $enc, $token)) { |
|
$this->AddReference($enc->encKey, $guid); |
|
} |
The $refNode variable is not used on this method, even more, I couldn't find the use of this method anywhere.
It seems there's two way to encrypt the Body, this mentioned method and the encryptSoapDoc method which can also encrypt the Signature.
So, why thereś two way to do the same thing?, any advantage of one over the other?, and what about the unused variable? 😄
Greets and thanks.
Ernesto
wse-php/src/WSSESoap.php
Lines 438 to 447 in c9611f5
The
$refNodevariable is not used on this method, even more, I couldn't find the use of this method anywhere.It seems there's two way to encrypt the Body, this mentioned method and the
encryptSoapDocmethod which can also encrypt the Signature.So, why thereś two way to do the same thing?, any advantage of one over the other?, and what about the unused variable? 😄
Greets and thanks.
Ernesto