X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=385e54366dbd1bb4bad446446df0687503baf576;hp=a7a6fe0da866bbce0f89f951942dd0a9255fef77;hb=8794274a30d535d49636fec825a0afbf30d8010d;hpb=c9084dfa2654349efcaffd51f120399f903f756a diff --git a/src/protocol_auth.c b/src/protocol_auth.c index a7a6fe0d..385e5436 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -215,7 +215,7 @@ bool send_metakey(connection_t *c) { /* Copy random data to the buffer */ - RAND_pseudo_bytes((unsigned char *)c->outkey, len); + RAND_bytes((unsigned char *)c->outkey, len); /* The message we send must be smaller than the modulus of the RSA key. By definition, for a key of k bits, the following formula holds: @@ -391,7 +391,7 @@ bool send_challenge(connection_t *c) { /* Copy random data to the buffer */ - RAND_pseudo_bytes((unsigned char *)c->hischallenge, len); + RAND_bytes((unsigned char *)c->hischallenge, len); /* Convert to hex */