ovload.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
* Openvision retains the copyright to derivative works of
* this source code. Do *NOT* create a derivative of this
* source code before consulting with your legal department.
* Do *NOT* integrate *ANY* of this source code into another
* product before consulting with your legal department.
*
* For further information, read the top-level Openvision
* copyright which is contained in the top-level MIT Kerberos
* copyright.
*
* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
*
*/
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <memory.h>
#include "import_err.h"
int
char *current;
{
char *cp;
ret = 0;
sizeof (krb5_key_data));
return (ENOMEM);
for (i = 0; i < hist->n_key_data; i++) {
ret = IMPORT_FAILED;
goto done;
}
ret = IMPORT_FAILED;
goto done;
}
ret = IMPORT_FAILED;
goto done;
}
goto done;
}
for (j = 0; j < key_data->key_data_length[0]; j++) {
ret = IMPORT_FAILED;
goto done;
}
}
}
done:
return (ret);
}
/*
* Function: parse_principal
*
* Purpose: parse principal line in db dump file
*
* Arguments:
* <return value> 0 on sucsess, error code on failure
*
* Requires:
* principal database to be opened.
* strtok(3) to have a valid buffer in memory.
*
* Effects:
* [effects]
*
* Modifies:
* [modifies]
*
*/
int
char *fname;
int verbose;
int *linenop;
void *pol_db;
{
char *current;
char *cp;
unsigned int more;
return (IMPORT_BAD_FILE);
}
return (IMPORT_BAD_FILE);
if ((rec = (osa_princ_ent_t)
return (ENOMEM);
goto done;
ret = IMPORT_FAILED;
goto done;
} else {
goto done;
}
} else
}
ret = IMPORT_FAILED;
goto done;
}
ret = IMPORT_FAILED;
goto done;
}
ret = IMPORT_FAILED;
goto done;
}
ret = IMPORT_FAILED;
goto done;
}
if (!rec->old_key_len) {
} else {
goto done;
}
for (x = 0; x < rec->old_key_len; x++)
}
xdr_destroy(&xdrs);
goto done;
}
one = 1;
&more);
if (ret)
goto done;
&tl_data))
goto done;
goto done;
xdr_destroy(&xdrs);
(*linenop)++;
done:
return (ret);
}