diff options
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 46860c614..a8b9b5bcf 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -769,6 +769,7 @@ extern void selinux_or_die(void); | |||
769 | extern int restricted_shell(const char *shell); | 769 | extern int restricted_shell(const char *shell); |
770 | extern void setup_environment(const char *shell, int loginshell, int changeenv, const struct passwd *pw); | 770 | extern void setup_environment(const char *shell, int loginshell, int changeenv, const struct passwd *pw); |
771 | extern int correct_password(const struct passwd *pw); | 771 | extern int correct_password(const struct passwd *pw); |
772 | /* Returns a ptr to static storage */ | ||
772 | extern char *pw_encrypt(const char *clear, const char *salt); | 773 | extern char *pw_encrypt(const char *clear, const char *salt); |
773 | extern int obscure(const char *old, const char *newval, const struct passwd *pwdp); | 774 | extern int obscure(const char *old, const char *newval, const struct passwd *pwdp); |
774 | extern int index_in_str_array(const char * const string_array[], const char *key); | 775 | extern int index_in_str_array(const char * const string_array[], const char *key); |
@@ -776,7 +777,18 @@ extern int index_in_substr_array(const char * const string_array[], const char * | |||
776 | extern void print_login_issue(const char *issue_file, const char *tty); | 777 | extern void print_login_issue(const char *issue_file, const char *tty); |
777 | extern void print_login_prompt(void); | 778 | extern void print_login_prompt(void); |
778 | 779 | ||
779 | extern void crypt_make_salt(char *p, int cnt); | 780 | /* rnd is additional random input. New one is returned. |
781 | * Useful if you call crypt_make_salt many times in a row: | ||
782 | * rnd = crypt_make_salt(buf1, 4, 0); | ||
783 | * rnd = crypt_make_salt(buf2, 4, rnd); | ||
784 | * rnd = crypt_make_salt(buf3, 4, rnd); | ||
785 | * (otherwise we risk having same salt generated) | ||
786 | */ | ||
787 | extern int crypt_make_salt(char *p, int cnt, int rnd); | ||
788 | |||
789 | /* Returns number of lines changed, or -1 on error */ | ||
790 | extern int update_passwd(const char *filename, const char *username, | ||
791 | const char *new_pw); | ||
780 | 792 | ||
781 | int get_terminal_width_height(const int fd, int *width, int *height); | 793 | int get_terminal_width_height(const int fd, int *width, int *height); |
782 | 794 | ||