pgcrypto: Fix RSA password-protected keys

From: Marko Kreen <markokr(at)gmail(dot)com>
To: Postgres Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: pgcrypto: Fix RSA password-protected keys
Date: 2013-05-06 19:39:40
Message-ID: 20130506193940.GA3078@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

RSA secret key extraction code uses wrong variable so
that decryption is skipped and only secret keys without
password work for pgp_pub_decrypt().

Attached patch fixes it and also adds regtest.

Please apply to all branches.

Reported-by: Keith Fiske <keith(at)omniti(dot)com>

--
marko

Attachment Content-Type Size
pgcrypto-rsa-seckey.diff text/x-diff 10.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2013-05-06 19:41:11 Re: [PATCH] add long options to pgbench (submission 1)
Previous Message Robert Haas 2013-05-06 19:33:51 Re: Recovery target 'immediate'