Path: blob/main/crypto/krb5/src/windows/leashdll/leasherr.c
34914 views
// ATTENTION: someone in the past edited this file manually1// I am continuing this tradition just to get the release out. 3/6/972// This needs to be revisited and repaired!!!XXXX3// pbh456/*7* leasherr.c8* This file is the C file for leasherr.et.9* Please do not edit it as it is automatically generated.10*/1112#include <stdlib.h>13#include <windows.h>1415static const char* const text[] = {16"Only one instance of Leash can be run at a time.",17"Principal invalid.",18"Realm failed.",19"Instance invalid.",20"Realm invalid.",21"Unexpected end of Kerberos memory storage.",22"Warning! Your Kerberos tickets expire soon.",23"You did not type the same new password.",24"You can only use printable characters in a password.",25"Fatal error; cannot run this program.",26"Couldn't initialize WinSock.",27"Couldn't find the timeserver host entry.",28"Couldn't open a socket.",29"Couldn't connect to timeserver.",30"Couldn't get time from server.",31"Couldn't get local time of day.",32"Couldn't set local time of day.",33"Error while receiving time from server.",34"Protocol problem with timeserver.",35"The time was already reset. Try using a different program to synchronize the time.",36037};3839typedef LPSTR (*err_func)(int, long);40struct error_table {41char const * const * msgs;42err_func func;43long base;44int n_msgs;45};46struct et_list {47#ifdef WINDOWS48HANDLE next;49#else50struct et_list *next;51#endif52const struct error_table * table;53};5455static const struct error_table et = { text, (err_func)0, 40591872L, 20 };5657#ifdef WINDOWS58void initialize_lsh_error_table(HANDLE *__et_list) {59// struct et_list *_link,*_et_list;60struct et_list *_link;61HANDLE ghlink;6263ghlink=GlobalAlloc(GHND,sizeof(struct et_list));64_link=GlobalLock(ghlink);65_link->next=*__et_list;66_link->table=&et;67GlobalUnlock(ghlink);68*__et_list=ghlink;69}70#else71void initialize_lsh_error_table(struct et_list **__et_list) {72struct et_list *_link;7374_link=malloc(sizeof(struct et_list));75_link->next=*__et_list;76_link->table=&et;77*__et_list=_link;78}79#endif8081#ifdef WINDOWS8283void Leash_initialize_krb_error_func(err_func func, HANDLE *__et_list)84{85}8687void Leash_initialize_kadm_error_table(HANDLE *__et_list)88{89}90#else91#include <krberr.h>9293void Leash_initialize_krb_error_func(err_func func, struct et_list **__et_list)94{95(*pinitialize_krb_error_func)(func,__et_list);96}9798#include <kadm_err.h>99100void Leash_initialize_kadm_error_table(struct et_list **__et_list)101{102initialize_kadm_error_table(__et_list);103}104#endif105106107