version 1.1, 2003/08/22 10:56:09 |
version 1.1.2.1, 2004/02/28 03:51:33 |
|
|
|
|
/* Initialise the krb5 library, for the stuff that GSSAPI won't do */ |
/* Initialise the krb5 library, for the stuff that GSSAPI won't do */ |
|
|
static int |
static int |
ssh_gssapi_krb5_init() |
ssh_gssapi_krb5_init() |
{ |
{ |
krb5_error_code problem; |
krb5_error_code problem; |
|
|
return; |
return; |
} |
} |
|
|
if ((problem = krb5_parse_name(krb_context, |
if ((problem = krb5_parse_name(krb_context, |
client->exportedname.value, &princ))) { |
client->exportedname.value, &princ))) { |
logit("krb5_parse_name(): %.100s", |
logit("krb5_parse_name(): %.100s", |
krb5_get_err_text(krb_context, problem)); |
krb5_get_err_text(krb_context, problem)); |
|
|
|
|
krb5_free_principal(krb_context, princ); |
krb5_free_principal(krb_context, princ); |
|
|
if ((maj_status = gss_krb5_copy_ccache(&min_status, |
if ((maj_status = gss_krb5_copy_ccache(&min_status, |
client->creds, ccache))) { |
client->creds, ccache))) { |
logit("gss_krb5_copy_ccache() failed"); |
logit("gss_krb5_copy_ccache() failed"); |
krb5_cc_destroy(krb_context, ccache); |
krb5_cc_destroy(krb_context, ccache); |