Re: pgcrypto: OpenSSL/DES cleanup

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Marko Kreen <marko(at)l-t(dot)ee>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: pgcrypto: OpenSSL/DES cleanup
Date: 2005-07-10 13:54:49
Message-ID: 200507101354.j6ADsn116816@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Patch applied. Thanks.

---------------------------------------------------------------------------

Marko Kreen wrote:
> As Kris Jurka found out, pgcrypto does not work with
> OpenSSL 0.9.6x. The DES functions use the older 'des_'
> API, but the newer 3DES functions use the 0.9.7x-only
> 'DES_' API.
>
> I think I just used /usr/include/openssl/des.h for reference
> when implementing them, and had upgraded OpenSSL in the
> meantime.
>
> Following patch converts DES also to newer API and provides
> compatibility functions for OpenSSL < 0.9.7.
>
> I chose this route because:
>
> - openssl.c uses few DES functions.
> - compatibility for old 'des_' API is going away at some point
> of time from OpenSSL.
> - as seen from macros, new API is saner
> - Thus pgcrypto supports any OpenSSL version from 0.9.5 to 1.0
>
> Tested with OpenSSL 0.9.6c and 0.9.7e.
>
> --
> marko
>
> PS. It's nice to see that the 'autoconfiguration' already pays
> back.
>

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2005-07-10 14:09:11 Re: User's exception plpgsql
Previous Message Marko Kreen 2005-07-10 09:08:36 Re: pgp encrypt v4