#include "ioSock.h"
#include "fileIo.h"
-#include <MacErrors.h>
+#include <Security/SecBase.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
}
if(e) {
printf("***SSLGetAllowAnonymousCiphers() returned true; expected false\n");
- ortn = ioErr;
+ ortn = errSecIO;
goto cleanup;
}
}
}
/* wait for one complete line or user says they've had enough */
- while(ortn == noErr) {
+ while(ortn == errSecSuccess) {
length = sizeof(rcvBuf);
ortn = SSLRead(ctx, rcvBuf, length, &length);
if(length == 0) {
}
}
if (ortn == errSSLWouldBlock) {
- ortn = noErr;
+ ortn = errSecSuccess;
}
}
* always do close, even on error - to flush outgoing write queue
*/
OSStatus cerr = SSLClose(ctx);
- if(ortn == noErr) {
+ if(ortn == errSecSuccess) {
ortn = cerr;
}
if(acceptSock) {