DSA_new.pod 945 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. =head1 RETURN VALUES
  14. If the allocation fails, DSA_new() returns B<NULL> and sets an error
  15. code that can be obtained by
  16. L<ERR_get_error(3)|ERR_get_error(3)>. Otherwise it returns a pointer
  17. to the newly allocated structure.
  18. DSA_free() returns no value.
  19. =head1 SEE ALSO
  20. L<dsa(3)|dsa(3)>, L<ERR_get_error(3)|ERR_get_error(3)>,
  21. L<DSA_generate_parameters(3)|DSA_generate_parameters(3)>,
  22. L<DSA_generate_key(3)|DSA_generate_key(3)>
  23. =head1 HISTORY
  24. DSA_new() and DSA_free() are available in all versions of SSLeay and OpenSSL.
  25. =cut