Lines Matching refs:ret
94 int ret = 1;
107 ret = ssl_read_internal(ssl, buf, size, readbytes);
109 switch (SSL_get_error(ssl, ret)) {
159 return ret;
164 int ret, r = 0;
176 ret = ssl_write_internal(ssl, buf, size, written);
178 switch (SSL_get_error(ssl, ret)) {
221 return ret;
229 long ret = 1;
247 ret = 0;
252 ret = BIO_ctrl(next, cmd, num, ptr);
254 ret = BIO_ctrl(ssl->rbio, cmd, num, ptr);
256 ret = 1;
259 ret = 0;
268 ret = bs->renegotiate_timeout;
275 ret = bs->renegotiate_count;
280 ret = bs->num_renegotiates;
306 ret = 0;
309 ret = BIO_get_shutdown(b);
315 ret = BIO_ctrl(ssl->wbio, cmd, num, ptr);
318 ret = SSL_pending(ssl);
319 if (ret == 0)
320 ret = BIO_pending(ssl->rbio);
324 ret = BIO_ctrl(ssl->wbio, cmd, num, ptr);
348 ret = (int)SSL_do_handshake(ssl);
350 switch (SSL_get_error(ssl, (int)ret)) {
379 ret = (dbs->ssl != NULL);
382 ret = BIO_ctrl(ssl->rbio, cmd, num, ptr);
385 ret = 0; /* use callback ctrl */
388 ret = BIO_ctrl(ssl->rbio, cmd, num, ptr);
391 return ret;
398 long ret = 1;
404 ret = BIO_callback_ctrl(ssl->rbio, cmd, fp);
407 ret = 0;
410 return ret;
415 int n, ret;
418 ret = BIO_write(bp, str, n);
419 return ret;
425 BIO *ret = NULL, *buf = NULL, *ssl = NULL;
431 if ((ret = BIO_push(buf, ssl)) == NULL)
433 return ret;
444 BIO *ret = NULL, *con = NULL, *ssl = NULL;
450 if ((ret = BIO_push(ssl, con)) == NULL)
452 return ret;
461 BIO *ret;
464 if ((ret = BIO_new(BIO_f_ssl())) == NULL)
467 BIO_free(ret);
475 BIO_set_ssl(ret, ssl, BIO_CLOSE);
476 return ret;