libipmi_usermgmt.h 715 B

123456789101112131415161718192021222324252627
  1. #ifndef __LIBIPMI_USER_MANAGEMENT_H__
  2. #define __LIBIPMI_USER_MANAGEMENT_H__
  3. #include "com_IPMIDefs.h"
  4. #include "libipmi_struct.h"
  5. #include "com_BmcType.h"
  6. #pragma pack(1)
  7. typedef struct {
  8. uint8_t byUserID;
  9. char szUserName[MAX_USERNAME_LEN];
  10. } SetUser_T;
  11. typedef struct {
  12. uint8_t byCompletionCode;
  13. char szUserName[MAX_USERNAME_LEN];
  14. } GetUser_T;
  15. #pragma pack()
  16. uint16_t LIBIPMI_GetAllUserInfo( IPMI20_UDS_SESSION_T *pUDSSession, UserInfo_T *userInfoTbl, int timeout );
  17. uint8_t LIBIPMI_AuthorVerify( IPMI20_UDS_SESSION_T *pUDSSession, char *username, char *password, int timeout );
  18. uint16_t LIBIPMI_SetPassword( IPMI20_UDS_SESSION_T *pUDSSession, uint8_t userid, char *password, int timeout );
  19. #endif