SSL_SESSION_get_ex_new_index.pod 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. =pod
  2. =head1 NAME
  3. SSL_SESSION_get_ex_new_index, SSL_SESSION_set_ex_data, SSL_SESSION_get_ex_data - internal application specific data functions
  4. =head1 SYNOPSIS
  5. #include <openssl/ssl.h>
  6. int SSL_SESSION_get_ex_new_index(long argl, void *argp,
  7. CRYPTO_EX_new *new_func,
  8. CRYPTO_EX_dup *dup_func,
  9. CRYPTO_EX_free *free_func);
  10. int SSL_SESSION_set_ex_data(SSL_SESSION *session, int idx, void *arg);
  11. void *SSL_SESSION_get_ex_data(const SSL_SESSION *session, int idx);
  12. typedef int new_func(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
  13. int idx, long argl, void *argp);
  14. typedef void free_func(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
  15. int idx, long argl, void *argp);
  16. typedef int dup_func(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, void *from_d,
  17. int idx, long argl, void *argp);
  18. =head1 DESCRIPTION
  19. Several OpenSSL structures can have application specific data attached to them.
  20. These functions are used internally by OpenSSL to manipulate application
  21. specific data attached to a specific structure.
  22. SSL_SESSION_get_ex_new_index() is used to register a new index for application
  23. specific data.
  24. SSL_SESSION_set_ex_data() is used to store application data at B<arg> for B<idx>
  25. into the B<session> object.
  26. SSL_SESSION_get_ex_data() is used to retrieve the information for B<idx> from
  27. B<session>.
  28. A detailed description for the B<*_get_ex_new_index()> functionality
  29. can be found in L<RSA_get_ex_new_index(3)|RSA_get_ex_new_index(3)>.
  30. The B<*_get_ex_data()> and B<*_set_ex_data()> functionality is described in
  31. L<CRYPTO_set_ex_data(3)|CRYPTO_set_ex_data(3)>.
  32. =head1 WARNINGS
  33. The application data is only maintained for sessions held in memory. The
  34. application data is not included when dumping the session with
  35. i2d_SSL_SESSION() (and all functions indirectly calling the dump functions
  36. like PEM_write_SSL_SESSION() and PEM_write_bio_SSL_SESSION()) and can
  37. therefore not be restored.
  38. =head1 SEE ALSO
  39. L<ssl(3)|ssl(3)>,
  40. L<RSA_get_ex_new_index(3)|RSA_get_ex_new_index(3)>,
  41. L<CRYPTO_set_ex_data(3)|CRYPTO_set_ex_data(3)>
  42. =cut