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 72
[onak.git]
/
keyid.c
diff --git
a/keyid.c
b/keyid.c
index ced0c458997a79818518133067b645b8c851faec..0a61c1f91c926b8f838b42aba0e510b5b2928321 100644
(file)
--- a/
keyid.c
+++ b/
keyid.c
@@
-10,6
+10,7
@@
#include "keyid.h"
#include "keystructs.h"
#include "keyid.h"
#include "keystructs.h"
+#include "log.h"
#include "md5.h"
#include "sha.h"
#include "md5.h"
#include "sha.h"
@@
-93,7
+94,7
@@
unsigned char *get_fingerprint(struct openpgp_packet *packet,
memcpy(fingerprint, buff, *len);
break;
default:
memcpy(fingerprint, buff, *len);
break;
default:
-
fprintf(stderr, "Unknown key type: %d\n
",
+
logthing(LOGTHING_ERROR, "Unknown key type: %d
",
packet->data[0]);
}
packet->data[0]);
}
@@
-135,7
+136,8
@@
uint64_t get_packetid(struct openpgp_packet *packet)
keyid += packet->data[offset++];
}
} else {
keyid += packet->data[offset++];
}
} else {
- fputs("Type 2 or 3 key, but not RSA.\n", stderr);
+ logthing(LOGTHING_ERROR,
+ "Type 2 or 3 key, but not RSA.");
}
break;
case 4:
}
break;
case 4:
@@
-148,7
+150,7
@@
uint64_t get_packetid(struct openpgp_packet *packet)
break;
default:
break;
default:
-
fprintf(stderr, "Unknown key type: %d\n
",
+
logthing(LOGTHING_ERROR, "Unknown key type: %d
",
packet->data[0]);
}
packet->data[0]);
}