]> andersk Git - moira.git/blame - lib/mr_auth.c
Initial revision
[moira.git] / lib / mr_auth.c
CommitLineData
e2a67c78 1/*
2 * $Source$
3 * $Author$
4 * $Header$
5 *
6 * Copyright (C) 1987 by the Massachusetts Institute of Technology
7 *
8 * $Log$
9 * Revision 1.1 1987-05-20 03:11:18 wesommer
10 * Initial revision
11 *
12 *
13 * Handles the client side of the sending of authenticators to
14 * the sms server.
15 */
16
17#ifndef lint
18static char *rcsid_sms_auth_c = "$Header$";
19#endif lint
20
21#include "sms_private.h"
22#include <krb.h>
23
24int sms_auth()
25{
26 int status;
27 struct sms_params aparms;
28
29 if (!_sms_conn) {
30 return SMS_NOT_CONNECTED;
31 }
32
33 /*
34 * Build a Kerberos authenticator.
35 */
36
37 status = mk_ap_req(&auth, "sms", "sms", "ATHENA.MIT.EDU", 0);
38 if (status != KSUCCESS) {
39 status += krb_err_base;
40 goto punt;
41 }
42
43 if (!sms_call_op)
44 sms_call_op = create_operation();
45
46
47
48
49
50
51}
This page took 0.051927 seconds and 5 git commands to generate.