/* Provide a callback for when the security PPI is installed. This routine will cache installed security PPI into PeiCore's private data. */
EFI_STATUS EFIAPI SecurityPpiNotifyCallback(IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi)
/* Provide a callback for when the security PPI is installed. This routine will cache installed security PPI into PeiCore's private data. */
EFI_STATUS EFIAPI SecurityPpiNotifyCallback(IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi)
{
  PEI_CORE_INSTANCE  *PrivateData;
  PrivateData = PEI_CORE_INSTANCE_FROM_PS_THIS (PeiServices);
  if (PrivateData->PrivateSecurityPpi == NULL) {
    PrivateData->PrivateSecurityPpi = (EFI_PEI_SECURITY2_PPI *)Ppi;
  }
  return EFI_SUCCESS;
}