test_fx: enable weak crypto

Now that test_fx checks 1DES keys, we need to call allow_weak_crypto on
the test's context.

Without this fix, "make check" was failing with the following error:

  lt-test_fx: krb5_crypto_init: Encryption type des-cbc-crc not
  supported

(cherry picked from commit 142a3cee1e294cb01c0f39a731312ca24792fcee)
Merge pull request #92 from ktdreyer/test-fx-weak-crypto-1-6-branch

1.6 cherry-pick: test_fx: enable weak crypto
kinit: get_switched_ccache

Provide a new internal function called get_switched() to encapsulate
the algorithm for selecting a credential cache when the selected
ccache type supports switching.  There is no change in behavior for
UNIX which always calls krb5_cc_new_unique().  However, on Windows
alternate behavior is provided when the ccache type is API or MSLSA.

For the API ccache the default ccache name is stored in the Windows
registry which is shared across all logon sessions belonging to a
user.  For users that are members of the Administrators group this
includes both the UAC restricted and elevated sessions sharing the
same desktop.  It is very disconcerting when the elevated session obtains
credentials for the same client principal as the restricted session
and then all apps in the restricted session lose access to their
credential cache.   For Windows, the API credential caches are named
after the principal that is stored within them.  It provides for a
better end user experience.

For the MSLSA ccache tickets belonging to multiple principals are
all stored within the MSLSA ccache.  As a result, all attempts to
switch ccache names default back to the one and only one name.

Change-Id: I7865cd044cff01ff38ab107ec0961e42788fa073
(cherry picked from commit 69c2872dbd8e0ee53a47f13f5218ab069bf0187a)
roken: Windows ELOOP definition

Microsoft VC 2010 defines ELOOP as 114

Change-Id: Iba6cfd83e4a9ea1d43ed8aff7893d557648fc7e5
(cherry picked from commit 732bfd11bede7863d92925a8b312e4b56883d768)
Revert "Update krb5-config to include sqlite3 lib"

This reverts commit 7e6b558d2a261228806c0998f3be83985bb1bf3e.

It is better to avoid exposing internal libraries to external
applications. Additionally, the value was not being interpolated into
krb5-config.
Merge pull request #98 from ktdreyer/revert-sqlite-krb5-config

Revert "Update krb5-config to include sqlite3 lib"
remove hdb ldap create declarations

The hdb_ldap_create and hdb_ldapi_create prototypes use the "static"
keyword, but the functions themselves are not implemented as static.

Heimdal's buildsystem dynamically adds function declarations to
hdb-protos.h based on the actual function implementations. Those
declarations in hdb-protos.h are not declared as static.

Since the build system generates the declarations dynamically, just
remove them from hdb-ldap.c.

(cherry picked from commit 10519ce50d3aaa8e40bb9e1e0dee5da847648f42)