On Sat, Jan 23, 2010 at 02:54:14PM +0300, Paul Fertser wrote: > + if (!ok && (pubkey_dir = opendir(PUBKEY_DIR))) { > + while (!ok && (nextfile = readdir(pubkey_dir))) { > + if ((keyfile = fopen(nextfile->d_name, "rb"))) { Duh, of course it's wrong but i managed to have that key in the current directory during testing :( Amended version attached. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercerpav@gmail.com