Default to test DH.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17480 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -50,14 +50,14 @@ static int version_flag;
|
|||||||
static int help_flag;
|
static int help_flag;
|
||||||
static char *id_flag;
|
static char *id_flag;
|
||||||
static char *rsa_flag;
|
static char *rsa_flag;
|
||||||
static int dh_flag;
|
static int dh_flag = 1;
|
||||||
|
|
||||||
static struct getargs args[] = {
|
static struct getargs args[] = {
|
||||||
{ "id", 0, arg_string, &id_flag,
|
{ "id", 0, arg_string, &id_flag,
|
||||||
"selects the engine id", "engine-id" },
|
"selects the engine id", "engine-id" },
|
||||||
{ "rsa", 0, arg_string, &rsa_flag,
|
{ "rsa", 0, arg_string, &rsa_flag,
|
||||||
"tests RSA modes", "private-rsa-der-file" },
|
"tests RSA modes", "private-rsa-der-file" },
|
||||||
{ "dh", 0, arg_flag, &dh_flag,
|
{ "dh", 0, arg_negative_flag, &dh_flag,
|
||||||
"test dh", NULL },
|
"test dh", NULL },
|
||||||
{ "version", 0, arg_flag, &version_flag,
|
{ "version", 0, arg_flag, &version_flag,
|
||||||
"print version", NULL },
|
"print version", NULL },
|
||||||
@@ -239,7 +239,7 @@ main(int argc, char **argv)
|
|||||||
DH_free(server);
|
DH_free(server);
|
||||||
DH_free(client);
|
DH_free(client);
|
||||||
|
|
||||||
printf("dh test passed\n");
|
printf("DH test passed\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
ENGINE_finish(engine);
|
ENGINE_finish(engine);
|
||||||
|
Reference in New Issue
Block a user