.. index:: single: Error codes single: Plugin; Error codes single: Security; Error codes single: DDS security; Error codes Security plugin error codes *************************** Most of the plugin functions have parameter for reporting exceptions. The *dds_security_api_err.h* header file contains the code and message constants. The following table lists the exception codes that to be used in the reported exception data: +-------+----------------------------------------------------------------+ | Code | Message | +=======+================================================================+ | 0 | (OK) | +-------+----------------------------------------------------------------+ | 100 | Can not generate random data | +-------+----------------------------------------------------------------+ | 110 | Identity empty | +-------+----------------------------------------------------------------+ | 111 | Participant Crypto Handle empty | +-------+----------------------------------------------------------------+ | 112 | Permission Handle empty | +-------+----------------------------------------------------------------+ | 113 | Invalid Crypto Handle | +-------+----------------------------------------------------------------+ | 114 | Invalid argument | +-------+----------------------------------------------------------------+ | 115 | Invalid Crypto token | +-------+----------------------------------------------------------------+ | 116 | Invalid parameter | +-------+----------------------------------------------------------------+ | 117 | File could not be found, opened or is empty, path: %s | +-------+----------------------------------------------------------------+ | 118 | Unknown or unexpected transformation kind | +-------+----------------------------------------------------------------+ | 119 | Message cannot be authenticated, incorrect signature | +-------+----------------------------------------------------------------+ | 120 | Can not open trusted CA directory | +-------+----------------------------------------------------------------+ | 121 | Identity CA is not trusted | +-------+----------------------------------------------------------------+ | 122 | Certificate start date is in the future | +-------+----------------------------------------------------------------+ | 123 | Certificate expired | +-------+----------------------------------------------------------------+ | 125 | Certificate authentication algorithm unknown | +-------+----------------------------------------------------------------+ | 126 | Failed to allocate internal structure | +-------+----------------------------------------------------------------+ | 127 | Failed to parse PKCS7 SMIME document | +-------+----------------------------------------------------------------+ | 128 | Property is missing: (%s) | +-------+----------------------------------------------------------------+ | 129 | Permissions document is invalid | +-------+----------------------------------------------------------------+ | 130 | Governance document is invalid | +-------+----------------------------------------------------------------+ | 131 | Operation is not permitted in this state | +-------+----------------------------------------------------------------+ | 132 | Remote permissions document is not available | +-------+----------------------------------------------------------------+ | 133 | Certificate is invalid | +-------+----------------------------------------------------------------+ | 134 | Certificate type is not supported | +-------+----------------------------------------------------------------+ | 135 | Governance property is required | +-------+----------------------------------------------------------------+ | 136 | Permissions CA property is required | +-------+----------------------------------------------------------------+ | 137 | Can not parse governance file | +-------+----------------------------------------------------------------+ | 138 | Can not parse permissions file | +-------+----------------------------------------------------------------+ | 139 | Could not find permissions for topic | +-------+----------------------------------------------------------------+ | 140 | Could not find domain %d in permissions | +-------+----------------------------------------------------------------+ | 141 | Could not find domain %d in governance | +-------+----------------------------------------------------------------+ | 142 | Could not find %s topic attributes for domain(%d) in governance| +-------+----------------------------------------------------------------+ | 143 | PluginClass in remote token is incompatible | +-------+----------------------------------------------------------------+ | 144 | MajorVersion in remote token is incompatible | +-------+----------------------------------------------------------------+ | 145 | Access denied by access control | +-------+----------------------------------------------------------------+ | 146 | Subject name is invalid | +-------+----------------------------------------------------------------+ | 147 | Permissions validity period expired for %s | +-------+----------------------------------------------------------------+ | 148 | Permissions validity period has not started yet for %s | +-------+----------------------------------------------------------------+ | 149 | Could not find valid grant in permissions | +-------+----------------------------------------------------------------+ | 150 | Unsupported URI type: %s | +-------+----------------------------------------------------------------+ | 151 | The payload is not aligned at 4 bytes | +-------+----------------------------------------------------------------+ | 152 | Cannot open trusted CA directory: maximum number exceeded | +-------+----------------------------------------------------------------+ | 200 | Undefined Error Message | +-------+----------------------------------------------------------------+