aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/ntp/util/ntp-keygen.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2014-12-23 22:53:03 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2014-12-23 22:53:03 +0000
commiteec2228f5545242471ebda48e26e79eb85156ee5 (patch)
tree2a94c6b6551f656a353dd6ab147668e43ecde45c /contrib/ntp/util/ntp-keygen.c
parente9e69dbafd7921c68a66e87702c0583a2be20823 (diff)
downloadsrc-releng/9.1.tar.gz
src-releng/9.1.zip
[SA-14:31] Fix multiple vulnerabilities in NTP suite.releng/9.1
[EN-14:13] Fix directory deletion issue in freebsd-update. Approved by: so
Notes
Notes: svn path=/releng/9.1/; revision=276155
Diffstat (limited to 'contrib/ntp/util/ntp-keygen.c')
-rw-r--r--contrib/ntp/util/ntp-keygen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/ntp/util/ntp-keygen.c b/contrib/ntp/util/ntp-keygen.c
index 6c1451889551..056121e68c8c 100644
--- a/contrib/ntp/util/ntp-keygen.c
+++ b/contrib/ntp/util/ntp-keygen.c
@@ -642,7 +642,7 @@ gen_md5(
for (i = 1; i <= MD5KEYS; i++) {
for (j = 0; j < 16; j++) {
while (1) {
- temp = ntp_random() & 0xff;
+ temp = arc4random() & 0xff;
if (temp == '#')
continue;
if (temp > 0x20 && temp < 0x7f)
@@ -675,7 +675,7 @@ gen_rsa(
FILE *str;
fprintf(stderr, "Generating RSA keys (%d bits)...\n", modulus);
- rsa = RSA_generate_key(modulus, 3, cb, "RSA");
+ rsa = RSA_generate_key(modulus, 65537, cb, "RSA");
fprintf(stderr, "\n");
if (rsa == NULL) {
fprintf(stderr, "RSA generate keys fails\n%s\n",
@@ -954,7 +954,7 @@ gen_gqpar(
*/
fprintf(stderr,
"Generating GQ parameters (%d bits)...\n", modulus);
- rsa = RSA_generate_key(modulus, 3, cb, "GQ");
+ rsa = RSA_generate_key(modulus, 65537, cb, "GQ");
fprintf(stderr, "\n");
if (rsa == NULL) {
fprintf(stderr, "RSA generate keys fails\n%s\n",