X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Flibhashkit%2Fhashkit.cc;h=d15d73725d167aeaa6e1db74f15c138ef22c57e1;hb=b7f446e55146456e368c3926347f4c771afcea8c;hp=46cf6368a0dc747d25f2ec4647c9da5f23b557c4;hpb=2aab18117a2b078dd0eb366f3766a1fef06da695;p=awesomized%2Flibmemcached diff --git a/src/libhashkit/hashkit.cc b/src/libhashkit/hashkit.cc index 46cf6368..d15d7372 100644 --- a/src/libhashkit/hashkit.cc +++ b/src/libhashkit/hashkit.cc @@ -15,7 +15,7 @@ #include "libhashkit/common.h" -#ifdef WITH_OPENSSL +#ifdef HAVE_OPENSSL_CRYPTO # include #endif @@ -56,7 +56,7 @@ hashkit_st *hashkit_create(hashkit_st *self) { return self; } -#ifdef WITH_OPENSSL +#ifdef HAVE_OPENSSL_CRYPTO static void cryptographic_context_free(encryption_context_t *context) { EVP_CIPHER_CTX_free(context->encryption_context); EVP_CIPHER_CTX_free(context->decryption_context); @@ -65,7 +65,7 @@ static void cryptographic_context_free(encryption_context_t *context) { #endif void hashkit_free(hashkit_st *self) { -#ifdef WITH_OPENSSL +#ifdef HAVE_OPENSSL_CRYPTO if (self and self->_cryptographic_context) { cryptographic_context_free((encryption_context_t *)self->_cryptographic_context); self->_cryptographic_context = NULL; @@ -98,7 +98,7 @@ hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *source) { destination->base_hash = source->base_hash; destination->distribution_hash = source->distribution_hash; destination->flags = source->flags; -#ifdef WITH_OPENSSL +#ifdef HAVE_OPENSSL_CRYPTO if (destination->_cryptographic_context) { cryptographic_context_free((encryption_context_t *)destination->_cryptographic_context); destination->_cryptographic_context = NULL;