]> git.proxmox.com Git - mirror_edk2.git/commit - SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/Pkcs7VerifyDxe.c
Pkcs7VerifyDxe: Don't allow Pkcs7Verify to install protocols twice
authorPeter Jones <pjones@redhat.com>
Tue, 1 Aug 2017 02:59:00 +0000 (10:59 +0800)
committerLong Qin <qin.long@intel.com>
Tue, 5 Sep 2017 07:55:42 +0000 (15:55 +0800)
commit56e88e9e5f980e30f28d907e0ff442e4dc8dc5de
tree6b45fb3e81541b0a7d69d4d63d4482e1d4695181
parenta2481f81b357c892c8eda725836f255cf4f72879
Pkcs7VerifyDxe: Don't allow Pkcs7Verify to install protocols twice

This patch makes Pkcs7VerifyDxe check that it has not already been
installed before installing its protocols.  This prevents the case
where loading it as an external driver (either manually, through
Driver#### variables, etc.) will refuse to add a second provider of
the API.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Peter Jones <pjones@redhat.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Long Qin <qin.long@intel.com>
SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/Pkcs7VerifyDxe.c