(No version information available, might be only in CVS)
GSSAPIContext::wrap — Wraps a message
Wraps a message, which means that the message and a MIC will be combined into a token which may be passed to a remote party. Optionally the message can be also encrypted.
Message to wrap
Wrapped token
Whether to encrypt the message
Returns true if successful and false otherwise.
Example #1 GSSAPIContext::wrap() 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
?>