head 1.2; access; symbols pkgsrc-2016Q2:1.1.0.4 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.2 pkgsrc-2016Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2016.07.20.11.58.40; author nros; state dead; branches; next 1.1; commitid Uk5Cfoc7k3Pbt3fz; 1.1 date 2016.03.09.21.32.41; author nros; state Exp; branches; next ; commitid RIE38PJodwQeV0Yy; desc @@ 1.2 log @Update Qore to version 0.8.12. Qore 0.8.12 is a major new release with many new features and hundreds of bug fixes as well as packaging fixes. Highlights include: * The most significant innovation in this release comes in the form of support for Prompt Collection * Support for Bulk DML (large volume SQL operations in one server round-trip) in the Mapper, TableMapper, SqlUtil and the new BulkSqlUtil modules * Standardized function naming convention, many significant design and implementation fixes and improvements * Numerous new functions, methods, constants, operators, and user modules * Hundreds of bug fixes @ text @$NetBSD: patch-lib_ql__crypto.qpp,v 1.1 2016/03/09 21:32:41 nros Exp $ * Fix build with open/libressl releases without evp_SHA https://github.com/qorelanguage/qore/commit/fc181070ad1afbf49af2e8fc968b97328d690a86 --- lib/ql_crypto.qpp.orig 2016-03-09 20:39:25.000000000 +0000 +++ lib/ql_crypto.qpp @@@@ -1130,11 +1130,16 @@@@ my string $str = SHA("hello"); returns " @@see SHA_bin() */ string SHA(data[doc] data) [flags=RET_VALUE_ONLY] { +#ifdef HAVE_OPENSSL_SHA DigestHelper dh(args); if (dh.doDigest(SHA_ERR, EVP_sha(), xsink)) return 0; return dh.getString(); +#else + missing_openssl_feature("SHA", xsink); + return 0; +#endif } //! Returns the SHA1 message digest of the supplied argument as a hex string @@@@ -1492,11 +1497,16 @@@@ my binary $bin = SHA_bin("hello"); @@see SHA() */ binary SHA_bin(data[doc] data) [flags=RET_VALUE_ONLY] { +#ifdef HAVE_OPENSSL_SHA DigestHelper dh(args); if (dh.doDigest(SHA_ERR, EVP_sha(), xsink)) return 0; return dh.getBinary(); +#else + missing_openssl_feature("SHA", xsink); + return 0; +#endif } //! Returns the SHA1 message digest of the supplied argument as a binary object @@@@ -1874,11 +1884,17 @@@@ my string $str = SHA_hmac("Hello There T @@throw SHA-HMAC-ERROR error calculating digest (should not normally happen) */ string SHA_hmac(data[doc] data, string key) { +#ifdef HAVE_OPENSSL_SHA HMACHelper dh(args); if (dh.doHMAC("SHA-HMAC-ERROR", EVP_sha(), key, xsink)) return 0; return dh.getString(); +#else + (void)key; + missing_openssl_feature("SHA", xsink); + return 0; +#endif } //! Returns the SHA1 based HMAC of the supplied argument as a hex string @ 1.1 log @Update qore to build with open/libressl versions that miss evp_SHA. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @