krb5int_generate_and_save_subkey (krb5_context, krb5_auth_context,
krb5_keyblock * /* Old keyblock, not new! */);
+krb5_error_code krb5int_random_string (krb5_context, char *, unsigned int);
+
/* set and change password helpers */
krb5_error_code krb5int_mk_chpw_req
return 0;
}
-static krb5_error_code random_string (krb5_context, char *, unsigned int);
-
/*
* Effects:
* Creates a new file cred cache whose name is guaranteed to be
while (1) {
krb5_mcc_list_node *ptr;
- random_string (context, uniquename, sizeof (uniquename));
+ krb5int_random_string (context, uniquename, sizeof (uniquename));
for (ptr = mcc_head; ptr; ptr=ptr->next) {
if (!strcmp(ptr->cache->name, uniquename)) {
* This algorithm was selected because it creates readable
* random ccache names in a fixed size buffer. */
-static krb5_error_code
-random_string (krb5_context context, char *string, unsigned int length)
+krb5_error_code
+krb5int_random_string (krb5_context context, char *string, unsigned int length)
{
static const unsigned char charlist[] =
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";