diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-06-25 04:13:25 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-06-25 04:13:25 +0000 |
commit | 93a29e046e297c060a48fcdd1e43641470d78cdd (patch) | |
tree | d9370dfcda997e302365dabf979a35af49c62e3c /dh.c | |
parent | d2bf0d64d93b942120e937058b189668069e77fd (diff) |
- provos@cvs.openbsd.org 2001/06/22 21:27:08
[dh.c pathnames.h]
use /etc/moduli instead of /etc/primes, okay markus@
Diffstat (limited to 'dh.c')
-rw-r--r-- | dh.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: dh.c,v 1.14 2001/04/15 08:43:45 markus Exp $"); | 26 | RCSID("$OpenBSD: dh.c,v 1.15 2001/06/22 21:27:07 provos Exp $"); |
27 | 27 | ||
28 | #include "xmalloc.h" | 28 | #include "xmalloc.h" |
29 | 29 | ||
@@ -108,9 +108,9 @@ choose_dh(int min, int wantbits, int max) | |||
108 | int linenum; | 108 | int linenum; |
109 | struct dhgroup dhg; | 109 | struct dhgroup dhg; |
110 | 110 | ||
111 | f = fopen(_PATH_DH_PRIMES, "r"); | 111 | if ((f = fopen(_PATH_DH_MODULI, "r")) == NULL && |
112 | if (!f) { | 112 | (f = fopen(_PATH_DH_PRIMES, "r")) == NULL) { |
113 | log("WARNING: %s does not exist, using old prime", _PATH_DH_PRIMES); | 113 | log("WARNING: %s does not exist, using old modulus", _PATH_DH_MODULI); |
114 | return (dh_new_group1()); | 114 | return (dh_new_group1()); |
115 | } | 115 | } |
116 | 116 | ||