define randombytes_set_implementation argument to be const (#1068)
This commit is contained in:
parent
b335abd946
commit
6d5cf12fca
@ -53,7 +53,7 @@ SODIUM_EXPORT
|
|||||||
int randombytes_close(void);
|
int randombytes_close(void);
|
||||||
|
|
||||||
SODIUM_EXPORT
|
SODIUM_EXPORT
|
||||||
int randombytes_set_implementation(randombytes_implementation *impl)
|
int randombytes_set_implementation(const randombytes_implementation *impl)
|
||||||
__attribute__ ((nonnull));
|
__attribute__ ((nonnull));
|
||||||
|
|
||||||
SODIUM_EXPORT
|
SODIUM_EXPORT
|
||||||
|
@ -44,7 +44,7 @@ randombytes_init_if_needed(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
randombytes_set_implementation(randombytes_implementation *impl)
|
randombytes_set_implementation(const randombytes_implementation *impl)
|
||||||
{
|
{
|
||||||
implementation = impl;
|
implementation = impl;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user