http_auth_header(&hdrs, realm,
config.http_auth_algo == HTTP_AUTH_ALGO_SHA256 ?
"SHA-256" :
-#if OPENSSL_VERSION_NUMBER >= 0x1010101fL
+#if OPENSSL_VERSION_NUMBER >= 0x1010101fL && !defined(LIBRESSL_VERSION_NUMBER)
"SHA-512-256",
#else
"SHA-256",
char *
sha512sum256 ( const char *str, int lowercase )
{
-#if OPENSSL_VERSION_NUMBER >= 0x1010101fL
+#if OPENSSL_VERSION_NUMBER >= 0x1010101fL && !defined(LIBRESSL_VERSION_NUMBER)
return openssl_hash_hexstr(str, lowercase, EVP_sha512_256(), 32);
#else
return NULL;