generate a local subkey if AP_OPTS_USE_SUBKEY is set

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11332 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2002-09-02 17:13:52 +00:00
parent 8b71b2c312
commit 2e1f72ec6b

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997 - 2001 Kungliga Tekniska H<>gskolan * Copyright (c) 1997 - 2002 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -62,6 +62,12 @@ krb5_mk_req_internal(krb5_context context,
if(ret) if(ret)
return ret; return ret;
if(ac->local_subkey == NULL && (ap_req_options & AP_OPTS_USE_SUBKEY)) {
ret = krb5_auth_con_generatelocalsubkey(context, ac, &in_creds->session);
if(ret)
return ret;
}
#if 0 #if 0
{ {
/* This is somewhat bogus since we're possibly overwriting a /* This is somewhat bogus since we're possibly overwriting a