2
0

EVP_PKEY_get_group_name.pod 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. =pod
  2. =head1 NAME
  3. EVP_PKEY_get_group_name - get group name of a key
  4. =head1 SYNOPSIS
  5. #include <openssl/evp.h>
  6. int EVP_PKEY_get_group_name(EVP_PKEY *pkey, char *gname, size_t gname_sz,
  7. size_t *gname_len);
  8. =head1 DESCRIPTION
  9. EVP_PKEY_get_group_name() fills in the group name of the I<pkey> into
  10. I<gname>, up to at most I<gname_sz> bytes including the ending NUL byte
  11. and assigns I<*gname_len> the actual length of the name not including
  12. the NUL byte, if I<pkey>'s key type supports it.
  13. I<gname> as well as I<gname_len> may individually be NULL, and won't be
  14. filled in or assigned in that case.
  15. =head1 NOTES
  16. Among the standard OpenSSL key types, this is only supported for DH, EC and
  17. SM2 keys. Other providers may support this for additional key types.
  18. =head1 RETURN VALUES
  19. EVP_PKEY_get_group_name() returns 1 if the group name could be filled in,
  20. otherwise 0.
  21. =head1 HISTORY
  22. This function was added in OpenSSL 3.0.
  23. =head1 COPYRIGHT
  24. Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
  25. Licensed under the Apache License 2.0 (the "License"). You may not use
  26. this file except in compliance with the License. You can obtain a copy
  27. in the file LICENSE in the source distribution or at
  28. L<https://www.openssl.org/source/license.html>.
  29. =cut