forked from enlightenment/efl
* eet: Fix compilation when disabling signature, with gnutls enabled.
SVN revision: 41256
This commit is contained in:
parent
dbaeb5eaba
commit
0e2a57f8c8
|
@ -348,13 +348,14 @@ eet_identity_compute_sha1(const void *data_base, unsigned int data_length,
|
|||
{
|
||||
void *result;
|
||||
|
||||
#ifdef HAVE_GNUTLS
|
||||
#ifdef HAVE_SIGNATURE
|
||||
# ifdef HAVE_GNUTLS
|
||||
result = malloc(gcry_md_get_algo_dlen(GCRY_MD_SHA1));
|
||||
if (!result) return NULL;
|
||||
|
||||
gcry_md_hash_buffer(GCRY_MD_SHA1, result, data_base, data_length);
|
||||
if (sha1_length) *sha1_length = gcry_md_get_algo_dlen(GCRY_MD_SHA1);
|
||||
#else
|
||||
# else
|
||||
# ifdef HAVE_OPENSSL
|
||||
result = malloc(SHA_DIGEST_LENGTH);
|
||||
if (!result) return NULL;
|
||||
|
@ -364,6 +365,9 @@ eet_identity_compute_sha1(const void *data_base, unsigned int data_length,
|
|||
# else
|
||||
result = NULL;
|
||||
# endif
|
||||
# endif
|
||||
#else
|
||||
result = NULL;
|
||||
#endif
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue