6 * Copyright (C) 1987 by the Massachusetts Institute of Technology
9 * Revision 1.5 1988-04-19 12:40:29 mar
10 * pass version number on queries
12 * Revision 1.4 87/10/20 15:09:22 mar
13 * replace hardcoded ATHENA realm with call to get_krbrlm();
15 * Revision 1.3 87/06/16 17:47:20 wesommer
16 * Clean up memory allocation, indenting.
18 * Revision 1.2 87/05/31 22:03:23 wesommer
19 * It's working better.
21 * Revision 1.1 87/05/20 03:11:18 wesommer
25 * Handles the client side of the sending of authenticators to
30 static char *rcsid_sms_auth_c = "$Header$";
33 #include "sms_private.h"
36 extern int krb_err_base;
46 register sms_params *params = ¶ms_st;
47 sms_params *reply = NULL;
53 * Build a Kerberos authenticator.
54 * The "service" and "instance" should not be hardcoded here.
57 if ((status = get_krbrlm(realm, 1)) != KSUCCESS) {
60 status = mk_ap_req(&auth, "sms", "sms", realm, 0);
61 if (status != KSUCCESS) {
62 status += krb_err_base;
65 params->sms_version_no = sending_version_no;
66 params->sms_procno = SMS_AUTH;
68 params->sms_argv = args;
69 params->sms_argl = argl;
70 params->sms_argv[0] = (char *)auth.dat;
71 params->sms_argl[0] = auth.length;
73 if ((status = sms_do_call(params, &reply)) == 0)
74 status = reply->sms_status;
76 sms_destroy_reply(reply);
85 * c-continued-statement-offset: 4