Lines Matching refs:applen
862 size_t applen; in bearssl_send() local
870 app = br_ssl_engine_sendapp_buf(&backend->ctx.eng, &applen); in bearssl_send()
877 applen = backend->pending_write; in bearssl_send()
879 return applen; in bearssl_send()
881 if(applen > len) in bearssl_send()
882 applen = len; in bearssl_send()
883 memcpy(app, buf, applen); in bearssl_send()
884 br_ssl_engine_sendapp_ack(&backend->ctx.eng, applen); in bearssl_send()
886 backend->pending_write = applen; in bearssl_send()
897 size_t applen; in bearssl_recv() local
904 app = br_ssl_engine_recvapp_buf(&backend->ctx.eng, &applen); in bearssl_recv()
907 if(applen > len) in bearssl_recv()
908 applen = len; in bearssl_recv()
909 memcpy(buf, app, applen); in bearssl_recv()
910 br_ssl_engine_recvapp_ack(&backend->ctx.eng, applen); in bearssl_recv()
912 return applen; in bearssl_recv()