このライブラリを入れればできるようです。
http://liboauth.sourceforge.net/index.html
http://liboauth.sourceforge.net/files.html