Dropbear and crypt() implementation

2014-05-28 Thread Martin Osterloh
Hi All, I am in the process of porting dropbear to my own operating system (x86 64 architecture). So far, I am happy with the progress. However, I just discovered that svr-authpasswd.c uses crypt(). I am using newlib as a general C library. I am not being provided with crypt()

Re: Dropbear and crypt() implementation

2014-05-28 Thread Matt Johnston
Hi Martin, How does your operating system authenticate users? crypt() is kind of specific to how many unix-style systems store passwords in /etc/passwd or /etc/shadow. You could modify your svr-authpasswd.c to compare the hash of password with your stored hashed password, or something similar.