On Thu, Jan 04, 2001 at 11:24:07AM -0800, Fateh Kausar wrote:
> System = SunOS
> Release = 5.6
> KernelID = Generic_105181-19
> Machine = sun4u
> Compiler = gcc for sparc-sun-solaris2.6
>
> I have successfully installed OpenSSL and it is while compiling the code
> where I am making use of the SSL lib that I am getting problem. Lutz as do I
> think we cannot use the name of functions which are part of the standard
> library and in this case we have the same.Correct me if I am wrong.
I don't think we should run into trouble... The crypt() of the standard library
and the crypt() of the des-code must however give the same result, so it
should not be important which version (openssl or system) you are using.
I have just performed the following test:
- changed des.h (openssl 0.9.6) to
char *crypt(char *buf,char *salt);
(removed the "const" keywords, that made it compatible with my unistd.h)
- Created small test program (for compile only :-)
ws01 72: cat test.c
#include <unistd.h>
#include <des.h>
int main()
{
return 0;
}
- Then run gcc:
ws01 70: gcc -D_HPUX_SOURCE -Wall -Wshadow -I. -I/usr/local/ssl/include test.c
In file included from test.c:2:
des.h:193: conflicting types for `crypt'
/usr/include/sys/unistd.h:232: previous declaration of `crypt'
- This problem does not appear with the normal incarnation of des.h, as
in unistd.h:193:
extern char *crypt(const char *, const char *);
My platform is HP-UX 10.20, BTW. Can you reproduce your problem this way?
> I am not sure if the code will behave properly for I have commented out the
> declaration of crypt() in the des.h file.I am bracing myself up for some run
> time error!!
As you have commented out the prototype in des.h, but the one in unistd.h
is still available (and both crypt() functions should behave similar) you
should not see any problems.
Best regards,
Lutz
--
Lutz Jaenicke [EMAIL PROTECTED]
BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]