lib/krb5: keep a copy of config etypes in the context
commita3bece16c741723b2a04bc5b4669aba26c69bda4
authorUri Simchoni <uri@samba.org>
Fri, 23 Sep 2016 16:19:02 +0000 (23 19:19 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 30 Sep 2016 15:37:06 +0000 (30 08:37 -0700)
treefa2405a16e80757cb7b85875503604ea805e27bf
parenta16a9cc93984c707e190fb923f3e5666b628ad95
lib/krb5: keep a copy of config etypes in the context

When reading configuration file, keep an extra copy of
the encryption types, and use this when resetting the
encryption types to default.

GSSAPI always resets the enctypes to default before obtaining
a TGS, because the enctypes might have previously altered,
so this prevents changing the etypes from the configured ones
to the full set of supported etypes.

Signed-off-by: Uri Simchoni <uri@samba.org>
lib/krb5/context.c
lib/krb5/krb5_locl.h