Set Master Key Exit Program


  Required Parameter Group:


  QSYSINC Member Name: ESETMST

  Exit Point Name: QIBM_QC3_SET_MSTKEY

  Exit Point Format Name: STMK0100

The Set Master Key exit program is called when the Set Master Key (SETMSTKEY) CL command, the Qc3SetMasterKey API, or the set action of the Manage Master Keys panel in System i® Navigator is being used.

The operating system calls the user-written exit programs through the registration facility.

The exit point supports an unlimited number of exit programs. For information about adding an exit program to an exit point, see the Registration Facility.


Authorities and Locks

None.


Required Parameter Group

Set master key exit information
INPUT; CHAR(*)

Information that is needed by the exit program for notification of any master key that has been set. For details, see Format of Set Master Key Exit Information.

Action
INPUT; CHAR(1)

The type of exit program call being made. The following actions may be requested:

Set status
OUTPUT; CHAR(*)

Information that is returned by the exit program. For details, see Format of Status Information.

Note: The information returned is ignored when the action parameter is set to 2 or 3.


Format of Set Master Key Exit Information

The following table shows the structure of the set master key exit information. For a description of the fields in this format, see Field Descriptions.



Format of Status Information

The following table shows the structure of the set status information. For a description of the fields in this format, see Field Descriptions.



Field Descriptions

Master key ID. The ID of the master key that is being set. The possible values are:

Master key verification value. When the action parameter is set to 2, this will contain the key verification value of the master key that was just previously set. Otherwise it will be set to zeros.

Set master key exit information length. The length in bytes of all data passed to the set master key exit program.

Set master key status. The status value that indicates whether the exit program considers the master key eligible to be set. The possible values are:

Set master key status length. The length in bytes of the set status information.



Exit program introduced: V6R1

[ Back to top | Cryptographic Services APIs | APIs by category ]