Using mk_req_extended Was: Viewing/printing tex documents
Mike Friedman
mikef at ack.Berkeley.EDU
Tue Mar 29 16:18:45 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 29 Mar 2005 at 14:56 (-0500), Sam Hartman wrote:
> You have to get the credentials before calling mk_req_extended. Here's
> how mk_req works:
>
> /* obtain ticket & session key */
> memset((char *)&creds, 0, sizeof(creds));
> if ((retval = krb5_copy_principal(context, server, &creds.server)))
> goto cleanup_princ;
>
> if ((retval = krb5_cc_get_principal(context, ccache, &creds.client)))
> goto cleanup_creds;
>
> if ((retval = krb5_get_credentials(context, 0, ccache, &creds, &credsp)))
> goto cleanup_creds;
>
> retval = krb5_mk_req_extended(context, auth_context, ap_req_options,
in_data, credsp, outbuf); >
Sam,
Great! That's what I needed to know.
Thanks.
Mike
_____________________________________________________________________
Mike Friedman System and Network Security
mikef at ack.Berkeley.EDU 2484 Shattuck Avenue
1-510-642-1410 University of California at Berkeley
http://ack.Berkeley.EDU/~mikef http://security.berkeley.edu
_____________________________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQA/AwUBQknGPK0bf1iNr4mCEQJiqACg9oeSSH822N93ptgCiaiCwibzdJQAoNGq
4cgMAHGwXwoDxteJ+eIr7t2w
=G6xF
-----END PGP SIGNATURE-----
More information about the Kerberos
mailing list