diff options
author | runge <runge@karlrunge.com> | 2009-12-05 14:31:31 -0500 |
---|---|---|
committer | runge <runge@karlrunge.com> | 2009-12-05 14:31:31 -0500 |
commit | 6153bd69835da0e7217ae844bdba4e2ba676f981 (patch) | |
tree | 270d264e229678c29fde567f2334eace65bda185 /x11vnc/unixpw.c | |
parent | 00a9a0ea4d0f642b34b4423ea867099b52edf078 (diff) | |
download | libvncserver-6153bd69835da0e7217ae844bdba4e2ba676f981.zip libvncserver-6153bd69835da0e7217ae844bdba4e2ba676f981.tar.gz |
Update java and scripts in classes/ssl. x11vnc: declare crypt() on all platforms. more wishes.
Diffstat (limited to 'x11vnc/unixpw.c')
-rw-r--r-- | x11vnc/unixpw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/x11vnc/unixpw.c b/x11vnc/unixpw.c index 92eec53..7f8f940 100644 --- a/x11vnc/unixpw.c +++ b/x11vnc/unixpw.c @@ -37,7 +37,9 @@ so, delete this exception statement from your version. extern int grantpt(int); extern int unlockpt(int); extern char *ptsname(int); -/* XXX remove need for this */ +#endif + +#ifndef DO_NOT_DECLARE_CRYPT extern char *crypt(const char*, const char *); #endif @@ -800,7 +802,7 @@ int crypt_verify(char *user, char *pass) { fprintf(stderr, "user='%s' pass='%s' realpw='%s' cr='%s'\n", user, pass, realpw, cr ? cr : "(null)"); } - if (cr == NULL) { + if (cr == NULL || cr[0] == '\0') { return 0; } if (!strcmp(cr, realpw)) { |