Re: pgsql: Rework SSL renegotiation code

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: pgsql: Rework SSL renegotiation code
Дата
Msg-id CAJKUy5ixCRO6WVooO2OtX88_ZZy4NRDyx=avfnu1RhyYpL7kmQ@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Rework SSL renegotiation code  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: pgsql: Rework SSL renegotiation code
Список pgsql-committers
On Thu, Oct 10, 2013 at 9:47 PM, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> Rework SSL renegotiation code
>

Hi Álvaro,

Shouldn't this new variable be declared inside the #ifdef USE_SSL block?
My compiler is giving me a warning for the unused variable

--- a/src/backend/libpq/be-secure.c
+++ b/src/backend/libpq/be-secure.c
@@ -101,6 +101,9 @@ char       *ssl_crl_file;
  */
 int            ssl_renegotiation_limit;

+/* are we in the middle of a renegotiation? */
+static bool in_ssl_renegotiation = false;
+
 #ifdef USE_SSL
 static SSL_CTX *SSL_context = NULL;
 static bool ssl_loaded_verify_locations = false;


--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
Phone: +593 4 5107566         Cell: +593 987171157


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Add use of asprintf()
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Add asprintf.c