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 DH_new, DH_free - allocate and free DH objects
      6      1.1  christos 
      7      1.1  christos =head1 SYNOPSIS
      8      1.1  christos 
      9      1.1  christos  #include <openssl/dh.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  DH* DH_new(void);
     16      1.1  christos 
     17      1.1  christos  void DH_free(DH *dh);
     18      1.1  christos 
     19      1.1  christos =head1 DESCRIPTION
     20      1.1  christos 
     21      1.1  christos DH_new() allocates and initializes a B<DH> structure.
     22      1.1  christos 
     23      1.1  christos DH_free() frees the B<DH> structure and its components. The values are
     24      1.1  christos erased before the memory is returned to the system.
     25      1.1  christos If B<dh> is NULL nothing is done.
     26      1.1  christos 
     27      1.1  christos =head1 RETURN VALUES
     28      1.1  christos 
     29      1.1  christos If the allocation fails, DH_new() returns B<NULL> and sets an error
     30      1.1  christos code that can be obtained by L<ERR_get_error(3)>. Otherwise it returns
     31      1.1  christos a pointer to the newly allocated structure.
     32      1.1  christos 
     33      1.1  christos DH_free() returns no value.
     34      1.1  christos 
     35      1.1  christos =head1 SEE ALSO
     36      1.1  christos 
     37      1.1  christos L<DH_new(3)>, L<ERR_get_error(3)>,
     38      1.1  christos L<DH_generate_parameters(3)>,
     39  1.1.1.2  christos L<DH_generate_key(3)>,
     40  1.1.1.2  christos L<EVP_PKEY-DH(7)>
     41  1.1.1.2  christos 
     42  1.1.1.2  christos =head1 HISTORY
     43  1.1.1.2  christos 
     44  1.1.1.2  christos All of these functions were deprecated in OpenSSL 3.0.
     45  1.1.1.2  christos 
     46  1.1.1.2  christos For replacement see EVP_PKEY-DH(7).
     47      1.1  christos 
     48      1.1  christos =head1 COPYRIGHT
     49      1.1  christos 
     50  1.1.1.2  christos Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved.
     51      1.1  christos 
     52  1.1.1.2  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     53      1.1  christos this file except in compliance with the License.  You can obtain a copy
     54      1.1  christos in the file LICENSE in the source distribution or at
     55      1.1  christos L<https://www.openssl.org/source/license.html>.
     56      1.1  christos 
     57      1.1  christos =cut
     58