Home | History | Annotate | Line # | Download | only in man3
      1      1.1  christos =pod
      2      1.1  christos 
      3      1.1  christos =head1 NAME
      4      1.1  christos 
      5      1.1  christos DSA_new, DSA_free - allocate and free DSA objects
      6      1.1  christos 
      7      1.1  christos =head1 SYNOPSIS
      8      1.1  christos 
      9      1.1  christos  #include <openssl/dsa.h>
     10      1.1  christos 
     11  1.1.1.2  christos The following functions have been deprecated since OpenSSL 3.0, and can be
     12  1.1.1.2  christos hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
     13  1.1.1.2  christos see L<openssl_user_macros(7)>:
     14  1.1.1.2  christos 
     15      1.1  christos  DSA* DSA_new(void);
     16      1.1  christos 
     17      1.1  christos  void DSA_free(DSA *dsa);
     18      1.1  christos 
     19      1.1  christos =head1 DESCRIPTION
     20      1.1  christos 
     21  1.1.1.2  christos All of the functions described on this page are deprecated.
     22  1.1.1.2  christos Applications should instead use L<EVP_PKEY_new(3)> and L<EVP_PKEY_free(3)>.
     23  1.1.1.2  christos 
     24      1.1  christos DSA_new() allocates and initializes a B<DSA> structure. It is equivalent to
     25      1.1  christos calling DSA_new_method(NULL).
     26      1.1  christos 
     27      1.1  christos DSA_free() frees the B<DSA> structure and its components. The values are
     28      1.1  christos erased before the memory is returned to the system.
     29      1.1  christos If B<dsa> is NULL nothing is done.
     30      1.1  christos 
     31      1.1  christos =head1 RETURN VALUES
     32      1.1  christos 
     33      1.1  christos If the allocation fails, DSA_new() returns B<NULL> and sets an error
     34      1.1  christos code that can be obtained by
     35      1.1  christos L<ERR_get_error(3)>. Otherwise it returns a pointer
     36      1.1  christos to the newly allocated structure.
     37      1.1  christos 
     38      1.1  christos DSA_free() returns no value.
     39      1.1  christos 
     40      1.1  christos =head1 SEE ALSO
     41      1.1  christos 
     42  1.1.1.2  christos L<EVP_PKEY_new(3)>, L<EVP_PKEY_free(3)>,
     43      1.1  christos L<DSA_new(3)>, L<ERR_get_error(3)>,
     44      1.1  christos L<DSA_generate_parameters(3)>,
     45      1.1  christos L<DSA_generate_key(3)>
     46      1.1  christos 
     47  1.1.1.2  christos =head1 HISTORY
     48  1.1.1.2  christos 
     49  1.1.1.2  christos All of these functions were deprecated in OpenSSL 3.0.
     50  1.1.1.2  christos 
     51      1.1  christos =head1 COPYRIGHT
     52      1.1  christos 
     53  1.1.1.2  christos Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
     54      1.1  christos 
     55  1.1.1.2  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     56      1.1  christos this file except in compliance with the License.  You can obtain a copy
     57      1.1  christos in the file LICENSE in the source distribution or at
     58      1.1  christos L<https://www.openssl.org/source/license.html>.
     59      1.1  christos 
     60      1.1  christos =cut
     61