+Tue May 16 13:19:04 EDT 1995 Paul Park (pjpark@mit.edu)
+ * t_dbentry.c - Change isset to is_a_set to keep Ultrix happy. Also
+ correctly calculate the length of the standard pwd.
+ so that we don't overwrite the end of the malloc()ed
+ string.
+ * t_ktentry.c - Remove isset logic, no differentiation for keytabs.
+
+
Tue May 16 10:35:54 EDT 1995 Paul Park (pjpark@mit.edu)
* t_dbentry.c, t_ktentry.c - new test modules for encode/decode
functions. These convert to and from krb5_db_entry and
}
else {
if (is_set) {
- *pwdp = (char *) malloc(strlen(defpass));
+ *pwdp = (char *) malloc(strlen(defpass)+1);
strcpy(*pwdp, defpass);
*validp |= KRB5_ADM_M_PASSWORD;
}
* using krb5_adm_proto_to_dbent. Then verify the match.
*/
static krb5_int32
-do_test(pname, verbose, isrand, isset, title, passno)
+do_test(pname, verbose, isrand, is_a_set, title, passno)
char *pname;
krb5_boolean verbose;
krb5_boolean isrand;
- krb5_boolean isset;
+ krb5_boolean is_a_set;
char *title;
krb5_int32 passno;
{
complist = (krb5_data *) NULL;
should_fail = 0;
if (!isrand) {
- if (isset)
+ if (is_a_set)
in_validmask = KRB5_ADM_M_SET;
else
in_validmask = KRB5_ADM_M_GET;
* using krb5_adm_proto_to_ktent. Then verify the match.
*/
static krb5_int32
-do_test(pname, verbose, isrand, isset, title, passno)
+do_test(pname, verbose, isrand, title, passno)
char *pname;
krb5_boolean verbose;
krb5_boolean isrand;
- krb5_boolean isset;
char *title;
krb5_int32 passno;
{
if (error)
return(error);
- error += do_test(programname, verbose, 0, 1, "Standard set test", 0);
- error += do_test(programname, verbose, 0, 0, "Standard get test", 0);
+ error += do_test(programname, verbose, 0, "Standard test", 0);
for (i=0; i<randompasses; i++)
error += do_test(programname, verbose, 1, 0, "Random test", i+1);
if (verbose) {