summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2014-10-22 14:02:52 +0000
committerjsing <>2014-10-22 14:02:52 +0000
commit8dd7a41191349ee99213e5b4b98907f9c45da865 (patch)
treed1353cc2eccbdf66348179acfd6aacb0ae1bcc08
parent85b016137f0bd9cf3b15129668f9d794a71c6d34 (diff)
downloadopenbsd-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.h5
-rw-r--r--src/lib/libssl/src/crypto/rand/rand.h5
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);
87int RAND_set_rand_engine(ENGINE *engine); 87int RAND_set_rand_engine(ENGINE *engine);
88#endif 88#endif
89RAND_METHOD *RAND_SSLeay(void); 89RAND_METHOD *RAND_SSLeay(void);
90
91#ifndef LIBRESSL_INTERNAL
90void RAND_cleanup(void ); 92void RAND_cleanup(void );
91int RAND_bytes(unsigned char *buf, int num); 93int RAND_bytes(unsigned char *buf, int num);
92int RAND_pseudo_bytes(unsigned char *buf, int num); 94int RAND_pseudo_bytes(unsigned char *buf, int num);
@@ -97,6 +99,7 @@ int RAND_write_file(const char *file);
97const char *RAND_file_name(char *file, size_t num); 99const char *RAND_file_name(char *file, size_t num);
98int RAND_status(void); 100int RAND_status(void);
99int RAND_poll(void); 101int 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);
87int RAND_set_rand_engine(ENGINE *engine); 87int RAND_set_rand_engine(ENGINE *engine);
88#endif 88#endif
89RAND_METHOD *RAND_SSLeay(void); 89RAND_METHOD *RAND_SSLeay(void);
90
91#ifndef LIBRESSL_INTERNAL
90void RAND_cleanup(void ); 92void RAND_cleanup(void );
91int RAND_bytes(unsigned char *buf, int num); 93int RAND_bytes(unsigned char *buf, int num);
92int RAND_pseudo_bytes(unsigned char *buf, int num); 94int RAND_pseudo_bytes(unsigned char *buf, int num);
@@ -97,6 +99,7 @@ int RAND_write_file(const char *file);
97const char *RAND_file_name(char *file, size_t num); 99const char *RAND_file_name(char *file, size_t num);
98int RAND_status(void); 100int RAND_status(void);
99int RAND_poll(void); 101int 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