Skip to content

Commit 2b708be

Browse files
Antti KauppilaArto Kinnunen
authored andcommitted
trace group defiined for shared_rng
Unittests fixed 2 mbedtls functions were updated to reflect the api
1 parent d4c2cac commit 2b708be

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/coap-service/unittest/stub/mbedtls_stub.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,11 @@ void mbedtls_hmac_drbg_free( mbedtls_hmac_drbg_context *ctx )
260260
}
261261

262262
int mbedtls_hmac_drbg_seed( mbedtls_hmac_drbg_context *ctx,
263-
mbedtls_md_handle_t md_info,
264-
int (*f_entropy)(void *, unsigned char *, size_t),
265-
void *p_entropy,
266-
const unsigned char *custom,
267-
size_t len )
263+
const mbedtls_md_info_t * md_info,
264+
int (*f_entropy)(void *, unsigned char *, size_t),
265+
void *p_entropy,
266+
const unsigned char *custom,
267+
size_t len )
268268
{
269269
return mbedtls_stub.crt_expected_int;
270270
}
@@ -275,7 +275,7 @@ int mbedtls_hmac_drbg_random( void *p_rng, unsigned char *output, size_t out_len
275275
}
276276

277277
// from md.h
278-
mbedtls_md_handle_t mbedtls_md_info_from_type( mbedtls_md_type_t md_type )
278+
const mbedtls_md_info_t *mbedtls_md_info_from_type( mbedtls_md_type_t md_type )
279279
{
280280
return 0;
281281
}

0 commit comments

Comments
 (0)