Re: crypt() function is not working.????



sethukr@xxxxxxxxx wrote:
I'm doing user authendication in my FTP server..

I used crypt() function to encrypt the user password. So that i
can compare with the encripted password in the database.

but, while executing the program, it shows an error as,

UNDEFINED REFERENCE TO CRYPT() FUNCTION.

Are you also linking against libcrypt.so, i.e. have '-lcrypt' in
the command you compile (link, to be precise) your program with?

But i included "unistd.h"..

I just found that on my system using (as required according to the
man page for crypt)

#define _XOPEN_SOURCE
#include <unistd.h>

or just (as according to SUSv3)

#include <unistd.h>

does _not_ make the compiler find the declaration of crypt(3), I
instead had to include <crypt.h>. Does anybody know what could be
the reasons for this?
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@xxxxxxxxxxx
\__________________________ http://toerring.de
.



Relevant Pages

  • Re: Command Button Wizard
    ... A2000 doesn't have the Macro Security issue, ... Compact the database: ... Decompile the database by entering something like this at the command prompt while Access is not running. ... Still in the code window, choose Compile from the Debug menu. ...
    (microsoft.public.access.formscoding)
  • Re: Me.ControlName = Something
    ... Steve, I think you will discover that my original diagnosis was probably correct, and that whatever is actually triggering the Form_BeforeUpdate event's firing is actually where the problem lies, not the Form_BeforeUpdate even itself. ... Compact the database to get rid of this junk: ... Still in the code window, choose Compile from the Debug menu. ... > Private Sub Form_BeforeUpdate ...
    (microsoft.public.access.formscoding)
  • Re: Forms not saving
    ... I must have had some VBA code attached to these forms somewhere along the way ... Make sure the folder where your database reside is added to the trusted ... Office Button | Access Options | Trust Center | Trust Center Settings ... Still in the code window, choose Compile from the Debug menu. ...
    (microsoft.public.access.forms)
  • Re: Error on any code in Subform
    ... Could be any of several things that has gone wrong, so here's a sequence that will address many possible problems and should get you going again. ... Compact the database: ... Open Access, and compact again. ... Still in the code window, choose Compile from the Debug menu. ...
    (microsoft.public.access.formscoding)
  • Re: MDE not possible ?
    ... First compile the MDB and make sure that there are no errors in the code ... before creating the MDE. ... Because of the methode used to compile the database a lot of references ... If your database is in Access 2000 file format (it should say on ...
    (microsoft.public.access.formscoding)