Skip to content


Function : User Registration
SECVerifyPassword - Verifies an unencoded password against a digest password value.

#include <misc.h>

    WORD  wPasswordLen,
    BYTE *Password,
    WORD  wDigestLen,
    BYTE *Digest,
    DWORD  ReservedFlags,
    void *pReserved);
Description :

This function verifies an unencoded password against a digest password value. The unencoded password can be either an unencoded Internet Password or Notes ID Password. The digest password value can be either an Internet Password (more secure digest value) or a Password Digest. The unencoded Internet Password is verified against the Internet Password. The Notes ID Password is verified against the Password Digest.

Parameters : Input : wPasswordLen - Length of unencoded password to be verified.

Password - Unencoded password to be verified.

wDigestLen - Length of digest to be compared against.

Digest - Digest to be compared against.

ReservedFlags - Should be set to 0. Reserved.

pReserved - Should be set to NULL. Reserved.

Output : (routine) - Return status from this call -- indicates either success (the values compare) or what the error is. The return codes include:

NOERROR - The values compare ERR_SECURE_BADPASSWORD - Not verified (values do not compare) ERR_xxx - Errors returned by lower level functions. There are so many possible causes, that it is best to use the code in a call to OSLoadString and display/log the error for the user.

See Also : SECHashPassword