SSL_get_psk_identity.pod 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. =pod
  2. =begin comment
  3. Copyright 2005 Nokia. All rights reserved.
  4. The portions of the attached software ("Contribution") is developed by
  5. Nokia Corporation and is licensed pursuant to the OpenSSL open source
  6. license.
  7. The Contribution, originally written by Mika Kousa and Pasi Eronen of
  8. Nokia Corporation, consists of the "PSK" (Pre-Shared Key) ciphersuites
  9. support (see RFC 4279) to OpenSSL.
  10. No patent licenses or other rights except those expressly stated in
  11. the OpenSSL open source license shall be deemed granted or received
  12. expressly, by implication, estoppel, or otherwise.
  13. No assurances are provided by Nokia that the Contribution does not
  14. infringe the patent or other intellectual property rights of any third
  15. party or that the license provides you with all the necessary rights
  16. to make use of the Contribution.
  17. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. IN
  18. ADDITION TO THE DISCLAIMERS INCLUDED IN THE LICENSE, NOKIA
  19. SPECIFICALLY DISCLAIMS ANY LIABILITY FOR CLAIMS BROUGHT BY YOU OR ANY
  20. OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR
  21. OTHERWISE.
  22. =end comment
  23. =head1 NAME
  24. SSL_get_psk_identity, SSL_get_psk_identity_hint - get PSK client identity and hint
  25. =head1 SYNOPSIS
  26. #include <openssl/ssl.h>
  27. const char *SSL_get_psk_identity_hint(const SSL *ssl);
  28. const char *SSL_get_psk_identity(const SSL *ssl);
  29. =head1 DESCRIPTION
  30. SSL_get_psk_identity_hint() is used to retrieve the PSK identity hint
  31. used during the connection setup related to SSL object
  32. B<ssl>. Similarly, SSL_get_psk_identity() is used to retrieve the PSK
  33. identity used during the connection setup.
  34. =head1 RETURN VALUES
  35. If non-B<NULL>, SSL_get_psk_identity_hint() returns the PSK identity
  36. hint and SSL_get_psk_identity() returns the PSK identity. Both are
  37. B<NULL>-terminated. SSL_get_psk_identity_hint() may return B<NULL> if
  38. no PSK identity hint was used during the connection setup.
  39. Note that the return value is valid only during the lifetime of the
  40. SSL object B<ssl>.
  41. =cut