X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=armor.c;h=8d57c60e05a219da56ed6928e99a6933273bb2eb;hb=0c120d1895d25b59abe338862189be1b87447569;hp=230510a24ed7fbaecbb3c4e919fa56d37a6b638f;hpb=d38e1f468376f8b19b208f2da4d20cb2919875dd;p=onak.git diff --git a/armor.c b/armor.c index 230510a..8d57c60 100644 --- a/armor.c +++ b/armor.c @@ -22,8 +22,6 @@ #include "armor.h" #include "keystructs.h" -#include "log.h" -#include "onak-conf.h" #include "parsekey.h" #include "version.h" @@ -56,7 +54,7 @@ static unsigned char encode64(unsigned char c) { } else if (c == 63) { c = '/'; } else { - log_assert(c < 64); + c = '?'; } return c; @@ -165,7 +163,6 @@ static int armor_putchar_int(void *ctx, unsigned char c) unsigned char t; int i; - log_assert(ctx != NULL); state = (struct armor_context *) ctx; switch (state->curoctet++) { @@ -210,7 +207,6 @@ static int armor_putchar(void *ctx, size_t count, void *c) { int i; - log_assert(c != NULL); for (i = 0; i < count; i++) { armor_putchar_int(ctx, ((char *) c)[i]); @@ -269,7 +265,6 @@ static int dearmor_getchar(void *ctx, unsigned char *c) unsigned char tmpc; int i; - log_assert(ctx != NULL); state = (struct dearmor_context *) ctx; *c = 0;