Allow default realm to be overriden by extern variable
authorTheodore Tso <tytso@mit.edu>
Fri, 10 Jun 1994 19:45:50 +0000 (19:45 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 10 Jun 1994 19:45:50 +0000 (19:45 +0000)
commit0558de4ee026f18c9a0c26153990afcad96a6886
treed920c7aaff6028847092102ffdbf7bd9ab5374e4
parent34ff54b966b69ec54a75fcc9297b5d37d9c5871b
Allow default realm to be overriden by extern variable

Cache default realm so that we don't have to repeatedly open /etc/krb.conf.
(Also prevents possible security problems if /etc/krb.conf is over the network,
and an attacker spoofs /etc/krb.conf for some calls to get_default_realm,
but not all of them.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3726 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/os/def_realm.c