2
0

d2i_DHparams.pod 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. =pod
  2. =head1 NAME
  3. d2i_DHparams, i2d_DHparams - PKCS#3 DH parameter functions
  4. =head1 SYNOPSIS
  5. #include <openssl/dh.h>
  6. DH *d2i_DHparams(DH **a, unsigned char **pp, long length);
  7. int i2d_DHparams(DH *a, unsigned char **pp);
  8. =head1 DESCRIPTION
  9. These functions decode and encode PKCS#3 DH parameters using the
  10. DHparameter structure described in PKCS#3.
  11. Otherwise these behave in a similar way to d2i_X509() and i2d_X509()
  12. described in the L<d2i_X509(3)> manual page.
  13. =head1 RETURN VALUES
  14. d2i_DHparams() returns a valid B<DH> structure or NULL if an error occurred.
  15. i2d_DHparams() returns the length of encoded data on success or a value which
  16. is less than or equal to 0 on error.
  17. =head1 SEE ALSO
  18. L<d2i_X509(3)>
  19. =head1 COPYRIGHT
  20. Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
  21. Licensed under the OpenSSL license (the "License"). You may not use
  22. this file except in compliance with the License. You can obtain a copy
  23. in the file LICENSE in the source distribution or at
  24. L<https://www.openssl.org/source/license.html>.
  25. =cut