next up previous contents index
Next: Credentials cache functions Up: Main functions Previous: The application functions   Contents   Index

Miscellaneous main functions


\begin{funcdecl}{krb5_address_search}{krb5_boolean}{\funcinout}
\funcarg{krb5_co...
... krb5_address *}{addr}
\funcarg{krb5_address * const *}{addrlist}
\end{funcdecl}

If addr is listed in addrlist, or addrlist is null, return TRUE. If not listed, return FALSE.


\begin{funcdecl}{krb5_address_compare}{krb5_boolean}{\funcinout}
\funcarg{krb5_c...
...onst krb5_address *}{addr1}
\funcarg{const krb5_address *}{addr2}
\end{funcdecl}

If the two addresses are the same, return TRUE, else return FALSE.


\begin{funcdecl}{krb5_fulladdr_order}{int}{\funcinout}
\funcarg{krb5_context}{co...
...st krb5_fulladdr *}{addr1}
\funcarg{const krb5_fulladdr *}{addr2}
\end{funcdecl}

Return an ordering on the two full addresses: 0 if the same, $< 0$ if first is less than 2nd, $> 0$ if first is greater than 2nd.


\begin{funcdecl}{krb5_address_order}{int}{\funcinout}
\funcarg{krb5_context}{con...
...onst krb5_address *}{addr1}
\funcarg{const krb5_address *}{addr2}
\end{funcdecl}

Return an ordering on the two addresses: 0 if the same, $< 0$ if first is less than 2nd, $> 0$ if first is greater than 2nd.


\begin{funcdecl}{krb5_copy_addresses}{krb5_error_code}{\funcinout}
\funcarg{krb5...
...s * const *}{inaddr}
\funcout
\funcarg{krb5_address ***}{outaddr}
\end{funcdecl}

Copy addresses in inaddr to *outaddr which is allocated memory and should be freed with krb5_free_addresses.


\begin{funcdecl}{krb5_copy_authdata}{krb5_error_code}{\funcinout}
\funcarg{krb5_...
...st *}{inauthdat}
\funcout
\funcarg{krb5_authdata ***}{outauthdat}
\end{funcdecl}

Copy an authdata structure, filling in *outauthdat to point to the newly allocated copy, which should be freed with krb5_free_authdata.


\begin{funcdecl}{krb5_copy_authenticator}{krb5_error_code}{\funcinout}
\funcarg{...
...tor *}{authfrom}
\funcout
\funcarg{krb5_authenticator **}{authto}
\end{funcdecl}

Copy an authenticator structure, filling in *outauthdat to point to the newly allocated copy, which should be freed with krb5_free_authenticator.


\begin{funcdecl}{krb5_copy_keyblock}{krb5_error_code}{\funcinout}
\funcarg{krb5_...
...st krb5_keyblock *}{from}
\funcout
\funcarg{krb5_keyblock **}{to}
\end{funcdecl}

Copy a keyblock, filling in *to to point to the newly allocated copy, which should be freed with krb5_free_keyblock.


\begin{funcdecl}{krb5_copy_keyblock_contents}{krb5_error_code}{\funcinout}
\func...
...nst krb5_keyblock *}{from}
\funcout
\funcarg{krb5_keyblock *}{to}
\end{funcdecl}

Copy keyblock contents from from to to, including allocated storage. The allocated storage in to should be freed by using free(to->contents).


\begin{funcdecl}{krb5_copy_checksum}{krb5_error_code}{\funcinout}
\funcarg{krb5_...
...rb5_checksum *}{ckfrom}
\funcout
\funcarg{krb5_checksum **}{ckto}
\end{funcdecl}

Copy a checksum structure, filling in *ckto to point to the newly allocated copy, which should be freed with krb5_free_checksum.


\begin{funcdecl}{krb5_copy_creds}{krb5_error_code}{\funcinout}
\funcarg{krb5_con...
...t krb5_creds *}{incred}
\funcout
\funcarg{krb5_creds **}{outcred}
\end{funcdecl}

Copy a credentials structure, filling in *outcred to point to the newly allocated copy, which should be freed with krb5_free_creds.


\begin{funcdecl}{krb5_copy_data}{krb5_error_code}{\funcinout}
\funcarg{krb5_cont...
...nst krb5_data *}{indata}
\funcout
\funcarg{krb5_data **}{outdata}
\end{funcdecl}

Copy a data structure, filling in *outdata to point to the newly allocated copy, which should be freed with krb5_free_data.


\begin{funcdecl}{krb5_copy_ticket}{krb5_error_code}{\funcinout}
\funcarg{krb5_co...
...const krb5_ticket *}{from}
\funcout
\funcarg{krb5_ticket **}{pto}
\end{funcdecl}

Copy a ticket structure, filling in *pto to point to the newly allocated copy, which should be freed with krb5_free_ticket.


\begin{funcdecl}{krb5_get_server_rcache}{krb5_error_code}{\funcinout}
\funcarg{k...
... krb5_data *}{piece}
\funcout
\funcarg{krb5_rcache *}{ret_rcache}
\end{funcdecl}

Generate a replay cache name, allocate space for its handle, and open it. piece is used to distinguish this replay cache from others currently in use on the system. Typically, piece is the first component of the principal name for the client or server which is calling krb5_get_server_rcache.

Upon successful return, ret_rcache is filled in to contain a handle to an open rcache, which should be closed with krb5_rc_close.


next up previous contents index
Next: Credentials cache functions Up: Main functions Previous: The application functions   Contents   Index
Autobuild 2009-09-05