Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
gsk_set_default_key() z/OS Cryptographic Services System SSL Programming SC14-7495-00 |
|
Sets the default key.
Format
Parameters
ResultsThe function return value will be 0 if no error is detected. Otherwise, it will be one of the return codes listed in the gskcms.h include file. These are some possible errors:
UsageThe gsk_set_default_key() routine sets the default key for a key database. If the key database already has a default key, the record for the old default key is updated to remove the GSKDB_RECFLAG_DEFAULT flag. The record for the new default key is then updated to add the GSKDB_RECFLAG_DEFAULT flag. The database must be open for update in order to set the default key. An error will be returned if the specified database record does not contain a private key. The database file is updated as part of the gsk_set_default_key() processing. A temporary database file is created using the same name as the database file with ".new" appended to the name. The database file is then overwritten and the temporary database file is deleted. The temporary database file will not be deleted if an error occurs while rewriting the database file. |
Copyright IBM Corporation 1990, 2014
|