This topic has not yet been rated - Rate this topic

PFXVerifyPassword function

Applies to: desktop apps only

The PFXVerifyPassword function attempts to decode the outer layer of a BLOB as a PFX packet and to decrypt it with the given password. No data from the BLOB is imported.

Syntax

BOOL WINAPI PFXVerifyPassword(
  __in  CRYPT_DATA_BLOB *pPFX,
  __in  LPCWSTR szPassword,
  __in  DWORD dwFlags
);

Parameters

pPFX [in]

A pointer to a CRYPT_DATA_BLOB structure that the function will attempt to decode as a PFX packet.

szPassword [in]

String password to be checked. For this function to succeed, this password must be exactly the same as the password used to encrypt the packet. When you have finished using the password, clear the password from memory by calling the SecureZeroMemory function. For more information about protecting passwords, see Handling Passwords.

dwFlags [in]

Reserved for future use.

Return value

The function return TRUE if the password appears correct; otherwise, it returns FALSE.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wincrypt.h

Library

Crypt32.lib

DLL

Crypt32.dll

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ