Lines Matching refs:ctx
39 SSLContextRef ctx = NULL;
59 ortn = SSLNewContext(false, &ctx);
64 ortn = SSLSetIOFuncs(ctx, SocketRead, SocketWrite);
69 ortn = SSLSetConnection(ctx, (SSLConnectionRef)sock);
75 ortn = SSLSetPeerDomainName(ctx, params->hostName,
85 ortn = sslAddTrustedRoot(ctx, params->anchorFile, params->replaceAnchors);
90 ortn = sslSetProtocols(ctx, params->acceptedProts, params->tryVersion);
95 ortn = SSLSetPeerID(ctx, &peerId, sizeof(PeerSpec));
102 ortn = SSLSetEnableCertVerify(ctx, false);
109 ortn = sslSetEnabledCiphers(ctx, params->ciphers);
129 ortn = addIdentityAsTrustedRoot(ctx, clientCerts);
134 ortn = SSLSetCertificate(ctx, clientCerts);
141 ortn = SSLHandshake(ctx);
148 SSLGetClientCertificateState(ctx, ¶ms->certState);
149 SSLGetNegotiatedCipher(ctx, ¶ms->negCipher);
150 SSLGetNegotiatedProtocolVersion(ctx, ¶ms->negVersion);
158 ortn = SSLWrite(ctx, CLIENT_GETMSG, strlen(CLIENT_GETMSG), &actLen);
171 ortn = SSLRead(ctx, readBuf, READBUF_LEN, &actLen);
181 if(ctx) {
182 OSStatus cerr = SSLClose(ctx);
190 if(ctx) {
191 SSLDisposeContext(ctx);