Re: Xcode: Mac OS X 10.3 and MD5 library
Re: Xcode: Mac OS X 10.3 and MD5 library
- Subject: Re: Xcode: Mac OS X 10.3 and MD5 library
- From: Malte Tancred <email@hidden>
- Date: Fri, 2 Jul 2004 14:49:31 +0200
On 2 jul 2004, at 13.34, <email@hidden> wrote:
What is the required library/framework for MD5?
I use the following MD5 functions from <sys/md5.h> :
MD5Init, MD5Final, MD5Update
I can compile but the linker doesn't find implementation of these
functions.
Which library/Framework contains these functions?
I have Mac OS X 10.3.
Why not use OpenSSL? If you do you need to add libcrypto
(/usr/lib/libcrypto.dylib) to your project and include <openssl/evp.h>.
I started a project some time ago where I wrote an Objective-C wrapper
around the OpenSSL digest functions. Not finished, may contain horrible
bugs etc, but I made it available for download nevertheless.
http://oops.se/~malte/software/scrap/ObjcMessageDigestTest.tar.gz
As you can see, the code uses the OpenSSL EVP interface which seems to
be the way to go nowadays. The code only does md5 at the moment, but
adding SHA1 and others is as you can see very easy.
To answer your question: I'm not sure what framwork or library you have
to add to make the linker happy. Someone else probably knows better.
Thank you.
PS: Why Apple doesn't give man pages for all functions? There is no
man page
for the MD5 functions!
man 3 EVP_DigestInit, if you go the OpenSSL route.
Regards,
Malte
--
Malte Tancred
Computer Programmer
Oops AB, http://oops.se/
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.