projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cscvs to tla changeset 3
[onak.git]
/
keydb_file.c
diff --git
a/keydb_file.c
b/keydb_file.c
index 9784ecfcdcc93748b3d0d7eac2dc926dfbb7b97b..1d9b081e726ba38f3f52202ef5bb74c859171320 100644
(file)
--- a/
keydb_file.c
+++ b/
keydb_file.c
@@
-20,7
+20,7
@@
#include "keystructs.h"
#include "ll.h"
#include "mem.h"
#include "keystructs.h"
#include "ll.h"
#include "mem.h"
-#include "onak
_
conf.h"
+#include "onak
-
conf.h"
#include "parsekey.h"
/**
#include "parsekey.h"
/**
@@
-34,9
+34,9
@@
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,
unsigned char
c)
+static int keydb_putchar(void *fd,
size_t count, unsigned char *
c)
{
{
- return !(write( *(int *) fd,
&c, sizeof(c)
));
+ return !(write( *(int *) fd,
c, count
));
}
/**
}
/**
@@
-143,4
+143,5
@@
int delete_key(uint64_t keyid)
*/
#define NEED_KEYID2UID 1
#define NEED_GETKEYSIGS 1
*/
#define NEED_KEYID2UID 1
#define NEED_GETKEYSIGS 1
+#define NEED_GETFULLKEYID 1
#include "keydb.c"
#include "keydb.c"