From 142a3cee1e294cb01c0f39a731312ca24792fcee Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Tue, 29 Apr 2014 10:40:13 -0600 Subject: [PATCH] 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 --- lib/krb5/test_fx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/krb5/test_fx.c b/lib/krb5/test_fx.c index 1fc2d5bff..68f00dc63 100644 --- a/lib/krb5/test_fx.c +++ b/lib/krb5/test_fx.c @@ -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);