Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 13 Mar 2013 19:18:57 +0530
From: Sayantan Datta <std2048@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: gpg2john (was: Work needed before Jumbo-8)

Hi magnum,

On Wed, Mar 13, 2013 at 12:29 PM, magnum <john.magnum@...hmail.com> wrote:

> On 13 Mar, 2013, at 7:45 , magnum <john.magnum@...hmail.com> wrote:
> > basename(3) varies with platform. I think this is portable:
> >
> >       #include <libgen.h>
> >       #include <string.h>
> >
> >       char *login;
> >       int len;
> >
> >       login = basename(strdup(filename));
> >       if (!login || !*login)
> >               strcpy(login, filename);
> >       len = strlen(login) - 4;
> >       if (strcmp(&login[len], ".gpg" ||
> >           strcmp(&login[len], ".pgp")
> >               login[len] = 0;
>
> s/strcmp/!strcmp/g
>
> magnum
>

Why does the function cfg_get_param(SECTION_OPTIONS, SUBSECTION_OPENCL,
GWS_CONFIG) always returning null ? It is supposed to get the GWS_CONFIG
value from john.conf, right?

Regards,
Sayantan

Content of type "text/html" skipped

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ