Plugins/Purple Service/libpurple_extensions/ssl-cdsa.c
branchadium-1.5.11
changeset 5894 60d7d05396d7
parent 5881 5a62e233115d
child 5896 9db8b48c8cf6
equal deleted inserted replaced
5892:11518a4e520d 5894:60d7d05396d7
   642 				result = ((processed > 0) ? processed : -1);
   642 				result = ((processed > 0) ? processed : -1);
   643 				break;
   643 				break;
   644 			case errSSLClosedGraceful:
   644 			case errSSLClosedGraceful:
   645 				result = 0;
   645 				result = 0;
   646 				break;
   646 				break;
       
   647 			case errSSLClosedNoNotify:
       
   648 				result = ((processed > 0) ? processed : 0);
       
   649 				purple_debug_info("cdsa", "receive got a premature termination" );
       
   650 				break;
       
   651 			case errSSLClosedAbort:
       
   652 				result = ((processed > 0) ? processed : 0);
       
   653 				purple_debug_info("cdsa", "receive got a premature termination" );
       
   654 				break;
   647 			default:
   655 			default:
   648 				result = -1;
   656 				result = -1;
   649 				purple_debug_error("cdsa", "receive failed (%d): %s\n", (int)err, strerror(errno));
   657 				purple_debug_error("cdsa", "receive failed (%d): %s\n", (int)err, strerror(errno));
   650 				break;
   658 				break;
   651 		}
   659 		}
   679 				errno = EAGAIN;
   687 				errno = EAGAIN;
   680 				result = ((processed > 0) ? processed : -1);
   688 				result = ((processed > 0) ? processed : -1);
   681 				break;
   689 				break;
   682 			case errSSLClosedGraceful:
   690 			case errSSLClosedGraceful:
   683 				result = 0;
   691 				result = 0;
       
   692 				break;
       
   693 			case errSSLClosedNoNotify:
       
   694 				result = ((processed > 0) ? processed : 0);
       
   695 				purple_debug_info("cdsa", "send got a premature termination" );
       
   696 				break;
       
   697 			case errSSLClosedAbort:
       
   698 				result = ((processed > 0) ? processed : 0);
       
   699 				purple_debug_info("cdsa", "send got a premature termination" );
   684 				break;
   700 				break;
   685 			default:
   701 			default:
   686 				result = -1;
   702 				result = -1;
   687 				purple_debug_error("cdsa", "send failed (%d): %s\n", (int)err, strerror(errno));
   703 				purple_debug_error("cdsa", "send failed (%d): %s\n", (int)err, strerror(errno));
   688 				break;
   704 				break;