* Copyright 2002 Project Purple
*/
-#include <assert.h>
#include <stdlib.h>
#include "armor.h"
+#include "config.h"
#include "keystructs.h"
+#include "log.h"
#include "onak-conf.h"
#include "parsekey.h"
} else if (c == 63) {
c = '/';
} else {
- assert(c < 64);
+ log_assert(c < 64);
}
return c;
unsigned char t;
int i;
- assert(ctx != NULL);
+ log_assert(ctx != NULL);
state = (struct armor_context *) ctx;
switch (state->curoctet++) {
{
int i;
+ log_assert(c != NULL);
+
for (i = 0; i < count; i++) {
armor_putchar_int(ctx, c[i]);
}
unsigned char tmpc;
int i;
- assert(ctx != NULL);
+ log_assert(ctx != NULL);
state = (struct dearmor_context *) ctx;
*c = 0;
*/
putchar_func(ctx, sizeof("-----BEGIN PGP PUBLIC KEY BLOCK-----\n") - 1,
(unsigned char *) "-----BEGIN PGP PUBLIC KEY BLOCK-----\n");
- putchar_func(ctx, sizeof("Version: onak " VERSION "\n\n") - 1,
- (unsigned char *) "Version: onak " VERSION "\n\n");
+ putchar_func(ctx, sizeof("Version: onak " PACKAGE_VERSION "\n\n") - 1,
+ (unsigned char *) "Version: onak " PACKAGE_VERSION "\n\n");
armor_init(&armor_ctx);
armor_ctx.putchar_func = putchar_func;