summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/krb/init_ctx.c
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2010-01-05 02:47:58 +0000
committerTom Yu <tlyu@mit.edu>2010-01-05 02:47:58 +0000
commitb19f2a8984321c3e20a29c8a76456cecb99bccca (patch)
tree4e34cb973572b321e9e9f32641937e96137ec348 /src/lib/krb5/krb/init_ctx.c
parentb8b8377845e02bb7e60dd09e01e15d0fad96caf5 (diff)
downloadkrb5-b19f2a8984321c3e20a29c8a76456cecb99bccca.tar.gz
krb5-b19f2a8984321c3e20a29c8a76456cecb99bccca.tar.xz
krb5-b19f2a8984321c3e20a29c8a76456cecb99bccca.zip
disable weak crypto by default
Set allow_weak_crypto=false by default. Set default master key enctype to sha256. Adjust test suite to compensate. ticket: 6621 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23586 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/init_ctx.c')
-rw-r--r--src/lib/krb5/krb/init_ctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c
index 8f6a1b3dcb..2c2beb6bfc 100644
--- a/src/lib/krb5/krb/init_ctx.c
+++ b/src/lib/krb5/krb/init_ctx.c
@@ -165,7 +165,7 @@ init_common (krb5_context *context, krb5_boolean secure, krb5_boolean kdc)
goto cleanup;
retval = profile_get_boolean(ctx->profile, KRB5_CONF_LIBDEFAULTS,
- KRB5_CONF_ALLOW_WEAK_CRYPTO, NULL, 1, &tmp);
+ KRB5_CONF_ALLOW_WEAK_CRYPTO, NULL, 0, &tmp);
if (retval)
goto cleanup;
ctx->allow_weak_crypto = tmp;