[gnutls-help] pthread safety

Wei Cheng chengwei.clx at gmail.com
Mon Jul 24 11:55:42 CEST 2017


sorry about my english,so i send again.thread safety in GNUTLS
<https://security.stackexchange.com/questions/165861/thread-safety-in-gnutls>

The version of GNUTLS is 3.5. I want to use a child thread to handshake
with remote peer. In my child thread, I just use gnutls_handshake().

   1.

   In the parent thread, can I use pthread_cancel() to cancel the child
   thread safety regardless of the current handshake state?
   2.

   If I have registered the pull/pull_timeout/push functions with
   pthread_cleanup_push/pthread_cleanup_pop, can I cancel the child thread?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20170724/7f9f48eb/attachment.html>


More information about the Gnutls-help mailing list