projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Define OpenPGP constants and use them rather than magic numbers
[onak.git]
/
splitkeys.c
diff --git
a/splitkeys.c
b/splitkeys.c
index 4f6365596a2c3c1a692f3155adf5c61c5261f0da..86a83632a3baf786fac8b9cf2373cae03de041c0 100644
(file)
--- a/
splitkeys.c
+++ b/
splitkeys.c
@@
-4,8
+4,6
@@
* Jonathan McDowell <noodles@earth.li>
*
* Copyright 2003 Project Purple
* Jonathan McDowell <noodles@earth.li>
*
* Copyright 2003 Project Purple
- *
- * $Id: splitkeys.c,v 1.3 2003/10/03 23:34:06 noodles Exp $
*/
#include <fcntl.h>
*/
#include <fcntl.h>
@@
-19,6
+17,7
@@
#include "log.h"
#include "mem.h"
#include "onak-conf.h"
#include "log.h"
#include "mem.h"
#include "onak-conf.h"
+#include "openpgp.h"
#include "parsekey.h"
int main(int argc, char *argv[])
#include "parsekey.h"
int main(int argc, char *argv[])
@@
-42,7
+41,7
@@
int main(int argc, char *argv[])
}
}
}
}
- readconfig();
+ readconfig(
NULL
);
initlogthing("splitkeys", config.logfile);
do {
initlogthing("splitkeys", config.logfile);
do {
@@
-54,7
+53,8
@@
int main(int argc, char *argv[])
tmp = list_end;
list_end = list_end->next;
if (list_end->next == NULL &&
tmp = list_end;
list_end = list_end->next;
if (list_end->next == NULL &&
- list_end->packet->tag == 6) {
+ list_end->packet->tag ==
+ OPENPGP_PACKET_PUBLICKEY) {
tmp->next = NULL;
}
}
tmp->next = NULL;
}
}