pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX
Дата
Msg-id 20161201014826.ic72tfkahmevpwz7@alap3.anarazel.de
обсуждение исходный текст
Ответы Re: pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX  (Andreas Karlsson <andreas@proxel.se>)
Список pgsql-hackers
Hi,

It appears openssl has removed the public definition of EVP_CIPHER_CTX
leading to pgcrypto failing with:

/home/andres/src/postgresql/contrib/pgcrypto/openssl.c:253:17: error: field ‘evp_ctx’ has incomplete type
EVP_CIPHER_CTXevp_ctx;                ^~~~~~~
 
/home/andres/src/postgresql/contrib/pgcrypto/openssl.c: In function ‘bf_check_supported_key_len’:
/home/andres/src/postgresql/contrib/pgcrypto/openssl.c:373:17: error: storage size of ‘evp_ctx’ isn’t known
EVP_CIPHER_CTXevp_ctx;                ^~~~~~~
 
/home/andres/src/postgresql/contrib/pgcrypto/openssl.c:373:17: warning: unused variable ‘evp_ctx’ [-Wunused-variable]
make[3]: *** [openssl.o] Error 1

seems we need to allocate using EVP_CIPHER_CTX_new() instead.

Am I the only one seing this?

It looks like EVP_CIPHER_CTX_new() has been available for a long time:
commit b40228a61d2f9b40fa6a834c9beaa8ee9dc490c1
Author: Dr. Stephen Henson <steve@openssl.org>
Date:   2005-12-02 13:46:39 +0000
   New functions to support opaque EVP_CIPHER_CTX handling.

Greetings,

Andres Freund



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: Minor correction in alter_table.sgml
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Improve hash-agg performance