diff options
author | Jeffrey Hutzelman <jhutz@cmu.edu> | 2016-04-05 18:28:53 -0400 |
---|---|---|
committer | Russ Allbery <eagle@eyrie.org> | 2016-04-26 20:51:03 -0700 |
commit | db19c1d8b1de7d26aac07c722373391cef2ed7f1 (patch) | |
tree | 9b60d22e9e068f1fe29bcf238c8ddd86bd4f2418 /configure.ac | |
parent | 528bf1fd2051687583a0848cd650abf4055d5f11 (diff) |
Skip anonymous tests if Kerberos is too old
Some older versions of Heimdal not only can't do PKINIT, but also crash
when krb5_get_init_creds_password() is called with no password or prompter.
Heimdal versions which avoid the crash have krb5_init_creds_set_password(),
as do all versions of MIT Kerberos which support PKINIT. So, disable the
anonymous tests if that function is not present.
Note that there is a 4-month window in which the new function is present
in Heimdal and the crash is still possible, but there were no releases
during that time.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index efce482..9d95a54 100644 --- a/configure.ac +++ b/configure.ac @@ -54,6 +54,7 @@ AS_IF([test x"$rra_use_KRB5" != xfalse], krb5_get_init_creds_opt_set_anonymous \ krb5_get_init_creds_opt_set_default_flags \ krb5_get_init_creds_opt_set_out_ccache \ + krb5_init_creds_set_password \ krb5_principal_get_realm \ krb5_xfree]) AC_CHECK_FUNCS([krb5_get_init_creds_opt_free], |