Hi everybody,
I'm playing around with OAuth at the moment. I want to write a very simple Twitter program (just as an exercise as much as anything), and I need OAUTH to authenticate myself. I know there are other ways, but I want to be as close to the "official" way as possible, so it's less likely it'll break in the future.
When I use a liboauth function, I compile with -loauth (of course). I then get loads of undefined references to functions such as RAND_bytes.
Adding -lcurl and -lamisslauto does nothing to help these undefined references.
What am I missing? I can't find any information on how to link with these libraries to get a working oauth.
Thanks for any help!
For Qt ports who need ssl, I use that :
"-lssl -lcrypto"
Certainly not your need, but with luck...
You can get the OpenSSL libraries here:
http://os4depot.net/index.php?function=showfile&file=development/library/misc/libopenssl.lha
No idea why you tried with libcurl but the OpenSSL used in AmiSSL is ancient and not likely to get updated any time soon so better to use the newer version I linked to above.
I got it working with libopenssl. For some reason I can't connect to the twitter servers with https:// but it works with http://.
Thanks for the help!