You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
883 B

1 year ago
  1. /**
  2. * @file openpgp_compat.c
  3. * @brief Exposes functions that provide non-generic PGP-specific functionality (largely related to PGP
  4. * keyrings) to adapters that need them without polluting the engine interface.
  5. * @license GNU General Public License 3.0 - see LICENSE.txt
  6. */
  7. #include "pEp_internal.h"
  8. #include "dynamic_api.h"
  9. #include "openpgp_compat.h"
  10. DYNAMIC_API PEP_STATUS OpenPGP_list_keyinfo (
  11. PEP_SESSION session, const char* search_pattern, stringpair_list_t** keyinfo_list
  12. )
  13. {
  14. assert(session);
  15. assert(keyinfo_list);
  16. if (!(session && keyinfo_list))
  17. return PEP_ILLEGAL_VALUE;
  18. stringpair_list_t* _keyinfo_list = NULL;
  19. PEP_STATUS retval = pgp_list_keyinfo(session, search_pattern, &_keyinfo_list);
  20. if (retval == PEP_STATUS_OK)
  21. *keyinfo_list = _keyinfo_list;
  22. return retval;
  23. }