/** * User management * * @author sjlee@suprema.co.kr * @see */ /* * Copyright (c) 2006 Suprema Co., Ltd. All Rights Reserved. * * This software is the confidential and proprietary information of * Suprema Co., Ltd. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Suprema. */ #ifndef __BS_USER_H__ #define __BS_USER_H__ #define BS_MAX_NAME_LEN 32 #define BS_MAX_PASSWORD_LEN 16 #define BS_TEMPLATE_SIZE 384 #define BS_MAX_TEMPLATE_PER_USER 10 #define BS_USER_HEADER_ONLY 0x01 #define BS_USER_HEADER_TEMPLATE 0x02 #define BS_USER_HEADER_PICTURE 0x03 #define BS_USER_HEADER_TEMPLATE_PICTURE 0x04 #define BS_USER_SECURITY_DEFAULT 260 #define BS_USER_SECURITY_LOWER 261 #define BS_USER_SECURITY_LOW 262 #define BS_USER_SECURITY_NORMAL 263 #define BS_USER_SECURITY_HIGH 264 #define BS_USER_SECURITY_HIGHER 265 #define BS_USER_ADMIN 240 #define BS_USER_NORMAL 241 typedef struct{ unsigned ID; unsigned short reserved1; unsigned short adminLevel; unsigned short securityLevel; unsigned short statusMask; unsigned accessGroupMask; char name[BS_MAX_NAME_LEN + 1]; char department[BS_MAX_NAME_LEN + 1]; char password[BS_MAX_PASSWORD_LEN + 1]; unsigned short numOfFinger; unsigned short duressMask; unsigned short checksum[5]; // index 0, 1 } BSUserHdr; #endif