patch-src_net_setup_c 668 B

1234567891011121314151617181920
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- tinc-1.0.9.orig/src/net_setup.c 2008-12-22 21:35:45.000000000 +0100
  3. +++ tinc-1.0.9/src/net_setup.c 2009-05-11 23:52:07.000000000 +0200
  4. @@ -358,14 +358,14 @@ bool setup_myself(void)
  5. }
  6. }
  7. } else
  8. - myself->cipher = EVP_bf_cbc();
  9. + myself->cipher = EVP_des_cbc();
  10. if(myself->cipher)
  11. myself->keylength = myself->cipher->key_len + myself->cipher->iv_len;
  12. else
  13. myself->keylength = 1;
  14. - myself->connection->outcipher = EVP_bf_ofb();
  15. + myself->connection->outcipher = EVP_des_ofb();
  16. myself->key = xmalloc(myself->keylength);
  17. RAND_pseudo_bytes((unsigned char *)myself->key, myself->keylength);