GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PWS_PASSWORDS_CHECKMULTI (3)

NAME

pws_passwords_check, pws_passwords_checkmulti - Functions to check a given password against an encoded password

CONTENTS

Library
Synopsis
Description
See Also

LIBRARY

-lpwstor

SYNOPSIS


.In pwstor.h int
.Fo pws_passwords_check char *chk const char *real uint8_t is_b64
.Fc int
.Fo pws_passwords_checkmulti char *chk PasswordData *real
.Fc

DESCRIPTION

The function pws_passwords_check will check a given clear-text password stored in chk against a string encoded by libpwstor which is stored in real. If real is Base64 encoded, then is_b64 should be set to true. If not, then is_b64 should be false. This function will return 0 to indicate a non-match, 1 to indicate that the passwords do indeed match, and <0 to indicate a failure. In case of failure, errno can be examined to assist in determining what failed. The EINVAL error indicates that one of the arguments passed to pws_passwords_check was not in a valid format.

The function pws_passwords_checkmulti returns the same codes as pws_passwords_check but expects the real argument to be a pointer to a valid PasswordData structure.

SEE ALSO

pwstor(3), pws_passwords_encode(3), pws_passwords_encodemulti(3), pws_passwords_converttomulti(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.