p11-unwrapkey.c 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* p11-unwrapkey.c - Cryptoki implementation.
  2. Copyright (C) 2006 g10 Code GmbH
  3. This file is part of Scute.
  4. Scute is free software; you can redistribute it and/or modify it
  5. under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. Scute is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with Scute; if not, write to the Free Software Foundation,
  14. Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  15. In addition, as a special exception, g10 Code GmbH gives permission
  16. to link this library: with the Mozilla Foundation's code for
  17. Mozilla (or with modified versions of it that use the same license
  18. as the "Mozilla" code), and distribute the linked executables. You
  19. must obey the GNU General Public License in all respects for all of
  20. the code used other than "Mozilla". If you modify this file, you
  21. may extend this exception to your version of the file, but you are
  22. not obligated to do so. If you do not wish to do so, delete this
  23. exception statement from your version. */
  24. #if HAVE_CONFIG_H
  25. #include <config.h>
  26. #endif
  27. #include "cryptoki.h"
  28. CK_DEFINE_FUNCTION(CK_RV, C_UnwrapKey)
  29. (CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism,
  30. CK_OBJECT_HANDLE hUnwrappingKey, CK_BYTE_PTR pWrappedKey,
  31. CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate,
  32. CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey)
  33. {
  34. (void) hSession;
  35. (void) pMechanism;
  36. (void) hUnwrappingKey;
  37. (void) pWrappedKey;
  38. (void) ulWrappedKeyLen;
  39. (void) pTemplate;
  40. (void) ulAttributeCount;
  41. (void) phKey;
  42. return CKR_FUNCTION_NOT_SUPPORTED;
  43. }