mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
remove RNG parameters from SSL API's
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
@@ -108,7 +108,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (mbedtls_ssl_cookie_setup(&cookie_ctx, dummy_random, &ctr_drbg) != 0) {
|
||||
if (mbedtls_ssl_cookie_setup(&cookie_ctx) != 0) {
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
@@ -132,8 +132,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
|
||||
#if defined(MBEDTLS_SSL_SESSION_TICKETS) && defined(MBEDTLS_SSL_TICKET_C)
|
||||
if (options & 0x4) {
|
||||
if (mbedtls_ssl_ticket_setup(&ticket_ctx, //context
|
||||
dummy_random, //f_rng
|
||||
&ctr_drbg, //p_rng
|
||||
PSA_ALG_GCM, //alg
|
||||
PSA_KEY_TYPE_AES, //key_type
|
||||
256, //key_bits
|
||||
|
@@ -216,8 +216,7 @@ int main(void)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if ((ret = mbedtls_ssl_cookie_setup(&cookie_ctx,
|
||||
mbedtls_ctr_drbg_random, &ctr_drbg)) != 0) {
|
||||
if ((ret = mbedtls_ssl_cookie_setup(&cookie_ctx)) != 0) {
|
||||
printf(" failed\n ! mbedtls_ssl_cookie_setup returned %d\n\n", ret);
|
||||
goto exit;
|
||||
}
|
||||
|
@@ -2971,8 +2971,6 @@ usage:
|
||||
#endif /* MBEDTLS_HAVE_TIME */
|
||||
{
|
||||
if ((ret = mbedtls_ssl_ticket_setup(&ticket_ctx,
|
||||
rng_get,
|
||||
&rng,
|
||||
opt.ticket_alg,
|
||||
opt.ticket_key_type,
|
||||
opt.ticket_key_bits,
|
||||
@@ -3014,8 +3012,7 @@ usage:
|
||||
if (opt.transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM) {
|
||||
#if defined(MBEDTLS_SSL_COOKIE_C)
|
||||
if (opt.cookies > 0) {
|
||||
if ((ret = mbedtls_ssl_cookie_setup(&cookie_ctx,
|
||||
rng_get, &rng)) != 0) {
|
||||
if ((ret = mbedtls_ssl_cookie_setup(&cookie_ctx)) != 0) {
|
||||
mbedtls_printf(" failed\n ! mbedtls_ssl_cookie_setup returned %d\n\n", ret);
|
||||
goto exit;
|
||||
}
|
||||
|
Reference in New Issue
Block a user