Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 25 Feb 2011 03:58:30 -0800
From: Dhiru Kholia <dhiru.kholia@...il.com>
To: john-users@...ts.openwall.com
Cc: Erik Winkler <ewinkler@...ls.com>
Subject: Re: hmailserver patch

On Thu, Feb 24, 2011 at 11:06 AM, Erik Winkler <ewinkler@...ls.com> wrote:
> Could this patch be adapted to Sybase password hashes (http://marcellmajor.com/sybase_sha256.html)?

I am working on it.

> On Dec 19, 2010, at 5:42 PM, James Nobis wrote:
>> I wrote a quick patch to support http://www.hmailserver.com/ password
>> hashes and it is already available on the wiki

john-1.7.6-hmailserver-01.diff fails with :

$ ../run/john -test -format=hmailserver
Benchmarking: hmailserver [32/64]... FAILED (get_hash[0](0))

Compiler Warnings:
hmailserver_fmt.c:188:5: warning: passing argument 1 of ‘SHA256_Init’
from incompatible pointer type
/usr/include/openssl/sha.h:142:5: note: expected ‘struct SHA256_CTX *’
but argument is of type ‘struct SHA_CTX *’

......

Changing SHA_CTX to SHA256_CTX fixes the problem. The attached patch
applies cleanly on top of jumbo-12 patch and is tested on Arch Linux
64-bit and Ubuntu 10.10 32-bit systems. Will update wiki soon.

-- 
Cheers,
Dhiru

View attachment "john-1.7.6-hmailserver-02.diff" of type "text/x-patch" (8724 bytes)

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.