X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=armor.c;h=6d3fc138f6bee1445f9ac9fea4a0f20139723468;hb=ed841dbf668ab9b92868064f0baada6c922322a8;hp=e24787e122d878777a0e8ed88c4580c40796a785;hpb=6938a097fb6c1cda197b18f868808c860e832bb9;p=onak.git diff --git a/armor.c b/armor.c index e24787e..6d3fc13 100644 --- a/armor.c +++ b/armor.c @@ -4,15 +4,13 @@ * Jonathan McDowell * * Copyright 2002 Project Purple - * - * $Id: armor.c,v 1.8 2003/11/01 19:23:38 noodles Exp $ */ -#include #include #include "armor.h" #include "keystructs.h" +#include "log.h" #include "onak-conf.h" #include "parsekey.h" @@ -36,7 +34,7 @@ static unsigned char encode64(unsigned char c) { } else if (c == 63) { c = '/'; } else { - assert(c < 64); + log_assert(c < 64); } return c; @@ -144,7 +142,7 @@ static int armor_putchar_int(void *ctx, unsigned char c) unsigned char t; int i; - assert(ctx != NULL); + log_assert(ctx != NULL); state = (struct armor_context *) ctx; switch (state->curoctet++) { @@ -245,7 +243,7 @@ static int dearmor_getchar(void *ctx, unsigned char *c) unsigned char tmpc; int i; - assert(ctx != NULL); + log_assert(ctx != NULL); state = (struct dearmor_context *) ctx; *c = 0;