[Pkg-openssl-devel] Bug#670581: Bug#670581: openssl: ntpd segfaults with error 4 in libcrypto.so.0.9.8 on Debian squeeze

Kurt Roeckx kurt at roeckx.be
Tue May 1 09:40:58 UTC 2012


On Mon, Apr 30, 2012 at 05:25:44PM -0700, Andris Kalnozols wrote:
> 
> In `digest.c', the failing line of code seems to involve a function pointer
> if I'm interpreting the EVP_MD structure correctly from `crypto/evp/evp.h:
> 
>   int (*update)(EVP_MD_CTX *ctx,const void *data,size_t count);
> 
> I made a guess that *update pointed to HASH_UPDATE() in `crypto/md32_common.h'
> and put in some debugging statements there.  However, when running the NTP daemon
> in the foreground, there was no output from any of the HASH_UPDATE() printf()
> statements prior to the segfault.

It should be using the update function from the struct it gets
with EVP_get_digestbynid(crypto_nid), which will be a static
function in openssl.

It's all making very little sense to me.


Kurt






More information about the Pkg-openssl-devel mailing list