mirror of
https://github.com/moparisthebest/curl
synced 2024-11-04 08:35:05 -05:00
polarssl: provide a (weak) random function
This now provides a weak random function since PolarSSL doesn't have a quick and easy way to provide a good one. It does however provide the framework to make one so it _can_ and _should_ be done...
This commit is contained in:
parent
df52f3500c
commit
0e811d8c59
@ -63,5 +63,10 @@ int Curl_polarssl_shutdown(struct connectdata *conn, int sockindex);
|
|||||||
#define curlssl_check_cxn(x) (x=x, -1)
|
#define curlssl_check_cxn(x) (x=x, -1)
|
||||||
#define curlssl_data_pending(x,y) (x=x, y=y, 0)
|
#define curlssl_data_pending(x,y) (x=x, y=y, 0)
|
||||||
|
|
||||||
|
/* This might cause libcurl to use a weeker random!
|
||||||
|
TODO: implement proper use of Polarssl's CTR-DRBG or HMAC-DRBG and use that
|
||||||
|
*/
|
||||||
|
#define curlssl_random(x,y,z) (x=x, y=y, z=z, CURLE_NOT_BUILT_IN)
|
||||||
|
|
||||||
#endif /* USE_POLARSSL */
|
#endif /* USE_POLARSSL */
|
||||||
#endif /* HEADER_CURL_POLARSSL_H */
|
#endif /* HEADER_CURL_POLARSSL_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user