当前位置: 首页>>代码示例>>C++>>正文


C++ PRINT_LOG函数代码示例

本文整理汇总了C++中PRINT_LOG函数的典型用法代码示例。如果您正苦于以下问题:C++ PRINT_LOG函数的具体用法?C++ PRINT_LOG怎么用?C++ PRINT_LOG使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了PRINT_LOG函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: SKF_ChangeDevAuthKey

ULONG DEVAPI SKF_ChangeDevAuthKey(DEVHANDLE hDev,
	BYTE *pbKeyValue,
	ULONG ulKeyLen)
{
	PRINT_LOG();
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:7,代码来源:skf_dummy.c

示例2: SKF_DevAuth

ULONG DEVAPI SKF_DevAuth(DEVHANDLE hDev,
	BYTE *pbAuthData,
	ULONG ulLen)
{
	PRINT_LOG();
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:7,代码来源:skf_dummy.c

示例3: SKF_GetDevInfo

ULONG DEVAPI SKF_GetDevInfo(DEVHANDLE hDev,
	DEVINFO *pDevInfo)
{
	DEVINFO devInfo;
	PRINT_LOG();

	bzero(&devInfo, sizeof(DEVINFO));
	devInfo.Version.major = 1;
	devInfo.Version.minor = 0;
	strcpy((char *)&devInfo.Manufacturer, "GmSSL Project (http://gmssl.org)");
	strcpy((char *)&devInfo.Issuer, "GmSSL Project (http://gmssl.org)");
	strcpy((char *)&devInfo.Label, "SKF Softotken");
	strcpy((char *)&devInfo.SerialNumber, "000001");
	devInfo.HWVersion.major = 1;
	devInfo.HWVersion.minor = 0;
	devInfo.FirmwareVersion.major = 1;
	devInfo.FirmwareVersion.minor = 0;
	devInfo.AlgSymCap = 0x0000041F;
	devInfo.AlgAsymCap = 0x00030700;
	devInfo.AlgHashCap = 0x00000007;
	devInfo.DevAuthAlgId = SGD_SM4_CBC;
	devInfo.TotalSpace = 0;
	devInfo.FreeSpace = 0;
	devInfo.MaxECCBufferSize = 0; /* FIXME: max inlen of ECC encrypt */
	devInfo.MaxBufferSize = 0; /* FIXME: max inlen of SM4 encrypt */

	memcpy(pDevInfo, &devInfo, sizeof(DEVINFO));
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:29,代码来源:skf_dummy.c

示例4: SKF_GenRandom

ULONG DEVAPI SKF_GenRandom(DEVHANDLE hDev,
	BYTE *pbRandom,
	ULONG ulRandomLen)
{
	PRINT_LOG();
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:7,代码来源:skf_dummy.c

示例5: tgc_add_list

/*-----------------------------------------------------------------------------
 Add an element to the list
-----------------------------------------------------------------------------*/
int tgc_add_list(socket_pair_list **list, int sdi, int sdx)
{
	socket_pair_list	*pair;

	if (sdi<0 || sdx<0)
		return E_TGC_NOCANDO;
	
	if ( !(pair=(socket_pair_list *) malloc(sizeof(socket_pair_list))) ) {
		PRINT_LOG(1, "Out of memory!");
		return E_TGC_IE;
	}
	pair->sdi = sdi;
	pair->sdx = sdx;
	pair->prev = NULL;

	if (*list) {
		pair->next = *list;
		(*list)->prev = pair;
		*list = pair;
	} else {
		pair->next = NULL;
		*list = pair;
	}

	return 0;
}
开发者ID:BwRy,项目名称:tgcd,代码行数:29,代码来源:tgc.c

示例6: SKF_GetContainerType

ULONG DEVAPI SKF_GetContainerType(HCONTAINER hContainer,
	ULONG *pulContainerType)
{
	PRINT_LOG();
	*pulContainerType = CONTAINER_TYPE_ECC;
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:7,代码来源:skf_dummy.c

示例7: SKF_DisConnectDev

ULONG DEVAPI SKF_DisConnectDev(DEVHANDLE hDev)
{
	PRINT_LOG();
	if (hDev) {
		free(hDev);
	}
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:8,代码来源:skf_dummy.c

示例8: SKF_MacFinal

ULONG DEVAPI SKF_MacFinal(HANDLE hMac,
	BYTE *pbMac,
	ULONG *pulMacLen)
{
	PRINT_LOG();
	*pulMacLen = 16;
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:8,代码来源:skf_dummy.c

示例9: SKF_CloseApplication

ULONG DEVAPI SKF_CloseApplication(HAPPLICATION hApplication)
{
	PRINT_LOG();
	if (hApplication) {
		free(hApplication);
	}
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:8,代码来源:skf_dummy.c

示例10: SKF_ECCSignData

ULONG DEVAPI SKF_ECCSignData(HCONTAINER hContainer,
	BYTE *pbData,
	ULONG ulDataLen,
	ECCSIGNATUREBLOB *pSignature)
{
	PRINT_LOG();
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:8,代码来源:skf_dummy.c

示例11: SKF_OpenContainer

ULONG DEVAPI SKF_OpenContainer(HAPPLICATION hApplication,
	LPSTR szContainerName,
	HCONTAINER *phContainer)
{
	PRINT_LOG();
	*phContainer = malloc(256);
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:8,代码来源:skf_dummy.c

示例12: SKF_DecryptFinal

ULONG DEVAPI SKF_DecryptFinal(HANDLE hKey,
	BYTE *pbDecryptedData,
	ULONG *pulDecryptedDataLen)
{
	PRINT_LOG();
	*pulDecryptedDataLen = 0;
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:8,代码来源:skf_dummy.c

示例13: SKF_DigestFinal

ULONG DEVAPI SKF_DigestFinal(HANDLE hHash,
	BYTE *pHashData,
	ULONG *pulHashLen)
{
	PRINT_LOG();
	*pulHashLen = 32;
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:8,代码来源:skf_dummy.c

示例14: SKF_OpenApplication

ULONG DEVAPI SKF_OpenApplication(DEVHANDLE hDev,
	LPSTR szAppName,
	HAPPLICATION *phApplication)
{
	PRINT_LOG();
	*phApplication = malloc(256);
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:8,代码来源:skf_dummy.c

示例15: SKF_GetFileInfo

ULONG DEVAPI SKF_GetFileInfo(HAPPLICATION hApplication,
	LPSTR szFileName,
	FILEATTRIBUTE *pFileInfo)
{
	PRINT_LOG();
	bzero(pFileInfo, sizeof(*pFileInfo));
	return SAR_OK;
}
开发者ID:LiTianjue,项目名称:GmSSL,代码行数:8,代码来源:skf_dummy.c


注:本文中的PRINT_LOG函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。