On 08/12/2011 11:12 AM, Andreas Niederl wrote:
Hi,
the SHA1_HashBuf function you are using originates from a non-public
internal API which gets packaged on Fedora but is not available at least
on Debian (Squeeze) and Gentoo.

Well, it's not a private API but it's part of freebl and packaged in FC or RHEL as nss-softokn-freebl(-devel). It still requires 'pkg-config nss-softokn' to provide the path to includes etc.. I could not find this package in Ubuntu, either. So that may also be a problem then for libtpms, which depends on freebl.
Could you please use HASH_HashBuf(HASH_AlgSHA1,...) which is available
on more platforms?
The attached patch would do this.
I'll use this API. This will make the patch a lot simpler since it will only require 'nss' to be available.
I'm not familiar with Fedora's nss packaging but maybe you can also drop
the check for nss-softokn in favor of nss with pkg-config.

Will do.
Thanks for reviewing / testing.

Regards,
    Stefan

Regards,
Andreas


Reply via email to