X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keyid.c;h=2bec710026f85a92fe4ce6f8547700d6b998f3c1;hb=6b2875384c152353e94c2f40e7b58ea85d3f7503;hp=66713d1a11765e5441108a342d69e7f80d96afd5;hpb=394938c479925750ffe56c28d281945ba4003a14;p=onak.git diff --git a/keyid.c b/keyid.c index 66713d1..2bec710 100644 --- a/keyid.c +++ b/keyid.c @@ -8,7 +8,6 @@ #include -#include "assert.h" #include "keyid.h" #include "keystructs.h" #include "log.h" @@ -44,8 +43,8 @@ unsigned char *get_fingerprint(struct openpgp_packet *packet, unsigned char c; size_t modlen, explen; - assert(fingerprint != NULL); - assert(len != NULL); + log_assert(fingerprint != NULL); + log_assert(len != NULL); *len = 0; @@ -110,7 +109,7 @@ uint64_t get_packetid(struct openpgp_packet *packet) size_t length = 0; unsigned char buff[20]; - assert(packet != NULL); + log_assert(packet != NULL); switch (packet->data[0]) { case 2: