remote.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Copyright (c) 2014 Red Hat Inc.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * * Redistributions of source code must retain the above
  9. * copyright notice, this list of conditions and the
  10. * following disclaimer.
  11. * * Redistributions in binary form must reproduce the
  12. * above copyright notice, this list of conditions and
  13. * the following disclaimer in the documentation and/or
  14. * other materials provided with the distribution.
  15. * * The names of contributors to this software may not be
  16. * used to endorse or promote products derived from this
  17. * software without specific prior written permission.
  18. *
  19. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  22. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  23. * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  24. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  25. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  26. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  27. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  28. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  29. * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  30. * DAMAGE.
  31. *
  32. * Author: Stef Walter <stefw@redhat.com>
  33. */
  34. #ifndef __P11_KIT_REMOTE_H__
  35. #define __P11_KIT_REMOTE_H__
  36. #include "p11-kit/p11-kit.h"
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40. #ifdef P11_KIT_FUTURE_UNSTABLE_API
  41. int p11_kit_remote_serve_module (CK_FUNCTION_LIST *module,
  42. int in_fd,
  43. int out_fd);
  44. #ifndef P11_KIT_DISABLE_DEPRECATED
  45. int p11_kit_remote_serve_token (CK_FUNCTION_LIST *module,
  46. CK_TOKEN_INFO *token,
  47. int in_fd,
  48. int out_fd);
  49. #endif /* P11_KIT_DISABLE_DEPRECATED */
  50. int p11_kit_remote_serve_tokens (const char **tokens,
  51. size_t n_tokens,
  52. CK_FUNCTION_LIST *provider,
  53. int in_fd,
  54. int out_fd);
  55. #endif
  56. #ifdef __cplusplus
  57. } /* extern "C" */
  58. #endif
  59. #endif /* __P11_KIT_REMOTE_H__ */