adopt to new KRB_CRYPTO

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10556 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-08-26 01:40:38 +00:00
parent c183b68546
commit 71a474e177

View File

@@ -421,10 +421,10 @@ create_and_write_cookie (char *xauthfile,
auth.name_length = strlen(auth.name);
auth.data_length = cookie_sz;
auth.data = (char*)cookie;
#ifdef HAVE_OPENSSL
#ifdef KRB5
krb5_generate_random_block (cookie, cookie_sz);
#else
des_rand_data (cookie, cookie_sz);
krb_generate_random_block (cookie, cookie_sz);
#endif
strlcpy(xauthfile, "/tmp/AXXXXXX", xauthfile_size);