1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 04:25:10 -07:00

define randombytes_set_implementation argument to be const (#1068)

This commit is contained in:
Frank Denis 2023-09-12 12:21:36 +02:00
parent b335abd946
commit 6d5cf12fca
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ SODIUM_EXPORT
int randombytes_close(void);
SODIUM_EXPORT
int randombytes_set_implementation(randombytes_implementation *impl)
int randombytes_set_implementation(const randombytes_implementation *impl)
__attribute__ ((nonnull));
SODIUM_EXPORT

View File

@ -44,7 +44,7 @@ randombytes_init_if_needed(void)
}
int
randombytes_set_implementation(randombytes_implementation *impl)
randombytes_set_implementation(const randombytes_implementation *impl)
{
implementation = impl;