DSA_new.pod 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. =pod
  2. =head1 NAME
  3. DSA_new, DSA_free - allocate and free DSA objects
  4. =head1 SYNOPSIS
  5. #include <openssl/dsa.h>
  6. DSA* DSA_new(void);
  7. void DSA_free(DSA *dsa);
  8. =head1 DESCRIPTION
  9. DSA_new() allocates and initializes a B<DSA> structure. It is equivalent to
  10. calling DSA_new_method(NULL).
  11. DSA_free() frees the B<DSA> structure and its components. The values are
  12. erased before the memory is returned to the system.
  13. If B<dsa> is NULL nothing is done.
  14. =head1 RETURN VALUES
  15. If the allocation fails, DSA_new() returns B<NULL> and sets an error
  16. code that can be obtained by
  17. L<ERR_get_error(3)>. Otherwise it returns a pointer
  18. to the newly allocated structure.
  19. DSA_free() returns no value.
  20. =head1 SEE ALSO
  21. L<DSA_new(3)>, L<ERR_get_error(3)>,
  22. L<DSA_generate_parameters(3)>,
  23. L<DSA_generate_key(3)>
  24. =head1 COPYRIGHT
  25. Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
  26. Licensed under the OpenSSL license (the "License"). You may not use
  27. this file except in compliance with the License. You can obtain a copy
  28. in the file LICENSE in the source distribution or at
  29. L<https://www.openssl.org/source/license.html>.
  30. =cut