C++
struct SecurityParams { unsigned long cbSize; unsigned long ulFlags; wchar_t* wszPassword; unsigned long ulProvType; wchar_t* wszProvName; unsigned long ulAlgId; unsigned long ulKeyLength; wchar_t* wszCertSubject; wchar_t* wszCertIssuer; wchar_t* wszCertSerialNum; wchar_t* wszComment; wchar_t* wszTimeServer; };
File
dbsecurity.h
Members
| Members | Description |
|---|---|
| cbSize | Size of the struct in bytes. This member must be set to sizeofSecurityParams. |
| ulFlags | Flags to indicate desired operations; can be one or more of the following enumerated values:enum { SECURITYPARAMS_ENCRYPT_DATA = 0x00000001, SECURITYPARAMS_ENCRYPT_PROPS = 0x00000002,SECURITYPARAMS_SIGN_DATA = 0x00000010, SECURITYPARAMS_ADD_TIMESTAMP = 0x00000020 }; At least one of SECURITYPARAMS_ENCRYPT_DATA or SECURITYPARAMS_SIGN_DATA must be set. |
| wszPassword | The password, formatted as a zero-terminated "wide-char" string |
| ulProvType | Numeric ID of the cryptography provider. For more information on cryptography providers in Windows, please refer to the online Microsoft Developer Network MSDN documentation. |
| wszProvName | Name of the cryptography provider. For more information on cryptography providers in Windows, please refer to the online Microsoft Developer Network MSDN documentation. |
| ulAlgId | Algorithm identifier; must be SECURITYPARAMS_ALGID_RC4. |
| ulKeyLength | Length of the encryption key selected. |
| wszCertSubject | Name of the certificate digital ID subject. |
| wszCertIssuer | Name of the certificate digital ID issuer. |
| wszCertSerialNum | Serial number of the certificate digital ID. |
| wszComment | Comment to be included with the signature. |
| wszTimeServer | This member contains the name of the time server used for timestamping. The name must be provided as a wide-char string in the format 'Descriptionserver_name'. An example is 'Natl Inst of Standards and Technologytime.nist.gov'. If this member is NULL, the time from the local computer is used. |
Description
This struct stores information for security operations requested during DWG file I/O.