Lines Matching refs:model
197 static SECStatus set_ciphers(struct SessionHandle *data, PRFileDesc * model,
210 SSL_CipherPrefSet(model, SSL_ImplementedCiphers[i], PR_FALSE);
253 if(SSL_CipherPrefSet(model, cipherlist[i].num, PR_TRUE) != SECSuccess) {
1302 PRFileDesc *model = NULL;
1371 model = PR_NewTCPSocket();
1372 if(!model)
1374 model = SSL_ImportFD(NULL, model);
1376 if(SSL_OptionSet(model, SSL_SECURITY, PR_TRUE) != SECSuccess)
1378 if(SSL_OptionSet(model, SSL_HANDSHAKE_AS_SERVER, PR_FALSE) != SECSuccess)
1380 if(SSL_OptionSet(model, SSL_HANDSHAKE_AS_CLIENT, PR_TRUE) != SECSuccess)
1386 if(SSL_OptionSet(model, SSL_NO_CACHE, ssl_no_cache) != SECSuccess)
1392 if(SSL_VersionRangeSet(model, &sslver) != SECSuccess)
1399 if(SSL_OptionSet(model, SSL_CBC_RANDOM_IV, ssl_cbc_random_iv) != SECSuccess)
1411 if(set_ciphers(data, model, data->set.ssl.cipher_list) != SECSuccess) {
1422 if(SSL_AuthCertificateHook(model, nss_auth_cert_hook, conn) != SECSuccess)
1426 if(SSL_BadCertHook(model, BadCertHandler, conn) != SECSuccess)
1429 if(SSL_HandshakeCallback(model, HandshakeCallback, conn) != SECSuccess)
1472 if(SSL_GetClientAuthDataHook(model, SelectClientCert,
1478 /* Import our model socket onto the existing file descriptor */
1480 connssl->handle = SSL_ImportFD(model, connssl->handle);
1484 PR_Close(model); /* We don't need this any more */
1485 model = NULL;
1605 if(model)
1606 PR_Close(model);