Using OAUTH and AmiSSL?

4 posts / 0 new
Last post
Spirantho
Spirantho's picture
Offline
Last seen: 10 years 7 months ago
Joined: 2013-03-19 12:12
Using OAUTH and AmiSSL?

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!

zzd10h
zzd10h's picture
Offline
Last seen: 7 years 2 weeks ago
Joined: 2012-08-24 20:56
For Qt ports who need ssl, I

For Qt ports who need ssl, I use that :
"-lssl -lcrypto"

Certainly not your need, but with luck...

salass00
salass00's picture
Offline
Last seen: 6 months 1 week ago
Joined: 2011-02-03 11:27
You can get the OpenSSL

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.

Spirantho
Spirantho's picture
Offline
Last seen: 10 years 7 months ago
Joined: 2013-03-19 12:12
I got it working with

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!

Log in or register to post comments