diff options
author | Star Zeng <star.zeng@intel.com> | 2015-06-10 07:52:12 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@Edk2> | 2015-06-10 07:52:12 +0000 |
commit | 13af4ab06516eefb40fb985467141e09efe9c58b (patch) | |
tree | b6f62814d92917bad3174cc2144e6dd333fabfe0 /SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.h | |
parent | 8457d0e701508a3322ed66e27f8707a8f4f453f7 (diff) | |
download | edk2-13af4ab06516eefb40fb985467141e09efe9c58b.tar.gz edk2-13af4ab06516eefb40fb985467141e09efe9c58b.tar.bz2 edk2-13af4ab06516eefb40fb985467141e09efe9c58b.zip |
SecurityPkg Variable: Support the new introduced PcdMaxAuthVariableSize.
1. If PcdMaxAuthVariableSize is set to 0, keep current behavior as is and
PcdMaxVariableSize used.
2. If PcdMaxAuthVariableSize is set to non 0, it will work on
authenticated variables.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17610 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.h')
-rw-r--r-- | SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.h b/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.h index f28c82578e..56def50d52 100644 --- a/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.h +++ b/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.h @@ -139,13 +139,18 @@ UpdatePlatformMode ( /**
Initializes for authenticated varibale service.
+ @param[in] MaxAuthVariableSize Reflect the overhead associated with the saving
+ of a single EFI authenticated variable with the exception
+ of the overhead associated with the length
+ of the string name of the EFI variable.
+
@retval EFI_SUCCESS Function successfully executed.
- @retval EFI_OUT_OF_RESOURCES Fail to allocate enough memory resource.
+ @retval EFI_OUT_OF_RESOURCES Fail to allocate enough memory resources.
**/
EFI_STATUS
AutenticatedVariableServiceInitialize (
- VOID
+ IN UINTN MaxAuthVariableSize
);
/**
|