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
This commit is contained in:
Ken Dreyer
2014-04-29 10:40:13 -06:00
parent 5907fd34d8
commit 142a3cee1e

View File

@@ -120,6 +120,10 @@ test_cf2(krb5_context context)
unsigned int i;
unsigned int errors = 0;
ret = krb5_allow_weak_crypto(context, 1);
if (ret)
krb5_err(context, 1, ret, "krb5_allow_weak_crypto");
for (i = 0; i < sizeof(cf2)/sizeof(cf2[0]); i++) {
pw.data = cf2[i].p1;
pw.length = strlen(cf2[i].p1);