/*----------------------------------------------------------------------- * File: CALLOUTS.C * * Copyright (c) 1995-2000 Intel Corporation. All rights reserved. *----------------------------------------------------------------------- */ /* * OpenVMS History * * 12-Sep-2002 Carol Kelly * o Merge in V3_14 changes * */ #include "cssm.h" #ifdef ISL_INCLUDED #include "callouts.h" #ifdef WIN32 #include #else #include "cssmport.h" #endif #include "eislapi.h" #include "common.h" #include "dummy_mds.h" #include "rootnames.h" #include "mds_util_helper.h" #include "guids.h" CSSM_GUID intel_dummyemm_guid = intel_dummy_emm_guid_3_0_0_init; int EISL_RetrieveRootIssuerName(ISL_CALLOUT_DATA* Name) { Name; return 0; } /* ; ifdef VMS remove extraneous semicolon */ void EISL_RetrieveSelfCheckSectionName( ISL_CALLOUT_DATA* Name) { #ifdef VMS char *str = "dummyemm_shr"; #else char *str = "indyemm300"; #endif uint32 len = strlen(str); if (len > Name->length) goto FAIL; memcpy(Name->value, str, len+1); Name->length = len; return; FAIL: Name->length = 0; return; } void EISL_RetrieveSelfCheckCredentials( ISL_CALLOUT_DATA* Name, ISL_CALLOUT_DATA* Path) { CSSM_DATA Credential; CSSM_DATA ModulePath; if (mdsutil_GetModuleCredentialInfo (&intel_dummyemm_guid, &Credential, NULL, &ModulePath) == CSSM_OK) { memcpy (Name->value, Credential.Data, Credential.Length); Name->length = Credential.Length; memcpy (Path->value, ModulePath.Data, ModulePath.Length); Path->length = ModulePath.Length; dummy_free (Credential.Data, NULL); dummy_free (ModulePath.Data, NULL); } } void EISL_RetrieveSelfCheckCredentialsSize( uint32 *Size) { CSSM_DATA Credential; CSSM_DATA ModulePath; if (mdsutil_GetModuleCredentialInfo (&intel_dummyemm_guid, &Credential, NULL, &ModulePath) == CSSM_OK) { if (Size) *Size = Credential.Length; dummy_free (Credential.Data, NULL); dummy_free (ModulePath.Data, NULL); } } #endif