Add flag --pk-use-enckey.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18222 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-04 20:56:21 +00:00
parent 65b08b1dc3
commit 45698ac1dc

View File

@@ -71,6 +71,7 @@ int fcache_version;
char *password_file = NULL; char *password_file = NULL;
char *pk_user_id = NULL; char *pk_user_id = NULL;
char *pk_x509_anchors = NULL; char *pk_x509_anchors = NULL;
int pk_use_enckey = 0;
static char *krb4_cc_name; static char *krb4_cc_name;
@@ -158,6 +159,9 @@ static struct getargs args[] = {
{ "x509-anchors", 'D', arg_string, &pk_x509_anchors, { "x509-anchors", 'D', arg_string, &pk_x509_anchors,
"directory with CA certificates", "directory" }, "directory with CA certificates", "directory" },
{ "pk-use-enckey", 0, arg_flag, &pk_use_enckey,
"Use RSA encrypted reply (instead of DH)" },
#endif #endif
{ "version", 0, arg_flag, &version_flag }, { "version", 0, arg_flag, &version_flag },
{ "help", 0, arg_flag, &help_flag } { "help", 0, arg_flag, &help_flag }
@@ -512,7 +516,7 @@ get_new_tickets(krb5_context context,
pk_x509_anchors, pk_x509_anchors,
NULL, NULL,
NULL, NULL,
0, pk_use_enckey ? 2 : 0,
krb5_prompter_posix, krb5_prompter_posix,
NULL, NULL,
passwd); passwd);