search for: do_md5_check

Displaying 1 result from an estimated 1 matches for "do_md5_check".

2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
...I FLAC__bool FLAC__stream_decoder_finish(FLAC__StreamDecoder *decoder) /* see the comment in FLAC__seekable_stream_decoder_reset() as to why we * always call FLAC__MD5Final() */ +#if defined(HAVE_OPENSSL) + /* decoder->private_->computed_md5sum is NULL when decoder->private_->do_md5_checking == false + * that causes assertion failure crash in openSSL. + */ + if(decoder->private_->do_md5_checking) { + md5_failed = (EVP_DigestFinal_ex(&decoder->private_->md5context, decoder->private_->computed_md5sum, NULL) == 0); + } +#else FLAC__MD5Final(de...