#15 new
Marcelo Barros

HMAC(SHA1) Not support on Linux ?

Reported by Marcelo Barros | September 18th, 2010 @ 05:16 PM

I have tried to create an oauth based program without success. My setup:

  • Ubuntu Linux 10.04
  • Qt version 4.6.2
  • OAuth from git, compiled and installed (no errors)
  • libqca2-dev (2.0.2-1ubuntu2) and libgca2-plugin-ossl (0.1~20070904-4build1) from standard Ubuntu packages

My program compiles but it is closed when I tried to use QOAuth::HMAC_SHA1 in qoauth.requestToken:

Starting /home/marcelo/Desktop/qtprojects/oauth_demo-build-desktop/oauth_demo...
HMAC(SHA1) is not supported!
The program has unexpectedly finished.

Any tips ?

Thanks a lot in advance.

Comments and changes to this ticket

  • ayoy

    ayoy September 18th, 2010 @ 05:47 PM

    This is related to QCA failing to find ossl plugin. I have no idea why it happens since you have libqca2-plugin-ossl installed.

    I'll install Ubuntu 10.04 in a virtual machine and try to reproduce your issue.

    One question before I start - are you using Qt from Ubuntu, or it's a custom Qt installation (e.g. Qt SDK)?

  • Marcelo Barros

    Marcelo Barros September 19th, 2010 @ 07:57 PM

    Thanks for your quick feedback. I am using Qt SDK from Nokia, installed from a binary package.
    I found people that solved the problem only installing the ossl plugin. As you said some problem when loading it may be the reason. I will try to check the qca source code.

    Thanks
    Marcelo Barros

  • ayoy

    ayoy September 19th, 2010 @ 08:41 PM

    I'd say that when you install libqca2 and libqca2-plugin-ossl, they're not gonna work with custom Qt installation, as they install prf file and plugins to /usr and so the custom Qt installation can't find the plugins.

    What I'd try is:

    1. to compile QCA and ossl plugin from source
    2. to switch to in-system Qt

    second option is pretty easy and everything should work. However if you'd like to proceed with Qt SDK, I'd encourage you to compile QCA and the plugin from source. Just download the tarballs from http://delta.affinix.com/qca/, unpack them, make sure that a qmake call in the console invokes qmake from Qt SDK (fix your PATH if needed), run ./configure, make, sudo make install on QCA and the ossl plugin. If needed, adjust prefix to /usr/local or something like this, to keep your system untouched.

    This should work, plugins should be installed to the correct path so that Qt SDK finds them and QOAuth should work then.

  • Marcelo Barros

    Marcelo Barros September 19th, 2010 @ 08:44 PM

    Great, I am trying the option 1 right now. Feedback soon. Thanks a lot !

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

QOAuth is a Qt-based C++ library providing means for communicating with services supporting OAuth authorization scheme.

Shared Ticket Bins

People watching this ticket

Pages