X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keyid.c;h=8cf32ba0933533775c0219a0e21b30f45529976f;hb=836235113fd74ba178418530aa9eba4d452eb557;hp=ced0c458997a79818518133067b645b8c851faec;hpb=36eef8ab7ec7c90e97f2371d7ca8c80d52fd3e27;p=onak.git diff --git a/keyid.c b/keyid.c index ced0c45..8cf32ba 100644 --- a/keyid.c +++ b/keyid.c @@ -4,12 +4,15 @@ * Jonathan McDowell * * Copyright 2002 Project Purple + * + * $Id: keyid.c,v 1.7 2003/06/04 20:57:09 noodles Exp $ */ #include #include "keyid.h" #include "keystructs.h" +#include "log.h" #include "md5.h" #include "sha.h" @@ -93,7 +96,7 @@ unsigned char *get_fingerprint(struct openpgp_packet *packet, memcpy(fingerprint, buff, *len); break; default: - fprintf(stderr, "Unknown key type: %d\n", + logthing(LOGTHING_ERROR, "Unknown key type: %d", packet->data[0]); } @@ -135,7 +138,8 @@ uint64_t get_packetid(struct openpgp_packet *packet) 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: @@ -148,7 +152,7 @@ uint64_t get_packetid(struct openpgp_packet *packet) break; default: - fprintf(stderr, "Unknown key type: %d\n", + logthing(LOGTHING_ERROR, "Unknown key type: %d", packet->data[0]); }