diff options
author | jsing <> | 2014-10-22 14:02:52 +0000 |
---|---|---|
committer | jsing <> | 2014-10-22 14:02:52 +0000 |
commit | 8dd7a41191349ee99213e5b4b98907f9c45da865 (patch) | |
tree | d1353cc2eccbdf66348179acfd6aacb0ae1bcc08 | |
parent | 85b016137f0bd9cf3b15129668f9d794a71c6d34 (diff) | |
download | openbsd-8dd7a41191349ee99213e5b4b98907f9c45da865.tar.gz openbsd-8dd7a41191349ee99213e5b4b98907f9c45da865.tar.bz2 openbsd-8dd7a41191349ee99213e5b4b98907f9c45da865.zip |
Place most of the RAND_* functions under #ifndef LIBRESSL_INTERNAL (some
are still needed for the engine). Our code should use arc4random instead.
-rw-r--r-- | src/lib/libcrypto/rand/rand.h | 5 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/rand/rand.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/libcrypto/rand/rand.h b/src/lib/libcrypto/rand/rand.h index 6ed16b9c41..fcb2e9218d 100644 --- a/src/lib/libcrypto/rand/rand.h +++ b/src/lib/libcrypto/rand/rand.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rand.h,v 1.21 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: rand.h,v 1.22 2014/10/22 14:02:52 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -87,6 +87,8 @@ const RAND_METHOD *RAND_get_rand_method(void); | |||
87 | int RAND_set_rand_engine(ENGINE *engine); | 87 | int RAND_set_rand_engine(ENGINE *engine); |
88 | #endif | 88 | #endif |
89 | RAND_METHOD *RAND_SSLeay(void); | 89 | RAND_METHOD *RAND_SSLeay(void); |
90 | |||
91 | #ifndef LIBRESSL_INTERNAL | ||
90 | void RAND_cleanup(void ); | 92 | void RAND_cleanup(void ); |
91 | int RAND_bytes(unsigned char *buf, int num); | 93 | int RAND_bytes(unsigned char *buf, int num); |
92 | int RAND_pseudo_bytes(unsigned char *buf, int num); | 94 | int RAND_pseudo_bytes(unsigned char *buf, int num); |
@@ -97,6 +99,7 @@ int RAND_write_file(const char *file); | |||
97 | const char *RAND_file_name(char *file, size_t num); | 99 | const char *RAND_file_name(char *file, size_t num); |
98 | int RAND_status(void); | 100 | int RAND_status(void); |
99 | int RAND_poll(void); | 101 | int RAND_poll(void); |
102 | #endif | ||
100 | 103 | ||
101 | /* BEGIN ERROR CODES */ | 104 | /* BEGIN ERROR CODES */ |
102 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 105 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
diff --git a/src/lib/libssl/src/crypto/rand/rand.h b/src/lib/libssl/src/crypto/rand/rand.h index 6ed16b9c41..fcb2e9218d 100644 --- a/src/lib/libssl/src/crypto/rand/rand.h +++ b/src/lib/libssl/src/crypto/rand/rand.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rand.h,v 1.21 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: rand.h,v 1.22 2014/10/22 14:02:52 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -87,6 +87,8 @@ const RAND_METHOD *RAND_get_rand_method(void); | |||
87 | int RAND_set_rand_engine(ENGINE *engine); | 87 | int RAND_set_rand_engine(ENGINE *engine); |
88 | #endif | 88 | #endif |
89 | RAND_METHOD *RAND_SSLeay(void); | 89 | RAND_METHOD *RAND_SSLeay(void); |
90 | |||
91 | #ifndef LIBRESSL_INTERNAL | ||
90 | void RAND_cleanup(void ); | 92 | void RAND_cleanup(void ); |
91 | int RAND_bytes(unsigned char *buf, int num); | 93 | int RAND_bytes(unsigned char *buf, int num); |
92 | int RAND_pseudo_bytes(unsigned char *buf, int num); | 94 | int RAND_pseudo_bytes(unsigned char *buf, int num); |
@@ -97,6 +99,7 @@ int RAND_write_file(const char *file); | |||
97 | const char *RAND_file_name(char *file, size_t num); | 99 | const char *RAND_file_name(char *file, size_t num); |
98 | int RAND_status(void); | 100 | int RAND_status(void); |
99 | int RAND_poll(void); | 101 | int RAND_poll(void); |
102 | #endif | ||
100 | 103 | ||
101 | /* BEGIN ERROR CODES */ | 104 | /* BEGIN ERROR CODES */ |
102 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 105 | /* The following lines are auto generated by the script mkerr.pl. Any changes |