krb5_auth_context krb5_auth_con_init krb5_auth_con_free krb5_auth_con_setflags krb5_auth_con_getflags krb5_auth_con_setaddrs krb5_auth_con_setaddrs_from_fd krb5_auth_con_getaddrs krb5_auth_con_genaddrs krb5_auth_con_getkey krb5_auth_con_setkey krb5_auth_con_getuserkey krb5_auth_con_setuserkey krb5_auth_con_getlocalsubkey krb5_auth_con_setlocalsubkey krb5_auth_con_getremotesubkey krb5_auth_con_setremotesubkey krb5_auth_setcksumtype krb5_auth_getcksumtype krb5_auth_setkeytype krb5_auth_getkeytype krb5_auth_getlocalseqnumber krb5_auth_setlocalseqnumber krb5_auth_getremoteseqnumber krb5_auth_setremoteseqnumber krb5_auth_getauthenticator krb5_auth_con_getrcache krb5_auth_con_setrcache krb5_auth_con_initivector krb5_auth_con_setivector - manage authentication on connection level
Kerberos 5 Library (libkrb5, -lkrb5)
krb5_auth_con_init ();
allocates and initializes the
krb5_auth_context
structure. Default values can be changed with
krb5_auth_con_setcksumtype ();
and
krb5_auth_con_setflags (.);
The
auth_context
structure must be freed by
krb5_auth_con_free (.);
krb5_auth_con_getflags ();
and
krb5_auth_con_setflags ();
gets and modifies the flags for a
krb5_auth_context
structure. Possible flags to set are:
krb5_auth_con_setaddrs (,);
krb5_auth_con_setaddrs_from_fd ();
and
krb5_auth_con_getaddrs ();
gets and sets the addresses that are checked when a packet is received.
It is mandatory to set an address for the remote
host. If the local address is not set, it iss deduced from the underlaying
operating system.
krb5_auth_con_getaddrs ();
will call
krb5_free_address ();
on any address that is passed in
Fa local_addr
or
Fa remote_addr .
krb5_auth_con_setaddr ();
allows passing in a
NULL
pointer as
Fa local_addr
and
Fa remote_addr ,
in that case it will just not set that address.
krb5_auth_con_setaddrs_from_fd ();
fetches the addresses from a file descriptor.
krb5_auth_con_genaddrs ();
fetches the address information from the given file descriptor
Fa fd
depending on the bitmap argument
Fa flags .
Possible values on Fa flags are:
krb5_auth_con_setkey (,);
krb5_auth_con_setuserkey ();
and
krb5_auth_con_getkey ();
gets and sets the key used for this auth context. The keyblock returned by
krb5_auth_con_getkey ();
should be freed with
krb5_free_keyblock (.);
The keyblock send into
krb5_auth_con_setkey ();
is copied into the
krb5_auth_context
and thus no special handling is needed.
NULL
is not a valid keyblock to
krb5_auth_con_setkey (.);
krb5_auth_con_setuserkey ();
is only useful when doing user to user authentication.
krb5_auth_con_setkey ();
is equivalent to
krb5_auth_con_setuserkey (.);
krb5_auth_con_getlocalsubkey (,);
krb5_auth_con_setlocalsubkey (,);
krb5_auth_con_getremotesubkey ();
and
krb5_auth_con_setremotesubkey ();
gets and sets the keyblock for the local and remote subkey. The keyblock returned by
krb5_auth_con_getlocalsubkey ();
and
krb5_auth_con_getremotesubkey ();
must be freed with
krb5_free_keyblock (.);
krb5_auth_setcksumtype ();
and
krb5_auth_getcksumtype ();
sets and gets the checksum type that should be used for this
connection.
krb5_auth_getremoteseqnumber ();
krb5_auth_setremoteseqnumber (,);
krb5_auth_getlocalseqnumber ();
and
krb5_auth_setlocalseqnumber ();
gets and sets the sequence-number for the local and remote
sequence-number counter.
krb5_auth_setkeytype ();
and
krb5_auth_getkeytype ();
gets and gets the keytype of the keyblock in
krb5_auth_context
krb5_auth_getauthenticator ();
Retrieves the authenticator that was used during mutual
authentication. The
authenticator
returned should be freed by calling
krb5_free_authenticator (.);
krb5_auth_con_getrcache ();
and
krb5_auth_con_setrcache ();
gets and sets the replay-cache.
krb5_auth_con_initivector ();
allocates memory for and zeros the initial vector in the
Fa auth_context
keyblock.
krb5_auth_con_setivector ();
sets the i_vector portion of
Fa auth_context
to
Fa ivector .
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |