RSA BSAFE Micro Edition Suite

Streamlined security for mobile and embedded devices

Search  Print

Functions

This section outlines the functions provided for the management of user passwords.

Functions

int R_CDECL R_passwd_get_passwd (char *buf, int length, char *prompt, int verify)
 The type of password callback. More...

int R_CDECL R_passwd_set_cb (R_PASSWD_CB_T *cb)
 Sets the password callback function. More...

int R_CDECL R_passwd_get_cb (R_PASSWD_CB_T **cb)
 Returns the password callback function. More...


Function Documentation

int R_CDECL R_passwd_get_cb R_PASSWD_CB_T **    cb ;
 

Returns the password callback function.

Parameters:
cb [Out] The callback function.
Returns:
0 indicates success.
!=0 indicates error.
See also:
R_passwd_set_cb() and R_passwd_get_passwd().

int R_CDECL R_passwd_get_passwd char *    buf,
int    length,
char *    prompt,
int    verify
;
 

The type of password callback.

Parameters:
buf [Out] The password buffer reference.
length [In] The password buffer length.
prompt [In] The prompt text reference.
verify [In] The verification indicator.
Returns:
0 indicates success.
!=0 indicates error.
note.gif
If the value is not zero, the password will be verified.
See also:
R_passwd_get_cb() and R_passwd_set_cb().

int R_CDECL R_passwd_set_cb R_PASSWD_CB_T *    cb ;
 

Sets the password callback function.

Parameters:
cb [In] The callback function.
Returns:
0 indicates success.
!=0 indicates error.
See also:
R_passwd_get_cb() and R_passwd_get_passwd().
Samples:
frombuf.c.


Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 072-001001-2100-001-000 - 2.1