libsmb/pwd_cache.c

ソースコードを見る。

関数

static void pwd_init (struct pwd_info *pwd)
void pwd_set_cleartext (struct pwd_info *pwd, const char *clr)
void pwd_get_cleartext (struct pwd_info *pwd, fstring clr)


関数

static void pwd_init ( struct pwd_info pwd  )  [static]

pwd_cache.c27 行で定義されています。

参照先 pwd_info::null_pwdpwd_info::password.

参照元 pwd_set_cleartext().

00028 {
00029         memset((char *)pwd->password  , '\0', sizeof(pwd->password  ));
00030 
00031         pwd->null_pwd  = True; /* safest option... */
00032 }

void pwd_set_cleartext ( struct pwd_info pwd,
const char *  clr 
)

pwd_cache.c38 行で定義されています。

参照先 pwd_info::cleartextpwd_info::null_pwdpwd_info::passwordpwd_init().

参照元 cli_init_creds()cli_rpc_pipe_open_ntlmssp_internal().

00039 {
00040         pwd_init(pwd);
00041         if (clr) {
00042                 fstrcpy(pwd->password, clr);
00043                 pwd->null_pwd = False;
00044         } else {
00045                 pwd->null_pwd = True;
00046         }
00047 
00048         pwd->cleartext = True;
00049 }

void pwd_get_cleartext ( struct pwd_info pwd,
fstring  clr 
)

pwd_cache.c55 行で定義されています。

参照先 pwd_info::cleartextpwd_info::password.

参照元 cm_connect_lsa()cm_connect_sam().

00056 {
00057         if (pwd->cleartext)
00058                 fstrcpy(clr, pwd->password);
00059         else
00060                 clr[0] = 0;
00061 
00062 }


Sambaに対してSat Aug 29 21:23:49 2009に生成されました。  doxygen 1.4.7