Core: Drop custom copymem/zeromem defines
We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. There was still the possibility for third-party platform ports to override the definitions with a custom header, but this doesn't seem useful anymore.
This commit is contained in:
parent
288f484d0a
commit
8247667a3e
70 changed files with 200 additions and 268 deletions
|
|
@ -74,7 +74,7 @@ int PacketPeerMbedDTLS::bio_recv(void *ctx, unsigned char *buf, size_t len) {
|
|||
if (err != OK) {
|
||||
return MBEDTLS_ERR_SSL_INTERNAL_ERROR;
|
||||
}
|
||||
copymem(buf, buffer, buffer_size);
|
||||
memcpy(buf, buffer, buffer_size);
|
||||
return buffer_size;
|
||||
}
|
||||
|
||||
|
|
@ -89,8 +89,8 @@ int PacketPeerMbedDTLS::_set_cookie() {
|
|||
uint8_t client_id[18];
|
||||
IP_Address addr = base->get_packet_address();
|
||||
uint16_t port = base->get_packet_port();
|
||||
copymem(client_id, addr.get_ipv6(), 16);
|
||||
copymem(&client_id[16], (uint8_t *)&port, 2);
|
||||
memcpy(client_id, addr.get_ipv6(), 16);
|
||||
memcpy(&client_id[16], (uint8_t *)&port, 2);
|
||||
return mbedtls_ssl_set_client_transport_id(ssl_ctx->get_context(), client_id, 18);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue