diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-02-09 13:29:06 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-10 16:45:13 +1100 |
commit | a7835f473694dd7ff0ad7679e86fd4b2de7e23ce (patch) | |
tree | 2c323e0f62043c959981265718bf61780455a677 /source3/libsmb/clikrb5.c | |
parent | 3d63100890371b25a873afe0fd240d6069e274dc (diff) | |
download | samba-a7835f473694dd7ff0ad7679e86fd4b2de7e23ce.tar.gz samba-a7835f473694dd7ff0ad7679e86fd4b2de7e23ce.tar.bz2 samba-a7835f473694dd7ff0ad7679e86fd4b2de7e23ce.zip |
s3-libsmb: Remove unused smb_krb5_mk_error()
Also remove now-unused configure checks for krb5_mk_error().
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html
Andrew Bartlett
Diffstat (limited to 'source3/libsmb/clikrb5.c')
-rw-r--r-- | source3/libsmb/clikrb5.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c index 8cea29cc19..02a02c56d0 100644 --- a/source3/libsmb/clikrb5.c +++ b/source3/libsmb/clikrb5.c @@ -1298,43 +1298,6 @@ done: #endif } - krb5_error_code smb_krb5_mk_error(krb5_context context, - krb5_error_code error_code, - const krb5_principal server, - krb5_data *reply) -{ -#ifdef HAVE_SHORT_KRB5_MK_ERROR_INTERFACE /* MIT */ - /* - * The MIT interface is *terrible*. - * We have to construct this ourselves... - */ - krb5_error e; - - memset(&e, 0, sizeof(e)); - krb5_us_timeofday(context, &e.stime, &e.susec); - e.server = server; -#if defined(krb5_err_base) - e.error = error_code - krb5_err_base; -#elif defined(ERROR_TABLE_BASE_krb5) - e.error = error_code - ERROR_TABLE_BASE_krb5; -#else - e.error = error_code; /* Almost certainly wrong, but what can we do... ? */ -#endif - - return krb5_mk_error(context, &e, reply); -#else /* Heimdal. */ - return krb5_mk_error(context, - error_code, - NULL, - NULL, /* e_data */ - NULL, - server, - NULL, - NULL, - reply); -#endif -} - /********************************************************************** * Open a krb5 keytab with flags, handles readonly or readwrite access and * allows to process non-default keytab names. |