]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use standard PKCS#11 standard error codes instead of custom error codes
authorOndřej Surý <ondrej@sury.org>
Thu, 8 Aug 2019 13:52:47 +0000 (15:52 +0200)
committerOndřej Surý <ondrej@sury.org>
Mon, 2 Mar 2020 10:01:05 +0000 (11:01 +0100)
commit5edc8b53389bc0c3fa8934bc160311640212bf66
tree63633a4af92bb385a11d2325d3ff219e9565e2d9
parent4b9cdbaf7ecce805f4e2af78498d7cb9a219004f
Use standard PKCS#11 standard error codes instead of custom error codes

* CKR_CRYPTOKI_ALREADY_INITIALIZED: This value can only be returned by
  `C_Initialize`. It means that the Cryptoki library has already been
  initialized (by a previous call to `C_Initialize` which did not have a
  matching `C_Finalize` call).

* CKR_FUNCTION_NOT_SUPPORTED: The requested function is not supported by this
  Cryptoki library. Even unsupported functions in the Cryptoki API should have a
  "stub" in the library; this stub should simply return the value
  CKR_FUNCTION_NOT_SUPPORTED.

* CKR_LIBRARY_LOAD_FAILED: The Cryptoki library could not load a dependent
  shared library.

(cherry picked from commit f6922d6e7866f65bed5623ff90e14a7398337b21)
lib/isc/unix/pk11_api.c