mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-05 06:26:52 +00:00
Merge remote-tracking branch 'public/pr/2877' into baremetal
This commit is contained in:
commit
e2bf54d3d1
58 changed files with 221 additions and 196 deletions
|
|
@ -79,6 +79,19 @@ int main( void )
|
|||
#include <unistd.h>
|
||||
#endif /* ( _WIN32 || _WIN32_WCE ) && !EFIX64 && !EFI32 */
|
||||
|
||||
#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
|
||||
int mbedtls_hardware_poll( void *data, unsigned char *output,
|
||||
size_t len, size_t *olen )
|
||||
{
|
||||
size_t i;
|
||||
(void) data;
|
||||
for( i = 0; i < len; ++i )
|
||||
output[i] = rand();
|
||||
*olen = len;
|
||||
return( 0 );
|
||||
}
|
||||
#endif
|
||||
|
||||
#define MAX_MSG_SIZE 16384 + 2048 /* max record/datagram size */
|
||||
|
||||
#define DFL_SERVER_ADDR "localhost"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue