EVP_PKEY_meth_get_count.pod 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. =pod
  2. =head1 NAME
  3. EVP_PKEY_meth_get_count, EVP_PKEY_meth_get0, EVP_PKEY_meth_get0_info - enumerate public key methods
  4. =head1 SYNOPSIS
  5. #include <openssl/evp.h>
  6. The following functions have been deprecated since OpenSSL 3.0, and can be
  7. hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
  8. see L<openssl_user_macros(7)>:
  9. size_t EVP_PKEY_meth_get_count(void);
  10. const EVP_PKEY_METHOD *EVP_PKEY_meth_get0(size_t idx);
  11. void EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags,
  12. const EVP_PKEY_METHOD *meth);
  13. =head1 DESCRIPTION
  14. All of the functions described on this page are deprecated.
  15. Applications should instead use the OSSL_PROVIDER APIs.
  16. EVP_PKEY_meth_count() returns a count of the number of public key methods
  17. available: it includes standard methods and any methods added by the
  18. application.
  19. EVP_PKEY_meth_get0() returns the public key method B<idx>. The value of B<idx>
  20. must be between zero and EVP_PKEY_meth_get_count() - 1.
  21. EVP_PKEY_meth_get0_info() returns the public key ID (a NID) and any flags
  22. associated with the public key method B<*meth>.
  23. =head1 RETURN VALUES
  24. EVP_PKEY_meth_count() returns the number of available public key methods.
  25. EVP_PKEY_meth_get0() return a public key method or B<NULL> if B<idx> is
  26. out of range.
  27. EVP_PKEY_meth_get0_info() does not return a value.
  28. =head1 SEE ALSO
  29. L<EVP_PKEY_new(3)>
  30. =head1 HISTORY
  31. All of these functions were deprecated in OpenSSL 3.0.
  32. =head1 COPYRIGHT
  33. Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.
  34. Licensed under the Apache License 2.0 (the "License"). You may not use
  35. this file except in compliance with the License. You can obtain a copy
  36. in the file LICENSE in the source distribution or at
  37. L<https://www.openssl.org/source/license.html>.
  38. =cut