diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx> | 2015-09-25 11:04:16 +0300 |
---|---|---|
committer | Ben Wiederhake <BenWiederhake.GitHub@gmx> | 2015-10-01 21:59:17 +0300 |
commit | 2a240e45cb0eaed480b7063b89902259e377f6e3 (patch) | |
tree | 464a4a777cd93eace667ae73f33298a542826346 /mtproto-client.c | |
parent | 6c0715e91de396c2cf2df6112382d855f4759edf (diff) |
Split along rand.h.
Diffstat (limited to 'mtproto-client.c')
-rw-r--r-- | mtproto-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mtproto-client.c b/mtproto-client.c index a679ca6..cd55b87 100644 --- a/mtproto-client.c +++ b/mtproto-client.c @@ -37,7 +37,7 @@ #endif #include <sys/types.h> #include <netdb.h> -#include <openssl/rand.h> +#include "crypto/rand.h" #include "crypto/rsa_pem.h" #include "crypto/sha.h" #include <sys/socket.h> @@ -1389,7 +1389,7 @@ static struct mtproto_methods mtproto_methods = { void tglmp_dc_create_session (struct tgl_state *TLS, struct tgl_dc *DC) { struct tgl_session *S = talloc0 (sizeof (*S)); - assert (RAND_pseudo_bytes ((unsigned char *) &S->session_id, 8) >= 0); + assert (TGLC_rand_pseudo_bytes ((unsigned char *) &S->session_id, 8) >= 0); S->dc = DC; //S->c = TLS->net_methods->create_connection (TLS, DC->ip, DC->port, S, DC, &mtproto_methods); |