+2004-05-30 Ken Raeburn <raeburn@mit.edu>
+
+ * ksetpwd.c (verify_creds, get_init_creds_opt_init,
+ userinitcontext, init_creds): Now static.
+ (main): Remove one of two variables named "ccache".
+
2003-04-28 Ken Raeburn <raeburn@mit.edu>
* ksetpwd.c (init_creds): Let's use C comments for C code, shall
#define TKTTIMELEFT 60*10 /* ten minutes */
-int verify_creds()
+static int verify_creds()
{
krb5_context kcontext;
krb5_ccache ccache;
return kres;
}
-void get_init_creds_opt_init( krb5_get_init_creds_opt *outOptions )
+static void get_init_creds_opt_init( krb5_get_init_creds_opt *outOptions )
{
krb5_preauthtype preauth[] = { KRB5_PADATA_ENC_TIMESTAMP };
krb5_enctype etypes[] = {ENCTYPE_DES_CBC_MD5, ENCTYPE_DES_CBC_CRC};
typedef void * kbrccache_t;
#define CCACHE_PREFIX_DEFAULT "MEMORY:C_"
-kbrccache_t userinitcontext(
+static kbrccache_t userinitcontext(
const char * user, const char * domain, const char * passwd, const char * cachename, int initialize,
int * outError )
{
return pCacheName;
}
-int init_creds()
+static int init_creds()
{
char user[512];
char * password = NULL;
char * new_password = NULL;
char * new_password2;
krb5_context kcontext;
- krb5_ccache ccache;
krb5_error_code kerr;
krb5_principal target_principal;