~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

Viewing changes to contrib/pgcrypto/pgp-pubenc.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
27
 * SUCH DAMAGE.
28
28
 *
29
 
 * $PostgreSQL: pgsql/contrib/pgcrypto/pgp-pubenc.c,v 1.4 2005/10/15 02:49:06 momjian Exp $
 
29
 * $PostgreSQL: pgsql/contrib/pgcrypto/pgp-pubenc.c,v 1.5 2009/06/11 14:48:52 momjian Exp $
30
30
 */
31
31
#include "postgres.h"
32
32
 
86
86
}
87
87
 
88
88
static int
89
 
create_secmsg(PGP_Context * ctx, PGP_MPI ** msg_p, int full_bytes)
 
89
create_secmsg(PGP_Context *ctx, PGP_MPI **msg_p, int full_bytes)
90
90
{
91
91
        uint8      *secmsg;
92
92
        int                     res,
136
136
}
137
137
 
138
138
static int
139
 
encrypt_and_write_elgamal(PGP_Context * ctx, PGP_PubKey * pk, PushFilter * pkt)
 
139
encrypt_and_write_elgamal(PGP_Context *ctx, PGP_PubKey *pk, PushFilter *pkt)
140
140
{
141
141
        int                     res;
142
142
        PGP_MPI    *m = NULL,
167
167
}
168
168
 
169
169
static int
170
 
encrypt_and_write_rsa(PGP_Context * ctx, PGP_PubKey * pk, PushFilter * pkt)
 
170
encrypt_and_write_rsa(PGP_Context *ctx, PGP_PubKey *pk, PushFilter *pkt)
171
171
{
172
172
        int                     res;
173
173
        PGP_MPI    *m = NULL,
193
193
}
194
194
 
195
195
int
196
 
pgp_write_pubenc_sesskey(PGP_Context * ctx, PushFilter * dst)
 
196
pgp_write_pubenc_sesskey(PGP_Context *ctx, PushFilter *dst)
197
197
{
198
198
        int                     res;
199
199
        PGP_PubKey *pk = ctx->pub_key;