File: iscsiAuthData.h

package info (click to toggle)
lio-utils 3.1%2Bgit2.fd0b34fd-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 992 kB
  • sloc: ansic: 7,031; python: 3,039; perl: 885; sh: 414; makefile: 118
file content (38 lines) | stat: -rw-r--r-- 1,044 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * Copyright (c) 2006 SBE, Inc.
 * Copyright (c) 2009-2011 Linux-iSCSI.org
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */
/* 
 * ipsAuthMibModule Definitions
 */
#ifndef ISCSIAUTHDATA_H
#define ISCSIAUTHDATA_H

#define AUTH_MAX_NAME_LEN	224

/* 
 * Structures used for maintaining initiator authentication database 
 */
typedef struct authCred_entry_s {
    uint16_t	tpgt;
    uint16_t	enforceAuth;
    char	chapUserName[AUTH_MAX_NAME_LEN];
    struct authCred_entry_s *next;
} authCred_entry_t;

typedef struct authId_entry_s {
    uint32_t	authIdIndex;
    char	authIdName[AUTH_MAX_NAME_LEN];
    struct authCred_entry_s *authCred_list;
    struct authId_entry_s *next;
} authId_entry_t;

extern int load_auth_data(authId_entry_t **authId_head);
extern uint32_t find_authId_index(char *intrName);

#endif /* ISCSIAUTHDATA_H */