您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ sspi_SecureHandleGetUpperPointer函数代码示例

51自学网 2021-06-03 08:20:21
  C++
这篇教程C++ sspi_SecureHandleGetUpperPointer函数代码示例写得很实用,希望能帮到您。

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

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

示例1: winpr_EncryptMessage

static SECURITY_STATUS SEC_ENTRY winpr_EncryptMessage(PCtxtHandle phContext, ULONG fQOP,        PSecBufferDesc pMessage, ULONG MessageSeqNo){	char* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->EncryptMessage)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->EncryptMessage(phContext, fQOP, pMessage, MessageSeqNo);	if (status != SEC_E_OK)	{		WLog_ERR(TAG, "EncryptMessage status %s [0x%08"PRIX32"]",		         GetSecurityStatusString(status), status);	}	return status;}
开发者ID:FreeRDP,项目名称:FreeRDP,代码行数:29,


示例2: InitializeSecurityContextA

SECURITY_STATUS SEC_ENTRY InitializeSecurityContextA(PCredHandle phCredential, PCtxtHandle phContext,		SEC_CHAR* pszTargetName, ULONG fContextReq, ULONG Reserved1, ULONG TargetDataRep,		PSecBufferDesc pInput, ULONG Reserved2, PCtxtHandle phNewContext,		PSecBufferDesc pOutput, PULONG pfContextAttr, PTimeStamp ptsExpiry){	SEC_CHAR* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (SEC_CHAR*) sspi_SecureHandleGetUpperPointer(phCredential);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (table->InitializeSecurityContextA == NULL)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->InitializeSecurityContextA(phCredential, phContext,			pszTargetName, fContextReq, Reserved1, TargetDataRep,			pInput, Reserved2, phNewContext, pOutput, pfContextAttr, ptsExpiry);	return status;}
开发者ID:ayoubkiler,项目名称:FreeRDP,代码行数:28,


示例3: AcceptSecurityContext

SECURITY_STATUS SEC_ENTRY AcceptSecurityContext(PCredHandle phCredential, PCtxtHandle phContext,		PSecBufferDesc pInput, ULONG fContextReq, ULONG TargetDataRep, PCtxtHandle phNewContext,		PSecBufferDesc pOutput, PULONG pfContextAttr, PTimeStamp ptsTimeStamp){	char* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phCredential);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (table->AcceptSecurityContext == NULL)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->AcceptSecurityContext(phCredential, phContext, pInput, fContextReq,			TargetDataRep, phNewContext, pOutput, pfContextAttr, ptsTimeStamp);	return status;}
开发者ID:ayoubkiler,项目名称:FreeRDP,代码行数:26,


示例4: winpr_VerifySignature

static SECURITY_STATUS SEC_ENTRY winpr_VerifySignature(PCtxtHandle phContext,        PSecBufferDesc pMessage,        ULONG MessageSeqNo, PULONG pfQOP){	char* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->VerifySignature)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->VerifySignature(phContext, pMessage, MessageSeqNo, pfQOP);	if (IsSecurityStatusError(status))	{		WLog_WARN(TAG, "VerifySignature status %s [0x%08"PRIX32"]",		          GetSecurityStatusString(status), status);	}	return status;}
开发者ID:FreeRDP,项目名称:FreeRDP,代码行数:30,


示例5: winpr_ImportSecurityContextA

static SECURITY_STATUS SEC_ENTRY winpr_ImportSecurityContextA(SEC_CHAR* pszPackage,        PSecBuffer pPackedContext, HANDLE pToken, PCtxtHandle phContext){	char* Name = NULL;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->ImportSecurityContextA)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->ImportSecurityContextA(pszPackage, pPackedContext, pToken, phContext);	if (IsSecurityStatusError(status))	{		WLog_WARN(TAG, "ImportSecurityContextA status %s [0x%08"PRIX32"]",		          GetSecurityStatusString(status), status);	}	return status;}
开发者ID:FreeRDP,项目名称:FreeRDP,代码行数:29,


示例6: winpr_QueryCredentialsAttributesA

static SECURITY_STATUS SEC_ENTRY winpr_QueryCredentialsAttributesA(PCredHandle phCredential,        ULONG ulAttribute, void* pBuffer){	char* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phCredential);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->QueryCredentialsAttributesA)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->QueryCredentialsAttributesA(phCredential, ulAttribute, pBuffer);	if (IsSecurityStatusError(status))	{		WLog_WARN(TAG, "QueryCredentialsAttributesA status %s [0x%08"PRIX32"]",		          GetSecurityStatusString(status), status);	}	return status;}
开发者ID:FreeRDP,项目名称:FreeRDP,代码行数:29,


示例7: winpr_ExportSecurityContext

static SECURITY_STATUS SEC_ENTRY winpr_ExportSecurityContext(PCtxtHandle phContext, ULONG fFlags,        PSecBuffer pPackedContext, HANDLE* pToken){	SEC_CHAR* Name;	SECURITY_STATUS status;	SecurityFunctionTableW* table;	Name = (SEC_CHAR*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableWByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->ExportSecurityContext)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->ExportSecurityContext(phContext, fFlags, pPackedContext, pToken);	if (IsSecurityStatusError(status))	{		WLog_WARN(TAG, "ExportSecurityContext status %s [0x%08"PRIX32"]",		          GetSecurityStatusString(status), status);	}	return status;}
开发者ID:FreeRDP,项目名称:FreeRDP,代码行数:29,


示例8: winpr_FreeCredentialsHandle

static SECURITY_STATUS SEC_ENTRY winpr_FreeCredentialsHandle(PCredHandle phCredential){	char* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phCredential);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->FreeCredentialsHandle)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->FreeCredentialsHandle(phCredential);	if (IsSecurityStatusError(status))	{		WLog_WARN(TAG, "FreeCredentialsHandle status %s [0x%08"PRIX32"]",		          GetSecurityStatusString(status), status);	}	return status;}
开发者ID:FreeRDP,项目名称:FreeRDP,代码行数:28,


示例9: winpr_InitializeSecurityContextA

static SECURITY_STATUS SEC_ENTRY winpr_InitializeSecurityContextA(PCredHandle phCredential,        PCtxtHandle phContext,        SEC_CHAR* pszTargetName, ULONG fContextReq, ULONG Reserved1, ULONG TargetDataRep,        PSecBufferDesc pInput, ULONG Reserved2, PCtxtHandle phNewContext,        PSecBufferDesc pOutput, PULONG pfContextAttr, PTimeStamp ptsExpiry){	SEC_CHAR* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (SEC_CHAR*) sspi_SecureHandleGetUpperPointer(phCredential);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->InitializeSecurityContextA)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->InitializeSecurityContextA(phCredential, phContext,	         pszTargetName, fContextReq, Reserved1, TargetDataRep,	         pInput, Reserved2, phNewContext, pOutput, pfContextAttr, ptsExpiry);	if (IsSecurityStatusError(status))	{		WLog_WARN(TAG, "InitializeSecurityContextA status %s [0x%08"PRIX32"]",		          GetSecurityStatusString(status), status);	}	return status;}
开发者ID:FreeRDP,项目名称:FreeRDP,代码行数:34,


示例10: winpr_SetContextAttributesW

static SECURITY_STATUS SEC_ENTRY winpr_SetContextAttributesW(PCtxtHandle phContext,        ULONG ulAttribute,        void* pBuffer, ULONG cbBuffer){	SEC_CHAR* Name;	SECURITY_STATUS status;	SecurityFunctionTableW* table;	Name = (SEC_CHAR*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableWByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->SetContextAttributesW)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->SetContextAttributesW(phContext, ulAttribute, pBuffer, cbBuffer);	if (IsSecurityStatusError(status))	{		WLog_WARN(TAG, "SetContextAttributesW status %s [0x%08"PRIX32"]",		          GetSecurityStatusString(status), status);	}	return status;}
开发者ID:FreeRDP,项目名称:FreeRDP,代码行数:30,


示例11: winpr_ImpersonateSecurityContext

static SECURITY_STATUS SEC_ENTRY winpr_ImpersonateSecurityContext(PCtxtHandle phContext){	SEC_CHAR* Name;	SECURITY_STATUS status;	SecurityFunctionTableW* table;	Name = (SEC_CHAR*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableWByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->ImpersonateSecurityContext)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->ImpersonateSecurityContext(phContext);	if (IsSecurityStatusError(status))	{		WLog_WARN(TAG, "ImpersonateSecurityContext status %s [0x%08"PRIX32"]",		          GetSecurityStatusString(status), status);	}	return status;}
开发者ID:FreeRDP,项目名称:FreeRDP,代码行数:28,


示例12: winpr_CompleteAuthToken

static SECURITY_STATUS SEC_ENTRY winpr_CompleteAuthToken(PCtxtHandle phContext,        PSecBufferDesc pToken){	char* Name = NULL;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->CompleteAuthToken)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->CompleteAuthToken(phContext, pToken);	if (IsSecurityStatusError(status))	{		WLog_WARN(TAG, "CompleteAuthToken status %s [0x%08"PRIX32"]",		          GetSecurityStatusString(status), status);	}	return status;}
开发者ID:FreeRDP,项目名称:FreeRDP,代码行数:29,


示例13: winpr_AcceptSecurityContext

static SECURITY_STATUS SEC_ENTRY winpr_AcceptSecurityContext(PCredHandle phCredential,        PCtxtHandle phContext,        PSecBufferDesc pInput, ULONG fContextReq, ULONG TargetDataRep, PCtxtHandle phNewContext,        PSecBufferDesc pOutput, PULONG pfContextAttr, PTimeStamp ptsTimeStamp){	char* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phCredential);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->AcceptSecurityContext)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->AcceptSecurityContext(phCredential, phContext, pInput, fContextReq,	                                      TargetDataRep, phNewContext, pOutput, pfContextAttr, ptsTimeStamp);	if (IsSecurityStatusError(status))	{		WLog_WARN(TAG, "AcceptSecurityContext status %s [0x%08"PRIX32"]",		          GetSecurityStatusString(status), status);	}	return status;}
开发者ID:FreeRDP,项目名称:FreeRDP,代码行数:32,


示例14: QueryContextAttributesA

SECURITY_STATUS SEC_ENTRY QueryContextAttributesA(PCtxtHandle phContext, ULONG ulAttribute, void* pBuffer){	SEC_CHAR* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (SEC_CHAR*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (table->QueryContextAttributesA == NULL)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->QueryContextAttributesA(phContext, ulAttribute, pBuffer);	return status;}
开发者ID:ayoubkiler,项目名称:FreeRDP,代码行数:23,


示例15: QueryCredentialsAttributesW

SECURITY_STATUS SEC_ENTRY QueryCredentialsAttributesW(PCredHandle phCredential, ULONG ulAttribute, void* pBuffer){	SEC_WCHAR* Name;	SECURITY_STATUS status;	SecurityFunctionTableW* table;	Name = (SEC_WCHAR*) sspi_SecureHandleGetUpperPointer(phCredential);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableWByNameW(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (table->QueryCredentialsAttributesW == NULL)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->QueryCredentialsAttributesW(phCredential, ulAttribute, pBuffer);	return status;}
开发者ID:ayoubkiler,项目名称:FreeRDP,代码行数:23,


示例16: FreeCredentialsHandle

SECURITY_STATUS SEC_ENTRY FreeCredentialsHandle(PCredHandle phCredential){	char* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phCredential);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (table->FreeCredentialsHandle == NULL)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->FreeCredentialsHandle(phCredential);	return status;}
开发者ID:ayoubkiler,项目名称:FreeRDP,代码行数:23,


示例17: winpr_ImportSecurityContextA

SECURITY_STATUS SEC_ENTRY winpr_ImportSecurityContextA(SEC_CHAR* pszPackage, PSecBuffer pPackedContext, HANDLE pToken, PCtxtHandle phContext){	char* Name = NULL;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->ImportSecurityContextA)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->ImportSecurityContextA(pszPackage, pPackedContext, pToken, phContext);	return status;}
开发者ID:Auto-Droid,项目名称:FreeRDP,代码行数:23,


示例18: DeleteSecurityContext

SECURITY_STATUS SEC_ENTRY DeleteSecurityContext(PCtxtHandle phContext){	char* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (table->DeleteSecurityContext == NULL)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->DeleteSecurityContext(phContext);	return status;}
开发者ID:ayoubkiler,项目名称:FreeRDP,代码行数:23,


示例19: winpr_CompleteAuthToken

SECURITY_STATUS SEC_ENTRY winpr_CompleteAuthToken(PCtxtHandle phContext, PSecBufferDesc pToken){	char* Name = NULL;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->CompleteAuthToken)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->CompleteAuthToken(phContext, pToken);	return status;}
开发者ID:Auto-Droid,项目名称:FreeRDP,代码行数:23,


示例20: winpr_QueryCredentialsAttributesA

SECURITY_STATUS SEC_ENTRY winpr_QueryCredentialsAttributesA(PCredHandle phCredential, ULONG ulAttribute, void* pBuffer){	char* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phCredential);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->QueryCredentialsAttributesA)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->QueryCredentialsAttributesA(phCredential, ulAttribute, pBuffer);	return status;}
开发者ID:Auto-Droid,项目名称:FreeRDP,代码行数:23,


示例21: winpr_VerifySignature

SECURITY_STATUS SEC_ENTRY winpr_VerifySignature(PCtxtHandle phContext, PSecBufferDesc pMessage, ULONG MessageSeqNo, PULONG pfQOP){	char* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->VerifySignature)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->VerifySignature(phContext, pMessage, MessageSeqNo, pfQOP);	return status;}
开发者ID:Auto-Droid,项目名称:FreeRDP,代码行数:23,


示例22: winpr_ExportSecurityContext

SECURITY_STATUS SEC_ENTRY winpr_ExportSecurityContext(PCtxtHandle phContext, ULONG fFlags, PSecBuffer pPackedContext, HANDLE* pToken){	SEC_CHAR* Name;	SECURITY_STATUS status;	SecurityFunctionTableW* table;	Name = (SEC_CHAR*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableWByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->ExportSecurityContext)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->ExportSecurityContext(phContext, fFlags, pPackedContext, pToken);	return status;}
开发者ID:Auto-Droid,项目名称:FreeRDP,代码行数:23,


示例23: EncryptMessage

SECURITY_STATUS SEC_ENTRY EncryptMessage(PCtxtHandle phContext, ULONG fQOP, PSecBufferDesc pMessage, ULONG MessageSeqNo){	char* Name;	SECURITY_STATUS status;	SecurityFunctionTableA* table;	Name = (char*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableAByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (table->EncryptMessage == NULL)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->EncryptMessage(phContext, fQOP, pMessage, MessageSeqNo);	return status;}
开发者ID:ayoubkiler,项目名称:FreeRDP,代码行数:23,


示例24: winpr_RevertSecurityContext

SECURITY_STATUS SEC_ENTRY winpr_RevertSecurityContext(PCtxtHandle phContext){	SEC_CHAR* Name;	SECURITY_STATUS status;	SecurityFunctionTableW* table;	Name = (SEC_CHAR*) sspi_SecureHandleGetUpperPointer(phContext);	if (!Name)		return SEC_E_SECPKG_NOT_FOUND;	table = sspi_GetSecurityFunctionTableWByNameA(Name);	if (!table)		return SEC_E_SECPKG_NOT_FOUND;	if (!table->RevertSecurityContext)		return SEC_E_UNSUPPORTED_FUNCTION;	status = table->RevertSecurityContext(phContext);	return status;}
开发者ID:Auto-Droid,项目名称:FreeRDP,代码行数:23,



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


C++ ssprintf函数代码示例
C++ sspi_SecureHandleGetLowerPointer函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。