projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for key retrieval by SKS hash
[onak.git]
/
keydb_pg.c
diff --git
a/keydb_pg.c
b/keydb_pg.c
index 6b5d32055f82f426484164c86ce1fab846542062..0771317e747ab1c65a22e5ef71ddb2e7a936a903 100644
(file)
--- a/
keydb_pg.c
+++ b/
keydb_pg.c
@@
-36,7
+36,7
@@
static PGconn *dbconn = NULL;
/**
* keydb_fetchchar - Fetches a char from a file.
*/
/**
* keydb_fetchchar - Fetches a char from a file.
*/
-static int keydb_fetchchar(void *fd, size_t count,
unsigned char
*c)
+static int keydb_fetchchar(void *fd, size_t count,
void
*c)
{
return (!lo_read(dbconn, *(int *) fd, (char *) c, count));
}
{
return (!lo_read(dbconn, *(int *) fd, (char *) c, count));
}
@@
-44,7
+44,7
@@
static int keydb_fetchchar(void *fd, size_t count, unsigned char *c)
/**
* keydb_putchar - Puts a char to a file.
*/
/**
* keydb_putchar - Puts a char to a file.
*/
-static int keydb_putchar(void *fd, size_t count,
unsigned char
*c)
+static int keydb_putchar(void *fd, size_t count,
void
*c)
{
return !(lo_write(dbconn, *(int *) fd, (char *) c, count));
}
{
return !(lo_write(dbconn, *(int *) fd, (char *) c, count));
}
@@
-593,7
+593,6
@@
static int pg_iterate_keys(void (*iterfunc)(void *ctx,
struct openpgp_publickey *key = NULL;
PGresult *result = NULL;
char *oids = NULL;
struct openpgp_publickey *key = NULL;
PGresult *result = NULL;
char *oids = NULL;
- char statement[1024];
int fd = -1;
int i = 0;
int numkeys = 0;
int fd = -1;
int i = 0;
int numkeys = 0;