projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include a timing test that works without RSA.
[oweals/openssl.git]
/
apps
/
dh.c
diff --git
a/apps/dh.c
b/apps/dh.c
index e54cd29050b0cac1f7ab576787643e69e3219928..674963f81a901ad98c80d493f41748596f433345 100644
(file)
--- a/
apps/dh.c
+++ b/
apps/dh.c
@@
-1,4
+1,5
@@
/* apps/dh.c */
/* apps/dh.c */
+/* obsoleted by dhparam.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@
-82,6
+83,8
@@
* -C
*/
* -C
*/
+int MAIN(int, char **);
+
int MAIN(int argc, char **argv)
{
DH *dh=NULL;
int MAIN(int argc, char **argv)
{
DH *dh=NULL;
@@
-219,7
+222,7
@@
bad:
BN_print(stdout,dh->g);
printf("\n");
if (dh->length != 0)
BN_print(stdout,dh->g);
printf("\n");
if (dh->length != 0)
- printf("recom
ent
ed private length=%ld\n",dh->length);
+ printf("recom
mend
ed private length=%ld\n",dh->length);
#endif
}
#endif
}
@@
-232,8
+235,8
@@
bad:
}
if (i & DH_CHECK_P_NOT_PRIME)
printf("p value is not prime\n");
}
if (i & DH_CHECK_P_NOT_PRIME)
printf("p value is not prime\n");
- if (i & DH_CHECK_P_NOT_S
TRONG
_PRIME)
- printf("p value is not a s
trong
prime\n");
+ if (i & DH_CHECK_P_NOT_S
AFE
_PRIME)
+ printf("p value is not a s
afe
prime\n");
if (i & DH_UNABLE_TO_CHECK_GENERATOR)
printf("unable to check the generator value\n");
if (i & DH_NOT_SUITABLE_GENERATOR)
if (i & DH_UNABLE_TO_CHECK_GENERATOR)
printf("unable to check the generator value\n");
if (i & DH_NOT_SUITABLE_GENERATOR)
@@
-298,7
+301,7
@@
bad:
}
if (!i)
{
}
if (!i)
{
- BIO_printf(bio_err,"unable to write DH param
a
ters\n");
+ BIO_printf(bio_err,"unable to write DH param
e
ters\n");
ERR_print_errors(bio_err);
goto end;
}
ERR_print_errors(bio_err);
goto end;
}