// iscsiop.h
typedef struct _GetPresharedKeyForId_IN {
ULONG PortNumber;
UCHAR IdType;
ULONG IdSize;
UCHAR Id[1];
} GetPresharedKeyForId_IN, *PGetPresharedKeyForId_IN;
View the official Windows Driver Kit DDI referenceNo description available.
The GetPresharedKeyForId_IN structure holds the input data for the GetPresharedKeyForId method. This method is required if the initiator supports Internet Key Exchange (IKE). It can help to determine whether IKE identification payload is configured with a preshared key.
PortNumberThe number of the port that the connection was made through. A value of -1 indicates that the connection can be made through any available port.
IdTypeThe type of identifier that the initiator puts in the Internet Key Exchange (IKE) identification payload to identify itself to the target.
| Identification payload type | Meaning |
|---|---|
| ID_IPV4_ADDR | The initiator identifies itself to the target during the key exchange with a single 4-byte version 4 IP address. |
| ID_FQDN | The initiator identifies itself to the target during the key exchange with a fully qualified domain name string (for example, "website.com"). |
| ID_USER_FQDN | The initiator identifies itself to the target during the key exchange with a fully qualified user name string (for example, "someone@example.com"). |
| ID_IPV6_ADDR | The initiator identifies itself to the target during the key exchange with a single 16-byte version 6 IP address. |
IdSizeThe size, in bytes, of the identifier in Id.
IdThe identifier that the initiator uses to identify itself to the target during key exchange.
You must implement this method if the initiator supports IKE.
MSiSCSI_SecurityConfigOperations WMI Class