Lines Matching refs:applen
595 size_t applen; in bearssl_send() local
601 app = br_ssl_engine_sendapp_buf(&backend->ctx.eng, &applen); in bearssl_send()
608 applen = backend->pending_write; in bearssl_send()
610 return applen; in bearssl_send()
612 if(applen > len) in bearssl_send()
613 applen = len; in bearssl_send()
614 memcpy(app, buf, applen); in bearssl_send()
615 br_ssl_engine_sendapp_ack(&backend->ctx.eng, applen); in bearssl_send()
617 backend->pending_write = applen; in bearssl_send()
627 size_t applen; in bearssl_recv() local
632 app = br_ssl_engine_recvapp_buf(&backend->ctx.eng, &applen); in bearssl_recv()
635 if(applen > len) in bearssl_recv()
636 applen = len; in bearssl_recv()
637 memcpy(buf, app, applen); in bearssl_recv()
638 br_ssl_engine_recvapp_ack(&backend->ctx.eng, applen); in bearssl_recv()
640 return applen; in bearssl_recv()