mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +09:00
getrandom_crypto.c: Add function to the documentation
Signed-off-by: Norbert Pocs <npocs@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit d57a383d43)
This commit is contained in:
committed by
Andreas Schneider
parent
18b46a6e17
commit
990db53ee6
@@ -24,6 +24,12 @@
|
||||
#include "libssh/crypto.h"
|
||||
#include <openssl/rand.h>
|
||||
|
||||
/**
|
||||
* @addtogroup libssh_misc
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief Get random bytes
|
||||
*
|
||||
@@ -52,3 +58,7 @@ ssh_get_random(void *where, int len, int strong)
|
||||
/* Returns -1 when not supported, 0 on error, 1 on success */
|
||||
return !!RAND_bytes(where, len);
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user