Browse Source

Add an option for 2048bit dhparams

Bob Mottram 10 years ago
parent
commit
c70b67051b
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      src/freedombone-sec

+ 5
- 3
src/freedombone-sec View File

346
       trap "rm -f $data" 0 1 2 5 15
346
       trap "rm -f $data" 0 1 2 5 15
347
       dialog --backtitle "Freedombone Security Configuration" \
347
       dialog --backtitle "Freedombone Security Configuration" \
348
              --title "Diffie-Hellman key length" \
348
              --title "Diffie-Hellman key length" \
349
-             --radiolist "The smaller length is better suited to low power embedded systems:" 10 40 2 \
349
+             --radiolist "The smaller length is better suited to low power embedded systems:" 12 40 3 \
350
              1 "1024 bits" off \
350
              1 "1024 bits" off \
351
-             2 "3072 bits" on 2> $data
351
+             2 "2048 bits" on \
352
+             3 "3072 bits" off 2> $data
352
       sel=$?
353
       sel=$?
353
       case $sel in
354
       case $sel in
354
           1) exit 1;;
355
           1) exit 1;;
356
       esac
357
       esac
357
       case $(cat $data) in
358
       case $(cat $data) in
358
           1) DH_KEYLENGTH=1024;;
359
           1) DH_KEYLENGTH=1024;;
359
-          2) DH_KEYLENGTH=3072;;
360
+          2) DH_KEYLENGTH=2048;;
361
+          3) DH_KEYLENGTH=3072;;
360
       esac
362
       esac
361
 
363
 
362
       ctr=0
364
       ctr=0