From 45698ac1dc9bc275c08b207a53d9442b52792599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 4 Oct 2006 20:56:21 +0000 Subject: [PATCH] Add flag --pk-use-enckey. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18222 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kuser/kinit.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kuser/kinit.c b/kuser/kinit.c index b6004390b..76abe883f 100644 --- a/kuser/kinit.c +++ b/kuser/kinit.c @@ -71,6 +71,7 @@ int fcache_version; char *password_file = NULL; char *pk_user_id = NULL; char *pk_x509_anchors = NULL; +int pk_use_enckey = 0; static char *krb4_cc_name; @@ -158,6 +159,9 @@ static struct getargs args[] = { { "x509-anchors", 'D', arg_string, &pk_x509_anchors, "directory with CA certificates", "directory" }, + { "pk-use-enckey", 0, arg_flag, &pk_use_enckey, + "Use RSA encrypted reply (instead of DH)" }, + #endif { "version", 0, arg_flag, &version_flag }, { "help", 0, arg_flag, &help_flag } @@ -512,7 +516,7 @@ get_new_tickets(krb5_context context, pk_x509_anchors, NULL, NULL, - 0, + pk_use_enckey ? 2 : 0, krb5_prompter_posix, NULL, passwd);