X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195..420ff9d9379a8d93f2c90f026a797bdea1eb4517:/libsecurity_ssl/sslViewer/sslServer.cpp?ds=inline diff --git a/libsecurity_ssl/sslViewer/sslServer.cpp b/libsecurity_ssl/sslViewer/sslServer.cpp index 2cb0ce75..0fc0d541 100644 --- a/libsecurity_ssl/sslViewer/sslServer.cpp +++ b/libsecurity_ssl/sslViewer/sslServer.cpp @@ -33,7 +33,7 @@ #include "ioSock.h" #include "fileIo.h" -#include +#include #include #include #include @@ -446,7 +446,7 @@ static OSStatus sslServe( } if(e) { printf("***SSLGetAllowAnonymousCiphers() returned true; expected false\n"); - ortn = ioErr; + ortn = errSecIO; goto cleanup; } } @@ -495,7 +495,7 @@ static OSStatus sslServe( } /* 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) { @@ -527,7 +527,7 @@ static OSStatus sslServe( } } if (ortn == errSSLWouldBlock) { - ortn = noErr; + ortn = errSecSuccess; } } @@ -550,7 +550,7 @@ cleanup: * 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) {