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.
Cheers, Matt On Wed, May 28, 2014 at 08:16:23PM +0000, Martin Osterloh wrote: > 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() > unfortunately. Is there any general consensus what people do in this case? So > far I am just returning "send_msg_userauth_success()" which is .... well not > that great. > > > Any input would be greatly appreciated! > > > Thanks, > > --Martin >
