From ee61e4adf18c6f032b7ab2fa790fb261cfc4105c Mon Sep 17 00:00:00 2001 From: Zhanna Tsitkov Date: Tue, 24 Sep 2013 10:13:26 -0400 Subject: Factor out krb5int_random_string() routine Make krb5int_random_string() function available outside ccache code. Move it into a separate file under lib/krb5/krb hierarchy. --- src/include/k5-int.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/include') diff --git a/src/include/k5-int.h b/src/include/k5-int.h index d5814d9bb..2eda47cf3 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -1739,6 +1739,10 @@ krb5_ser_unpack_bytes(krb5_octet *, size_t, krb5_octet **, size_t *); krb5_error_code KRB5_CALLCONV krb5int_cc_default(krb5_context, krb5_ccache *); +/* Fill in the buffer with random alpha-numeric data. */ +krb5_error_code +krb5int_random_string(krb5_context, char *string, unsigned int length); + /* value to use when requesting a keytab entry and KVNO doesn't matter */ #define IGNORE_VNO 0 /* value to use when requesting a keytab entry and enctype doesn't matter */ -- cgit