$OpenBSD: patch-src_mosquitto_passwd_c,v 1.2 2018/04/20 17:41:59 jasper Exp $ Fix build with LibreSSL, from gentoo-overlay https://github.com/stintel/gentoo-overlay/tree/master/app-misc/mosquitto/files Index: src/mosquitto_passwd.c --- src/mosquitto_passwd.c.orig +++ src/mosquitto_passwd.c @@ -91,7 +91,7 @@ int output_new_password(FILE *fptr, const char *userna unsigned char hash[EVP_MAX_MD_SIZE]; unsigned int hash_len; const EVP_MD *digest; -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#ifndef HAVE_OPENSSL_OPAQUE_STRUCTS EVP_MD_CTX context; #else EVP_MD_CTX *context; @@ -118,7 +118,7 @@ int output_new_password(FILE *fptr, const char *userna return 1; } -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#ifndef HAVE_OPENSSL_OPAQUE_STRUCTS EVP_MD_CTX_init(&context); EVP_DigestInit_ex(&context, digest, NULL); EVP_DigestUpdate(&context, password, strlen(password));