From 71a474e1778185b21d4380ed7523ce566a2dbb1a Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 26 Aug 2001 01:40:38 +0000 Subject: [PATCH] adopt to new KRB_CRYPTO git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10556 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/kx/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appl/kx/common.c b/appl/kx/common.c index d180a01bf..58ca0d57a 100644 --- a/appl/kx/common.c +++ b/appl/kx/common.c @@ -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);