Thread: Typo in backend/libpq/be-secure.c

Typo in backend/libpq/be-secure.c

From
Jon Jensen
Date:
PostgreSQL folks,

I can't get SSL connections to work at all with the latest checkout from
CVS HEAD. The culprit appears to be a typo as seen in patch below.

Jon


Index: backend/libpq/be-secure.c
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/backend/libpq/be-secure.c,v
retrieving revision 1.34
diff -u -r1.34 be-secure.c
--- backend/libpq/be-secure.c    11 Jun 2003 15:05:50 -0000    1.34
+++ backend/libpq/be-secure.c    1 Jul 2003 01:07:28 -0000
@@ -643,7 +643,7 @@
     SSL_CTX_set_options(SSL_context, SSL_OP_SINGLE_DH_USE | SSL_OP_NO_SSLv2);

     /* setup the allowed cipher list */
-    if (SSL_CTX_set_cipher_list(SSL_context, "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGH") != 1)
+    if (SSL_CTX_set_cipher_list(SSL_context, "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH") != 1)
     {
         postmaster_error("unable to set the cipher list (no valid ciphers available)");
         ExitPostmaster(1);

Re: Typo in backend/libpq/be-secure.c

From
Sean Chittenden
Date:
> I can't get SSL connections to work at all with the latest checkout
> from CVS HEAD. The culprit appears to be a typo as seen in patch
> below.

*blush* This is indeed a type-o in the patch I submitted, could
someone apply the below patch from Jon?

Pointy hat to: seanc

-sc

> Index: backend/libpq/be-secure.c
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/src/backend/libpq/be-secure.c,v
> retrieving revision 1.34
> diff -u -r1.34 be-secure.c
> --- backend/libpq/be-secure.c    11 Jun 2003 15:05:50 -0000    1.34
> +++ backend/libpq/be-secure.c    1 Jul 2003 01:07:28 -0000
> @@ -643,7 +643,7 @@
>      SSL_CTX_set_options(SSL_context, SSL_OP_SINGLE_DH_USE | SSL_OP_NO_SSLv2);
>
>      /* setup the allowed cipher list */
> -    if (SSL_CTX_set_cipher_list(SSL_context, "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGH") != 1)
> +    if (SSL_CTX_set_cipher_list(SSL_context, "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH") != 1)
>      {
>          postmaster_error("unable to set the cipher list (no valid ciphers available)");
>          ExitPostmaster(1);


--
Sean Chittenden

Re: Typo in backend/libpq/be-secure.c

From
Tom Lane
Date:
Sean Chittenden <sean@chittenden.org> writes:
>> I can't get SSL connections to work at all with the latest checkout
>> from CVS HEAD. The culprit appears to be a typo as seen in patch
>> below.

> *blush* This is indeed a type-o in the patch I submitted, could
> someone apply the below patch from Jon?

Applied.

            regards, tom lane