OSSL_ITEM.pod 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. =pod
  2. =head1 NAME
  3. OSSL_ITEM - OpenSSL Core type for generic itemized data
  4. =head1 SYNOPSIS
  5. #include <openssl/core.h>
  6. typedef struct ossl_item_st OSSL_ITEM;
  7. struct ossl_item_st {
  8. unsigned int id;
  9. void *ptr;
  10. };
  11. =head1 DESCRIPTION
  12. This type is a tuple of integer and pointer.
  13. It's a generic type used as a generic descriptor, its exact meaning
  14. being defined by how it's used.
  15. Arrays of this type are passed between the OpenSSL libraries and the
  16. providers, and must be terminated with a tuple where the integer is
  17. zero and the pointer NULL.
  18. This is currently mainly used for the return value of the provider's error
  19. reason strings array, see L<provider-base(7)/Provider Functions>.
  20. =begin comment RETURN VALUES doesn't make sense for a manual that only
  21. describes a type, but document checkers still want that section, and
  22. to have more than just the section title.
  23. =head1 RETURN VALUES
  24. txt
  25. =end comment
  26. =head1 SEE ALSO
  27. L<crypto(7)>, L<provider-base(7)>, L<openssl-core.h(7)>
  28. =head1 HISTORY
  29. B<OSSL_ITEM> was added in OpenSSL 3.0
  30. =head1 COPYRIGHT
  31. Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
  32. Licensed under the Apache License 2.0 (the "License"). You may not use
  33. this file except in compliance with the License. You can obtain a copy
  34. in the file LICENSE in the source distribution or at
  35. L<https://www.openssl.org/source/license.html>.
  36. =cut