Seems that this function isn't available in OpenSSL 1.1.0. On Windows at least. The function is enclosed in a "#if 0" in OpenSSL's <aes.h> and util/libeay.num also has this: AES_ctr128_encrypt 3216 NOEXIST::FUNCTION:
So should we make an exception for Windows in common/aes.c:
--- Git-latest/src/common/aes.c Mon Dec 05 16:54:55 2011 +++ src/common/aes.c Wed Dec 07 18:42:37 2011 @@ -17,7 +17,7 @@ #include <openssl/aes.h> #include <openssl/evp.h> #include <openssl/engine.h> -#if OPENSSL_VERSION_NUMBER >= 0x10000000L +#if (OPENSSL_VERSION_NUMBER >= 0x10000000L) && !defined(MS_WINDOWS) /* See comments about which counter mode implementation to use below. */ #include <openssl/modes.h> #define USE_OPENSSL_CTR
--gv
On Wed, Dec 7, 2011 at 12:51 PM, Gisle Vanem gvanem@broadpark.no wrote:
Seems that this function isn't available in OpenSSL 1.1.0. On Windows at least. The function is enclosed in a "#if 0" in OpenSSL's <aes.h> and util/libeay.num also has this: AES_ctr128_encrypt 3216 NOEXIST::FUNCTION:
So should we make an exception for Windows in common/aes.c:
It looks like you're using a version of openssl that isn't actually released. (There is no openssl 1.1.0 yet; only a series of not-yet-released development snapshots.)
(Also, what's with your fix? There's nothing windows-specific about the openssl 1.1.0 breakage here.)
"Nick Mathewson" nickm@alum.mit.edu wrote:
It looks like you're using a version of openssl that isn't actually released. (There is no openssl 1.1.0 yet; only a series of not-yet-released development snapshots.)
True when you mention it. I have a "work-in-progress" from: ftp://ftp.openssl.org/snapshot/openssl-SNAP-20111128.tar.gz
(Also, what's with your fix? There's nothing windows-specific about the openssl 1.1.0 breakage here.)
My bad. I just assumed I had a "offical" OpenSSL version with only a Windows breakage. Lets hope the function gets put back before the next release then.
--gv