mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
During plugin initialization, the external libraries such as the EP11 or CCA host libraries are set up, if the configuration is appropriate. A secure identity key may be generated once the APQNs are configured, but before the server connection is configured. Trying to re-encipher the plugin's secure keys to a new HSM master key at that stage fails with 'ERROR: Invalid ext lib type: 0' because the external libraries have not been setup yet. Change the code to setup the libraries once the APQNs have been configured, and not only after the server connection has been configured. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>