/*
 * krb_err.c:
 * This file is automatically generated; please do not edit it.
 */

#include <stdlib.h>

#define N_(a) a

static const char * const text[] = {
	N_("Kerberos 4 successful"),
	N_("Kerberos 4 principal expired"),
	N_("Kerberos 4 service expired"),
	N_("Kerberos 4 auth expired"),
	N_("Incorrect Kerberos 4 master key version"),
	N_("Incorrect Kerberos 4 master key version"),
	N_("Incorrect Kerberos 4 master key version"),
	N_("Kerberos 4 byte order unknown"),
	N_("Kerberos 4 principal unknown"),
	N_("Kerberos 4 principal not unique"),
	N_("Kerberos 4 principal has null key"),
	N_("Reserved krb error (11)"),
	N_("Reserved krb error (12)"),
	N_("Reserved krb error (13)"),
	N_("Reserved krb error (14)"),
	N_("Reserved krb error (15)"),
	N_("Reserved krb error (16)"),
	N_("Reserved krb error (17)"),
	N_("Reserved krb error (18)"),
	N_("Reserved krb error (19)"),
	N_("Generic error from KDC (Kerberos 4)"),
	N_("Can't read Kerberos 4 ticket file"),
	N_("Can't find Kerberos 4 ticket or TGT"),
	N_("Reserved krb error (23)"),
	N_("Reserved krb error (24)"),
	N_("Reserved krb error (25)"),
	N_("Kerberos 4 TGT Expired"),
	N_("Reserved krb error (27)"),
	N_("Reserved krb error (28)"),
	N_("Reserved krb error (29)"),
	N_("Reserved krb error (30)"),
	N_("Kerberos 4: Can't decode authenticator"),
	N_("Kerberos 4 ticket expired"),
	N_("Kerberos 4 ticket not yet valid"),
	N_("Kerberos 4: Repeated request"),
	N_("The Kerberos 4 ticket isn't for us"),
	N_("Kerberos 4 request inconsistent"),
	N_("Kerberos 4: delta_t too big"),
	N_("Kerberos 4: incorrect net address"),
	N_("Kerberos protocol not version 4"),
	N_("Kerberos 4: invalid msg type"),
	N_("Kerberos 4: message stream modified"),
	N_("Kerberos 4: message out of order"),
	N_("Kerberos 4: unauthorized request"),
	N_("Reserved krb error (44)"),
	N_("Reserved krb error (45)"),
	N_("Reserved krb error (46)"),
	N_("Reserved krb error (47)"),
	N_("Reserved krb error (48)"),
	N_("Reserved krb error (49)"),
	N_("Reserved krb error (50)"),
	N_("Kerberos 4: current PW is null"),
	N_("Kerberos 4: Incorrect current password"),
	N_("Kerberos 4 protocol error"),
	N_("Error returned by KDC (Kerberos 4)"),
	N_("Null Kerberos 4 ticket returned by KDC"),
	N_("Kerberos 4: Retry count exceeded"),
	N_("Kerberos 4: Can't send request"),
	N_("Reserved krb error (58)"),
	N_("Reserved krb error (59)"),
	N_("Reserved krb error (60)"),
	N_("Kerberos 4: not all tickets returned"),
	N_("Kerberos 4: incorrect password"),
	N_("Kerberos 4: Protocol Error"),
	N_("Reserved krb error (64)"),
	N_("Reserved krb error (65)"),
	N_("Reserved krb error (66)"),
	N_("Reserved krb error (67)"),
	N_("Reserved krb error (68)"),
	N_("Reserved krb error (69)"),
	N_("Other error in Kerberos 4"),
	N_("Don't have Kerberos 4 ticket-granting ticket"),
	N_("Reserved krb error (72)"),
	N_("Reserved krb error (73)"),
	N_("Reserved krb error (74)"),
	N_("Reserved krb error (75)"),
	N_("No Kerberos 4 ticket file found"),
	N_("Couldn't access Kerberos 4 ticket file"),
	N_("Couldn't lock Kerberos 4 ticket file"),
	N_("Bad Kerberos 4 ticket file format"),
	N_("Kerberos 4: tf_init not called first"),
	N_("Bad Kerberos 4 name format"),
    0
};

struct error_table {
    char const * const * msgs;
    long base;
    int n_msgs;
};
struct et_list {
    struct et_list *next;
    const struct error_table * table;
};
extern struct et_list *_et_list;

const struct error_table et_krb_error_table = { text, 39525376L, 82 };

static struct et_list link = { 0, 0 };

void initialize_krb_error_table_r(struct et_list **list);
void initialize_krb_error_table(void);

void initialize_krb_error_table(void) {
    initialize_krb_error_table_r(&_et_list);
}

/* For Heimdal compatibility */
void initialize_krb_error_table_r(struct et_list **list)
{
    struct et_list *et, **end;

    for (end = list, et = *list; et; end = &et->next, et = et->next)
        if (et->table->msgs == text)
            return;
    et = malloc(sizeof(struct et_list));
    if (et == 0) {
        if (!link.table)
            et = &link;
        else
            return;
    }
    et->table = &et_krb_error_table;
    et->next = 0;
    *end = et;
}
