pw_encrypt() system call

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am trying to compile some code on RedHat Linux.

uname -a
Linux devredhat2 2.6.9-42.0.3.

Can somebody tell me which library I can link my "C" code with that
will resolve the system call to pw_encrypt(). If this system call is
now obsolete, can you please suggest a replacement call that will do
something similiar,possible crypt()?

Thanks in advance to all that answer this post

Re: pw_encrypt() system call

Stu wrote:
Quoted text here. Click to load it

pw_encrypt() is not now and has never been a system call. AFAICT,
pw_encrypt() is/was a function offered by the libshadow.a library

The standard password encryption function is crypt(3)



Re: pw_encrypt() system call

Lew Pitcher wrote:
Quoted text here. Click to load it

I did a find from the root directory and only found one version of
libshadow.a and it was located in /usr/X11R6/lib/modules/libshadow.a
and this did not appear to resolve my  symbol pw_encrypt. Do I need to
install some other package to get the right version of the library?

Secondly, what is the difference between pw_encrypt and crypt are they
inter-changable. That is can I  replace the call to pw_encrypt with a
call to crypt and would everything work as is?

Thanks in advance for you help

Site Timeline