Lines Matching refs:ret
340 int ret = 0;
347 ret = outl;
350 ret = (int)data->pdu_len;
357 ret = -1;
360 if (ret < 0)
363 return ret;
368 int ret = 0;
382 ret = (int)data->session->sock.lfunc[COAP_LAYER_TLS].l_write(data->session,
386 if (ret <= 0)
390 ret = -1;
392 return ret;
402 long ret = 1;
409 ret = BIO_get_shutdown(a);
413 ret = 1;
426 ret = -1;
432 ret = 1;
437 ret = 1;
456 ret = 0;
459 return ret;
644 coap_dtls_info_callback(const SSL *ssl, int where, int ret) {
662 if ((where & (SSL_CB_WRITE|SSL_CB_READ)) && (ret >> 8) == SSL3_AL_FATAL) {
664 if ((ret & 0xff) != SSL3_AD_CLOSE_NOTIFY)
671 SSL_alert_type_string_long(ret),
672 SSL_alert_desc_string_long(ret));
674 if (ret == 0) {
684 } else if (ret < 0) {
686 int err = SSL_get_error(ssl, ret);
727 int ret = 0;
731 ret =(int)session->sock.lfunc[COAP_LAYER_TLS].l_read(session, (u_char *)out,
734 if (ret == 0) {
736 ret = -1;
741 return ret;
752 int ret = 0;
755 ret = (int)session->sock.lfunc[COAP_LAYER_TLS].l_write(session,
760 if (ret == 0) {
762 ret = -1;
765 if (ret == -1) {
780 ret = inl;
784 return ret;
1068 int ret;
1071 ret = SSL_select_next_proto(&tout,
1078 return (ret != OPENSSL_NPN_NEGOTIATED) ? SSL_TLSEXT_ERR_NOACK : SSL_TLSEXT_ERR_OK;
2985 int ret = SSL_get_error(ssl, r);
2986 if (ret != SSL_ERROR_WANT_READ && ret != SSL_ERROR_WANT_WRITE)
3209 coap_log_debug("coap_dtls_receive: ret %d: remaining data %u\n", r, ssl_data->pdu_len);
3302 int ret = SSL_get_error(ssl, r);
3303 if (ret != SSL_ERROR_WANT_READ && ret != SSL_ERROR_WANT_WRITE)
3305 if (ret == SSL_ERROR_WANT_READ)
3307 if (ret == SSL_ERROR_WANT_WRITE) {
3600 int ret = EVP_DigestFinal_ex(digest_ctx, (uint8_t *)digest_buffer, &size);
3603 return ret;