p11-copyobject.c 1.8 KB

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