Home | History | Annotate | Download | only in PlatformSetupDxe
      1 //
      2 //
      3 // Copyright (c) 2004  - 2014, Intel Corporation. All rights reserved.<BR>
      4 //                                                                                  

      6 // This program and the accompanying materials are licensed and made available under

      8 // the terms and conditions of the BSD License that accompanies this distribution.  

     10 // The full text of the license may be found at                                     

     12 // http://opensource.org/licenses/bsd-license.php.                                  

     14 //                                                                                  

     16 // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,            

     18 // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.    

     20 //                                                                                  

     22 //
     23 //
     24 //
     25 // Module Name:
     26 //
     27 //   Security.vfi
     28 //
     29 // Abstract:
     30 //
     31 //   Driver Setup formset.
     32 //
     33 // --*/
     34 
     35 //
     36 // Security Configuration Form
     37 //
     38 
     39 
     40 form formid = SECURITY_CONFIGURATION_FORM_ID,
     41   title    = STRING_TOKEN(STR_SECURITY_CONFIGURATION_TITLE);
     42 
     43 
     44   subtitle text = STRING_TOKEN(STR_NULL_STRING);
     45   //
     46   //TPM related
     47   //
     48   subtitle text = STRING_TOKEN(STR_TPM_CONFIGURATION_PROMPT);
     49 grayoutif ideqval Setup.ETpm== 0x1;
     50   oneof   varid   = Setup.fTPM,
     51     prompt      = STRING_TOKEN(STR_PTT_PROMPT),
     52     help        = STRING_TOKEN(STR_PTT_HELP),
     53       option text = STRING_TOKEN(STR_ENABLE), value = 1, flags = RESET_REQUIRED;
     54       option text = STRING_TOKEN(STR_DISABLE), value= 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;
     55   endoneof;
     56 endif;
     57 
     58 grayoutif ideqval Setup.fTPM == 0x1;
     59   oneof   varid   = Setup.ETpm,
     60     prompt      = STRING_TOKEN(STR_TPM_PROMPT),
     61     help        = STRING_TOKEN(STR_TPM_HELP),
     62       option text = STRING_TOKEN(STR_ENABLE), value = 1, flags = RESET_REQUIRED;
     63       option text = STRING_TOKEN(STR_DISABLE), value= 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;
     64   endoneof;
     65 endif;
     66 
     67 suppressif ideqval Setup.fTPM == 0;
     68   oneof varid = Setup.MeasuredBootEnable,
     69     prompt      = STRING_TOKEN(STR_MEASURED_BOOT_ENABLE_PROMPT),
     70     help        = STRING_TOKEN(STR_MEASURED_BOOT_ENABLE_HELP),
     71     option text = STRING_TOKEN(STR_DISABLE), value = 0, flags = RESET_REQUIRED;
     72     option text = STRING_TOKEN(STR_ENABLE), value = 1, flags =  DEFAULT | MANUFACTURING | RESET_REQUIRED;
     73   endoneof;
     74 endif;
     75 
     76   subtitle text = STRING_TOKEN(STR_NULL_STRING);
     77 
     78   subtitle text = STRING_TOKEN(STR_PASSWORD_CONFIGURATION_SUBTITLE);
     79 
     80   password varid  = Setup.AdminPassword,
     81     prompt      = STRING_TOKEN(STR_ADMIN_PASSWORD),
     82     help        = STRING_TOKEN(STR_ADMIN_PASSWORD_HELP),
     83     flags       = 0,
     84     minsize     = 0,
     85     maxsize     = PASSWORD_MAX_SIZE,
     86     encoding    = 1,
     87   endpassword;
     88 
     89   password varid  = Setup.UserPassword,
     90     prompt      = STRING_TOKEN(STR_USER_PASSWORD),
     91     help        = STRING_TOKEN(STR_USER_PASSWORD_HELP),
     92     flags       = 0,
     93     minsize     = 0,
     94     maxsize     = PASSWORD_MAX_SIZE,
     95     encoding    = 1,
     96   endpassword;
     97 suppressif TRUE;
     98   password varid  = Setup.AdminPassword,
     99     prompt      = STRING_TOKEN(STR_CHANGE_ADMIN_PASSWORD),
    100     help        = STRING_TOKEN(STR_CHANGE_ADMIN_PASSWORD_HELP),
    101     flags       = 0,
    102     minsize     = 0,
    103     maxsize     = PASSWORD_MAX_SIZE,
    104     encoding    = 1,
    105   endpassword;
    106 
    107   password varid  = Setup.UserPassword,
    108     prompt      = STRING_TOKEN(STR_CHANGE_USER_PASSWORD),
    109     help        = STRING_TOKEN(STR_CHANGE_USER_PASSWORD_HELP),
    110     flags       = 0,
    111     minsize     = 0,
    112     maxsize     = PASSWORD_MAX_SIZE,
    113     encoding    = 1,
    114   endpassword;
    115 endif;
    116 
    117 endform;
    118 
    119