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 <afsconfig.h>
11 #include <afs/param.h>
19 #include <afs/errmap_nt.h>
20 #include <afs/afsutil.h>
21 #include <WINNT/afssw.h>
40 register struct filestr *tf;
41 tf = (struct filestr *) malloc(sizeof(struct filestr));
44 tf->name = (char *) malloc(strlen(aname)+1);
45 strcpy(tf->name, aname);
51 struct filestr **ah; {
52 register struct filestr *tf, *nf;
53 for(tf = *ah; tf; tf=nf) {
54 nf = tf->next; /* save before freeing */
58 *ah = (struct filestr *) 0;
62 /* StringToLevel - converts the name of an rxkad security level to a integer
63 * suitable for calling rxkad_New*SecurityObject. */
65 rxkad_level StringToLevel (name)
68 if (strcmp (name, "clear") == 0) return rxkad_clear;
69 if (strcmp (name, "auth") == 0) return rxkad_auth;
70 if (strcmp (name, "crypt") == 0) return rxkad_crypt;