[Bug 2112] New: Android doesn't provide an implementation of crypt().

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sun Jun 2 05:28:50 EST 2013


https://bugzilla.mindrot.org/show_bug.cgi?id=2112

            Bug ID: 2112
           Summary: Android doesn't provide an implementation of crypt().
           Product: Portable OpenSSH
           Version: 6.2p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Build system
          Assignee: unassigned-bugs at mindrot.org
          Reporter: nathan.osman at gmail.com

Created attachment 2284
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2284&action=edit
Use OpenSSL DES_crypt function as a drop-in replacement for crypt().

The Android platform does not provide a crypt() function (crypt.h does
not exist) and therefore the following error is produced when
attempting to link xcrypt.o from the openbsd-compat library:

  libopenbsd-compat.a(xcrypt.o): in function xcrypt:xcrypt.c:78: error:
undefined reference to 'crypt'

However, OpenSSL includes an implementation of crypt in the libcrypto
library. I have attached a small patch that:

 - checks if crypt.h is available
 - if not, checks if openssl is available
 - uses a #define to point crypt to DES_crypt

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list