7 #include <Security/SecureTransport.h>
8 #include "ssl_regressions.h"
11 OSStatus
r(SSLConnectionRef connection
, void *data
, size_t *dataLength
) {
12 return errSSLWouldBlock
;
16 OSStatus
w(SSLConnectionRef connection
, const void *data
, size_t *dataLength
) {
17 return errSSLWouldBlock
;
20 //Testing <rdar://problem/13539215> Trivial SecureTransport example crashes on Cab, where it worked on Zin
26 ctx
= SSLCreateContext(NULL
, kSSLClientSide
, kSSLStreamType
);
27 SSLSetIOFuncs(ctx
, r
, w
);
28 ortn
= SSLHandshake(ctx
);
30 is(ortn
, errSSLWouldBlock
, "SSLHandshake unexpected return\n");
36 int ssl_52_noconn(int argc
, char *const *argv
)