utils/passwd_util.c

ソースコードを見る。

関数

char * stdin_new_passwd (void)
char * get_pass (const char *prompt, BOOL stdin_get)


関数

char* stdin_new_passwd ( void   ) 

passwd_util.c34 行で定義されています。

参照先 len.

参照元 get_pass().

00035 {
00036         static fstring new_pw;
00037         size_t len;
00038 
00039         ZERO_ARRAY(new_pw);
00040 
00041         /*
00042          * if no error is reported from fgets() and string at least contains
00043          * the newline that ends the password, then replace the newline with
00044          * a null terminator.
00045          */
00046         if ( fgets(new_pw, sizeof(new_pw), stdin) != NULL) {
00047                 if ((len = strlen(new_pw)) > 0) {
00048                         if(new_pw[len-1] == '\n')
00049                                 new_pw[len - 1] = 0;
00050                 }
00051         }
00052         return(new_pw);
00053 }

char* get_pass ( const char *  prompt,
BOOL  stdin_get 
)

passwd_util.c60 行で定義されています。

参照先 smb_xstrdup()stdin_new_passwd().

参照元 net_changesecretpw()new_user()process_nonroot()process_root()prompt_for_new_password().

00061 {
00062         char *p;
00063         if (stdin_get) {
00064                 p = stdin_new_passwd();
00065         } else {
00066                 p = getpass( prompt);
00067         }
00068         return smb_xstrdup( p);
00069 }


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