cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Classes | Macros | Typedefs | Enumerations | Functions | Variables
user.h File Reference

Go to the source code of this file.

Classes

struct  USER_FILE_INFO
 
struct  UI
 

Macros

#define USER_FLAG_NONE   0x00 /* No flag */
 
#define USER_FLAG_ZEROISE   0x01 /* Zeroise in progress */
 

Typedefs

typedef struct UI USER_INFO
 

Enumerations

enum  USER_STATE_TYPE {
  USER_STATE_NONE, USER_STATE_SOINITED, USER_STATE_USERINITED, USER_STATE_LOCKED,
  USER_STATE_LAST
}
 
enum  CONFIG_DISPOSITION_TYPE {
  CONFIG_DISPOSITION_NONE, CONFIG_DISPOSITION_NO_CHANGE, CONFIG_DISPOSITION_EMPTY_CONFIG_FILE, CONFIG_DISPOSITION_TRUSTED_CERTS_ONLY,
  CONFIG_DISPOSITION_DATA_ONLY, CONFIG_DISPOSITION_BOTH, CONFIG_DISPOSITION_LAST
}
 

Functions

CHECK_RETVAL STDC_NONNULL_ARG ((1, 2)) int getUserAttribute(INOUT USER_INFO *userInfoPtr
 
CHECK_RETVAL STDC_NONNULL_ARG ((1)) int setUserAttribute(INOUT USER_INFO *userInfoPtr
 
CHECK_RETVAL IN_BUFFER (dataLength) const void *data
 
CHECK_RETVAL const USER_FILE_INFOgetPrimarySoUserInfo (void)
 
CHECK_RETVAL IN_BUFFER (passwordLength) const char *password
 
CHECK_RETVAL IN_INT_SHORT const int IN_RANGE_FIXED (CRYPT_OPTION_SELFTESTOK) const CRYPT_ATTRIBUTE_TYPE option
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 4)) int setOptionString(INOUT_ARRAY(configOptionsCount) TYPECAST(OPTION_INFO *) void *configOptions
 
CHECK_RETVAL IN_INT_SHORT
const int IN_ATTRIBUTE const
CRYPT_ATTRIBUTE_TYPE 
IN_BUFFER (valueLength) const char *value
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 4, 5)) int getOptionString(IN_ARRAY(configOptionsCount) TYPECAST(OPTION_INFO *) const void *configOptions
 
CHECK_RETVAL STDC_NONNULL_ARG ((2)) int readConfig(IN_HANDLE const CRYPT_USER iCryptUser
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 3, 4)) int getConfigDisposition(INOUT_ARRAY(configOptionsCount) TYPECAST(OPTION_INFO *) void *configOptions
 
CHECK_RETVAL IN_INT_SHORT
const int const void 
OUT_ENUM (CONFIG_DISPOSITION) CONFIG_DISPOSITION_TYPE *disposition)
 
CHECK_RETVAL IN_BUFFER_OPT (dataLength) const void *data
 

Variables

CHECK_RETVAL OUT_INT_Z int * valuePtr
 
CHECK_RETVAL OUT_INT_Z int
IN_ATTRIBUTE const
CRYPT_ATTRIBUTE_TYPE 
attribute
 
CHECK_RETVAL INOUT MESSAGE_DATAmsgData
 
CHECK_RETVAL IN_INT_Z const int value
 
CHECK_RETVAL IN_LENGTH const int dataLength
 
CHECK_RETVAL_BOOL
IN_LENGTH_SHORT const int 
passwordLen
 
CHECK_RETVAL IN_LENGTH_SHORT
const int 
passwordLength
 
CHECK_RETVAL OUT_INT_SHORT_Z int * configOptionsCount
 
CHECK_RETVAL IN_INT_SHORT
const int IN_ATTRIBUTE const
CRYPT_ATTRIBUTE_TYPE 
option
 
CHECK_RETVAL IN_INT_SHORT
const int IN_ATTRIBUTE const
CRYPT_ATTRIBUTE_TYPE
IN_LENGTH_SHORT const int 
valueLength
 
CHECK_RETVAL IN_INT_SHORT
const int IN_ATTRIBUTE const
CRYPT_ATTRIBUTE_TYPE
OUT_OPT_PTR const void ** 
strPtrPtr
 
CHECK_RETVAL IN_INT_SHORT
const int IN_ATTRIBUTE const
CRYPT_ATTRIBUTE_TYPE
OUT_OPT_PTR const void
OUT_LENGTH_SHORT_Z int * 
strLen
 
CHECK_RETVAL IN_STRING const char * fileName
 
CHECK_RETVAL IN_STRING const
char INOUT_OPT void * 
trustInfoPtr
 
CHECK_RETVAL IN_INT_SHORT
const int OUT_BUFFER_ALLOC_OPT
dataLength void ** 
dataPtrPtr
 
CHECK_RETVAL IN_LENGTH_Z const
int IN_HANDLE_OPT const
CRYPT_USER 
iTrustedCertUserObject
 

Macro Definition Documentation

#define USER_FLAG_NONE   0x00 /* No flag */

Definition at line 27 of file user.h.

#define USER_FLAG_ZEROISE   0x01 /* Zeroise in progress */

Definition at line 28 of file user.h.

Typedef Documentation

typedef struct UI USER_INFO

Enumeration Type Documentation

Enumerator:
CONFIG_DISPOSITION_NONE 
CONFIG_DISPOSITION_NO_CHANGE 
CONFIG_DISPOSITION_EMPTY_CONFIG_FILE 
CONFIG_DISPOSITION_TRUSTED_CERTS_ONLY 
CONFIG_DISPOSITION_DATA_ONLY 
CONFIG_DISPOSITION_BOTH 
CONFIG_DISPOSITION_LAST 

Definition at line 32 of file user.h.

Enumerator:
USER_STATE_NONE 
USER_STATE_SOINITED 
USER_STATE_USERINITED 
USER_STATE_LOCKED 
USER_STATE_LAST 

Definition at line 14 of file user.h.

Function Documentation

CHECK_RETVAL const USER_FILE_INFO* getPrimarySoUserInfo ( void  )

!!!!!!!!!!!!!! Needs a serious overhaul !!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!! Needs a serious overhaul !!!!!!!!!!!!!!!!!!!!!

Definition at line 817 of file user.c.

CHECK_RETVAL IN_BUFFER ( dataLength  ) const
CHECK_RETVAL IN_BUFFER ( passwordLength  ) const
CHECK_RETVAL IN_BUFFER_OPT ( dataLength  ) const
CHECK_RETVAL IN_INT_SHORT const int IN_RANGE_FIXED ( CRYPT_OPTION_SELFTESTOK  ) const
CHECK_RETVAL IN_INT_SHORT const int const void OUT_ENUM ( CONFIG_DISPOSITION  )
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (1)  )

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Definition at line 26 of file ctx_attr.c.

CHECK_RETVAL STDC_NONNULL_ARG ( (1, 4)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 4, 5)  ) const
CHECK_RETVAL STDC_NONNULL_ARG ( (2)  ) const
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 3, 4)  )

Variable Documentation

Definition at line 113 of file user.h.

CHECK_RETVAL IN_INT_SHORT const int configOptionsCount

Definition at line 154 of file user.h.

CHECK_RETVAL IN_LENGTH_Z const int dataLength

Definition at line 126 of file user.h.

Definition at line 215 of file user.h.

CHECK_RETVAL IN_STRING const char* fileName

Definition at line 202 of file user.h.

Definition at line 220 of file user.h.

Definition at line 117 of file user.h.

Definition at line 162 of file user.h.

Definition at line 138 of file user.h.

CHECK_RETVAL IN_LENGTH_SHORT const int passwordLength

Definition at line 144 of file user.h.

Definition at line 188 of file user.h.

Definition at line 188 of file user.h.

CHECK_RETVAL IN_INT_SHORT const int const void * trustInfoPtr

Definition at line 202 of file user.h.

Definition at line 121 of file user.h.

Definition at line 178 of file user.h.

CHECK_RETVAL OUT_INT_Z int* valuePtr

Definition at line 113 of file user.h.