Manual Pages for UNIX Darwin command on man GSSAPI::Status
MyWebUniversity

Manual Pages for UNIX Darwin command on man GSSAPI::Status

GSSAPI::Status(3) User Contributed Perl Documentation GSSAPI::Status(3)

NAME

GSSAPI::Status - methods for handlings GSSAPI statuses

SYNOPSIS

use GSSAPI;

$status = GSSAPI::Status->new(GSSSCOMPLETE, 0);

if (GSSERROR($status->major)) {

die "a horrible death"; }

if (! $status) { # another way of writing the above

die "a horrible death"; }

$status = $someGSSAPI->someop($args1, etc);

if ($status) {

foreach ($status->genericmessage, $status->specificmessage) {

print "GSSAPI error: $\n";

} die "help me"; }

DESCRIPTION

"GSSAPI::Status" objects are returned by most other GSSAPI operations.

Such statuses consist of a GSSAPI generic code and, for most operations, a mechanism specific code. These numeric codes can be accessed via the methods "major" and "minor". The standard textual messages that go with the current status can be obtained via the "genericmessage" and "specificmessage" methods. Each of these returns a list of text which should presumably be displayed in order.

The generic code part of a GSSAPI::Status is composed of three

subfields that can be accessed with the "GSSCALLINGERROR",

"GSSROUTINEERROR", and "GSSSUPPLEMENTARYINFO" functions. The

returned values can be compared against the constants whose names start with "GSSS" if your code wants to handle particular errors itself.

The "GSSERROR" function returns true if and only if the given generic

code contains neither a calling error nor a routine error.

When evaluated in a boolean context, a "GSSAPI::Status" object will be

true if and only if the major status code is "GSSSCOMPLETE".

When evaluated in a string contect, a "GSSAPI::Status" object will

return the generic and specific messages all joined together with

newlines. This may or may not make "die $status" work usefully.

BUGS

The base objects are currently implmented as a blessed C structure containing the major and minor status codes. It should probably be a blessed array or hash instead, thereby cutting down on the amount of C code involved and making it more flexible. AUTHOR Philip Guenther

SEE ALSO

perl(1) RFC2743

perl v5.8.8 2006-03-07 GSSAPI::Status(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™