SHARE
TWEET

Untitled

a guest Jul 19th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def  ssl_close():
  2. if (!SSL_shutdown(m_ssl)):
  3.     …
  4.     shutdown(SSL_get_fd(m_ssl), SHUT_WR);
  5.     SSL_shutdown(m_ssl)
  6.     ...
  7.      
  8. tcp        0      0 192.168.133.135:52453   10.203.136.169:4122     FIN_WAIT2   off (0.00/0/0)
  9.      
  10. 51     r=SSL_shutdown(ssl);
  11. 52     if(!r){
  12. 53         /* If we called SSL_shutdown() first then
  13. 54            we always get return value of ’0’. In
  14. 55            this case, try again, but first send a
  15. 56            TCP FIN to trigger the other side’s
  16. 57            close_notify */
  17. 58         shutdown(s,1);
  18. 59         r=SSL_shutdown(ssl);
  19. 60     }
  20. 61
  21. 62     switch(r){
  22. 63     case 1:
  23. 64         break; /* Success */
  24. 65     case 0:
  25. 66     case -1:
  26. 67     default:
  27. 68         berr_exit("Shutdown failed");
  28. 69     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top