* $Header$
*
* Copyright (C) 1987 by the Massachusetts Institute of Technology
- *
- * $Log$
- * Revision 1.6 1988-06-01 15:31:53 mar
- * make auth do the right thing for version 2 of the protocol
- *
- * Revision 1.5 88/04/19 12:40:29 mar
- * pass version number on queries
- *
- * Revision 1.4 87/10/20 15:09:22 mar
- * replace hardcoded ATHENA realm with call to get_krbrlm();
- *
- * Revision 1.3 87/06/16 17:47:20 wesommer
- * Clean up memory allocation, indenting.
- *
- * Revision 1.2 87/05/31 22:03:23 wesommer
- * It's working better.
- *
- * Revision 1.1 87/05/20 03:11:18 wesommer
- * Initial revision
- *
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
*
* Handles the client side of the sending of authenticators to
* the sms server.
static char *rcsid_sms_auth_c = "$Header$";
#endif lint
+#include <mit-copyright.h>
#include "sms_private.h"
#include <krb.h>
+#include <krb_et.h>
-extern int krb_err_base;
/* Authenticate this client with the SMS server. prog is the name of the
* client program, and will be recorded in the database.
if ((status = get_krbrlm(realm, 1)) != KSUCCESS) {
return status;
}
- status = mk_ap_req(&auth, "sms", "sms", realm, 0);
+ status = krb_mk_req(&auth, "sms", "sms", realm, 0);
if (status != KSUCCESS) {
- status += krb_err_base;
+ status += ERROR_TABLE_BASE_krb;
return status;
}
params->sms_version_no = sending_version_no;
return status;
}
-
-/*
- * Local Variables:
- * mode: c
- * c-indent-level: 4
- * c-continued-statement-offset: 4
- * c-brace-offset: -4
- * c-argdecl-indent: 4
- * c-label-offset: -4
- * End:
- */