DSA_new.pod 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. =pod
  2. =head1 NAME
  3. DSA_new, DSA_free - allocate and free DSA objects
  4. =head1 SYNOPSIS
  5. #include <openssl/dsa.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. DSA* DSA_new(void);
  10. void DSA_free(DSA *dsa);
  11. =head1 DESCRIPTION
  12. All of the functions described on this page are deprecated.
  13. Applications should instead use L<EVP_PKEY_new(3)> and L<EVP_PKEY_free(3)>.
  14. DSA_new() allocates and initializes a B<DSA> structure. It is equivalent to
  15. calling DSA_new_method(NULL).
  16. DSA_free() frees the B<DSA> structure and its components. The values are
  17. erased before the memory is returned to the system.
  18. If B<dsa> is NULL nothing is done.
  19. =head1 RETURN VALUES
  20. If the allocation fails, DSA_new() returns B<NULL> and sets an error
  21. code that can be obtained by
  22. L<ERR_get_error(3)>. Otherwise it returns a pointer
  23. to the newly allocated structure.
  24. DSA_free() returns no value.
  25. =head1 SEE ALSO
  26. L<EVP_PKEY_new(3)>, L<EVP_PKEY_free(3)>,
  27. L<DSA_new(3)>, L<ERR_get_error(3)>,
  28. L<DSA_generate_parameters(3)>,
  29. L<DSA_generate_key(3)>
  30. =head1 HISTORY
  31. All of these functions were deprecated in OpenSSL 3.0.
  32. =head1 COPYRIGHT
  33. Copyright 2000-2016 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