ERR_remove_state.pod 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. =pod
  2. =head1 NAME
  3. ERR_remove_thread_state, ERR_remove_state - free a thread's error queue
  4. =head1 SYNOPSIS
  5. #include <openssl/err.h>
  6. void ERR_remove_thread_state(const CRYPTO_THREADID *tid);
  7. Deprecated:
  8. void ERR_remove_state(unsigned long pid);
  9. =head1 DESCRIPTION
  10. ERR_remove_thread_state() frees the error queue associated with thread B<tid>.
  11. If B<tid> == B<NULL>, the current thread will have its error queue removed.
  12. Since error queue data structures are allocated automatically for new
  13. threads, they must be freed when threads are terminated in order to
  14. avoid memory leaks.
  15. ERR_remove_state is deprecated and has been replaced by
  16. ERR_remove_thread_state. Since threads in OpenSSL are no longer identified
  17. by unsigned long values any argument to this function is ignored. Calling
  18. ERR_remove_state is equivalent to B<ERR_remove_thread_state(NULL)>.
  19. =head1 RETURN VALUE
  20. ERR_remove_thread_state and ERR_remove_state() return no value.
  21. =head1 SEE ALSO
  22. L<err(3)|err(3)>
  23. =head1 HISTORY
  24. ERR_remove_state() is available in all versions of SSLeay and OpenSSL. It
  25. was deprecated in OpenSSL 1.0.0 when ERR_remove_thread_state was introduced
  26. and thread IDs were introduced to identify threads instead of 'unsigned long'.
  27. =cut