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_LEN (3)

NAME

pws_passwords_encode, pws_passwords_encodemulti, pws_passwords_len - Functions to encode a password string for storage

CONTENTS

Library
Synopsis
Description
See Also

LIBRARY

-lpwstor

SYNOPSIS


.In pwstor.h int
.Fo pws_passwords_encode char *indata char *outdata uint8_t use_b64
.Fc int
.Fo pws_passwords_encodemulti char *indata PasswordData *outdata
.Fc size_t
.Fo pws_passwords_len uint8_t use_b64
.Fc

DESCRIPTION

The function pws_passwords_encode This function returns zero to indicate success, or non-zero to indicate failure. The size of outdata should be equal to the return value of pws_passwords_len with an argument equal to the argument of use_b64 passed to pws_passwords_encode. That is, the Base64-encoding settings should be the same. indata must be the password which you wish to encode. This function returns zero to indicate success, or non-zero to indicate failure.

The function pws_passwords_encodemulti works in a similar fashion, except that instead of storing the data in a block of memory, it stores it in a valid PasswordData structure. This structure must be allocated by the caller. This function returns zero to indicate success, or non-zero to indicate failure.

The function pws_passwords_len returns a value equals to the size required to store a password string. If use_b64 is true, it returns the amount of space required to store a Base64-encoded password string encoded by libpwstor. If it is false, it returns the amount of space required to store a libpwstor encoded string which is not Base64 encoded.

SEE ALSO

pwstor(3), pws_passwords_check(3), pws_passwords_checkmulti(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.