2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #include <afs/param.h>
11 #include <afsconfig.h>
16 #include <afs/errmap_nt.h>
17 #include <afs/afsutil.h>
18 #include <WINNT/afssw.h>
39 register struct filestr *tf;
40 tf = (struct filestr *) malloc(sizeof(struct filestr));
43 tf->name = (char *) malloc(strlen(aname)+1);
44 strcpy(tf->name, aname);
50 struct filestr **ah; {
51 register struct filestr *tf, *nf;
52 for(tf = *ah; tf; tf=nf) {
53 nf = tf->next; /* save before freeing */
57 *ah = (struct filestr *) 0;
61 /* StringToLevel - converts the name of an rxkad security level to a integer
62 * suitable for calling rxkad_New*SecurityObject. */
64 rxkad_level StringToLevel (name)
67 if (strcmp (name, "clear") == 0) return rxkad_clear;
68 if (strcmp (name, "auth") == 0) return rxkad_auth;
69 if (strcmp (name, "crypt") == 0) return rxkad_crypt;