aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorZhanna Tsitkov <tsitkova@mit.edu>2013-09-24 10:13:26 -0400
committerZhanna Tsitkov <tsitkova@mit.edu>2013-09-24 13:02:57 -0400
commitee61e4adf18c6f032b7ab2fa790fb261cfc4105c (patch)
tree89fe7e55e2fb3df036885444021b3d895e6bc23f /src/include
parentbf6734efe7ddedd302fc126e4c4e13764c276d23 (diff)
downloadkrb5-ee61e4adf18c6f032b7ab2fa790fb261cfc4105c.zip
krb5-ee61e4adf18c6f032b7ab2fa790fb261cfc4105c.tar.gz
krb5-ee61e4adf18c6f032b7ab2fa790fb261cfc4105c.tar.bz2
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.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/k5-int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index d5814d9..2eda47c 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 */