* Jonathan McDowell <noodles@earth.li>
*
* Copyright 2002 Project Purple
+ *
+ * $Id: keyid.c,v 1.7 2003/06/04 20:57:09 noodles Exp $
*/
#include <sys/types.h>
#include "keyid.h"
#include "keystructs.h"
+#include "log.h"
#include "md5.h"
#include "sha.h"
memcpy(fingerprint, buff, *len);
break;
default:
- fprintf(stderr, "Unknown key type: %d\n",
+ logthing(LOGTHING_ERROR, "Unknown key type: %d",
packet->data[0]);
}
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;
default:
- fprintf(stderr, "Unknown key type: %d\n",
+ logthing(LOGTHING_ERROR, "Unknown key type: %d",
packet->data[0]);
}