SSL_CTX_set_tmp_ecdh.pod 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. =pod
  2. =head1 NAME
  3. SSL_CTX_set_tmp_ecdh, SSL_set_tmp_ecdh, SSL_CTX_set_ecdh_auto, SSL_set_ecdh_auto
  4. - handle ECDH keys for ephemeral key exchange
  5. =head1 SYNOPSIS
  6. #include <openssl/ssl.h>
  7. long SSL_CTX_set_tmp_ecdh(SSL_CTX *ctx, const EC_KEY *ecdh);
  8. long SSL_set_tmp_ecdh(SSL *ssl, const EC_KEY *ecdh);
  9. long SSL_CTX_set_ecdh_auto(SSL_CTX *ctx, int state);
  10. long SSL_set_ecdh_auto(SSL *ssl, int state);
  11. =head1 DESCRIPTION
  12. SSL_CTX_set_tmp_ecdh() sets ECDH parameters to be used to be B<ecdh>.
  13. The key is inherited by all B<ssl> objects created from B<ctx>.
  14. This macro is deprecated in favor of L<SSL_CTX_set1_groups(3)>.
  15. SSL_set_tmp_ecdh() sets the parameters only for B<ssl>.
  16. This macro is deprecated in favor of L<SSL_set1_groups(3)>.
  17. SSL_CTX_set_ecdh_auto() and SSL_set_ecdh_auto() are deprecated and
  18. have no effect.
  19. =head1 RETURN VALUES
  20. SSL_CTX_set_tmp_ecdh() and SSL_set_tmp_ecdh() return 1 on success and 0
  21. on failure.
  22. =head1 SEE ALSO
  23. L<ssl(7)>, L<SSL_CTX_set1_curves(3)>, L<SSL_CTX_set_cipher_list(3)>,
  24. L<SSL_CTX_set_options(3)>, L<SSL_CTX_set_tmp_dh_callback(3)>,
  25. L<ciphers(1)>, L<ecparam(1)>
  26. =head1 COPYRIGHT
  27. Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
  28. Licensed under the Apache License 2.0 (the "License"). You may not use
  29. this file except in compliance with the License. You can obtain a copy
  30. in the file LICENSE in the source distribution or at
  31. L<https://www.openssl.org/source/license.html>.
  32. =cut