(No version information available, might be only in CVS)
GSSAPIContext::unwrap — Unwraps a previously wrapped message
Unwraps a previously wrapped message, which means that the embedded MIC will be verified and the message possibly be decrypted.
Input token
Message (possibly decrypted)
Returns true if successful and false otherwise.
Example #1 GSSAPIContext::unwrap() example
<?php
/* ... */
$message = 'test';
$decoded = '';
$token = '';
$sgssapi->wrap($message, $token, true); // adds a MIC and encrypts $message
$cgssapi->unwrap($token, $decoded);
// returns true when the embedded MIC is valid
// $decoded will contain test
?>