6 * Copyright (C) 1987 by the Massachusetts Institute of Technology
9 * Revision 1.3 1987-06-16 17:47:20 wesommer
10 * Clean up memory allocation, indenting.
12 * Revision 1.2 87/05/31 22:03:23 wesommer
13 * It's working better.
15 * Revision 1.1 87/05/20 03:11:18 wesommer
19 * Handles the client side of the sending of authenticators to
24 static char *rcsid_sms_auth_c = "$Header$";
27 #include "sms_private.h"
30 extern int krb_err_base;
39 register sms_params *params = ¶ms_st;
40 sms_params *reply = NULL;
46 * Build a Kerberos authenticator.
47 * The "service" and "instance" should not be hardcoded here.
50 status = mk_ap_req(&auth, "sms", "sms", "ATHENA.MIT.EDU", 0);
51 if (status != KSUCCESS) {
52 status += krb_err_base;
55 params->sms_procno = SMS_AUTH;
57 params->sms_argv = args;
58 params->sms_argl = argl;
59 params->sms_argv[0] = (char *)auth.dat;
60 params->sms_argl[0] = auth.length;
62 if ((status = sms_do_call(params, &reply)) == 0)
63 status = reply->sms_status;
65 sms_destroy_reply(reply);
74 * c-continued-statement-offset: 4