Skip to content

Commit

Permalink
fix RAND_egd_bytes's signature
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel40791765 committed Sep 9, 2024
1 parent d597a00 commit ca6bb6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crypto/rand_extra/rand_extra.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ int RAND_egd(const char *path) {
return 255;
}

int RAND_egd_bytes(const char *path) {
return 255;
int RAND_egd_bytes(const char *path, int bytes) {
return bytes;
}

int RAND_poll(void) {
Expand Down
4 changes: 2 additions & 2 deletions include/openssl/rand.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ OPENSSL_EXPORT OPENSSL_DEPRECATED void RAND_add(const void *buf, int num,
// RAND_egd returns 255.
OPENSSL_EXPORT OPENSSL_DEPRECATED int RAND_egd(const char *);

// RAND_egd_bytes returns 255.
OPENSSL_EXPORT OPENSSL_DEPRECATED int RAND_egd_bytes(const char *);
// RAND_egd_bytes returns |bytes|.
OPENSSL_EXPORT OPENSSL_DEPRECATED int RAND_egd_bytes(const char *, int bytes);

// RAND_poll returns one.
OPENSSL_EXPORT OPENSSL_DEPRECATED int RAND_poll(void);
Expand Down

0 comments on commit ca6bb6d

Please sign in to comment.