Re: pgsql: Rework SSL renegotiation code - Mailing list pgsql-committers

From Jaime Casanova
Subject Re: pgsql: Rework SSL renegotiation code
Date
Msg-id CAJKUy5ixCRO6WVooO2OtX88_ZZy4NRDyx=avfnu1RhyYpL7kmQ@mail.gmail.com
Whole thread Raw
In response to pgsql: Rework SSL renegotiation code  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: pgsql: Rework SSL renegotiation code  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Add use of asprintf()
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Add asprintf.c