瀏覽代碼

Remove pinning options from security menu

Possibly they might be reintroduced some time later, but for now pinning just causes trouble
Bob Mottram 8 年之前
父節點
當前提交
6cc14f3f53
共有 1 個檔案被更改,包括 2 行新增10 行删除
  1. 2
    10
      src/freedombone-sec

+ 2
- 10
src/freedombone-sec 查看文件

729
     cmd=(dialog --separate-output \
729
     cmd=(dialog --separate-output \
730
                 --backtitle "Freedombone Security Configuration" \
730
                 --backtitle "Freedombone Security Configuration" \
731
                 --title "Housekeeping options" \
731
                 --title "Housekeeping options" \
732
-                --checklist "If you don't need to do any of these things then just press Enter:" 17 76 17)
732
+                --checklist "If you don't need to do any of these things then just press Enter:" 15 76 15)
733
     options=(1 "Regenerate ssh host keys" off
733
     options=(1 "Regenerate ssh host keys" off
734
              2 "Regenerate Diffie-Hellman keys" off
734
              2 "Regenerate Diffie-Hellman keys" off
735
              3 "Update cipersuite" off
735
              3 "Update cipersuite" off
737
              5 "Renew Let's Encrypt certificate" off
737
              5 "Renew Let's Encrypt certificate" off
738
              6 "Enable GPG based authentication (monkeysphere)" off
738
              6 "Enable GPG based authentication (monkeysphere)" off
739
              7 "Register a website with monkeysphere" off
739
              7 "Register a website with monkeysphere" off
740
-             8 "Pin all TLS certificates" off
741
-             9 "Remove pinning for a domain" off
742
-             10 "Go Back/Exit" on)
740
+             8 "Go Back/Exit" on)
743
     choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
741
     choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
744
     clear
742
     clear
745
     for choice in $choices
743
     for choice in $choices
767
                 register_website
765
                 register_website
768
                 ;;
766
                 ;;
769
             8)
767
             8)
770
-                pin_all_tls_certs
771
-                ;;
772
-            9)
773
-                remove_pinning
774
-                ;;
775
-            10)
776
                 exit 0
768
                 exit 0
777
                 ;;
769
                 ;;
778
         esac
770
         esac