Ticket #825: openvpn-2.4.0-tls-crypt_segfault.patch
File openvpn-2.4.0-tls-crypt_segfault.patch, 778 bytes (added by , 7 years ago) |
---|
-
openvpn-2.4.0/src/openvpn/tls_crypt.c
old new 50 50 51 51 struct key_type kt; 52 52 kt.cipher = cipher_kt_get("AES-256-CTR"); 53 kt.cipher_length = cipher_kt_key_size(kt.cipher);54 53 kt.digest = md_kt_get("SHA256"); 55 kt.hmac_length = md_kt_size(kt.digest);56 54 57 55 if (!kt.cipher) 58 56 { … … 63 61 msg(M_FATAL, "ERROR: --tls-crypt requires HMAC-SHA-256 support."); 64 62 } 65 63 64 kt.cipher_length = cipher_kt_key_size(kt.cipher); 65 kt.hmac_length = md_kt_size(kt.digest); 66 66 67 crypto_read_openvpn_key(&kt, key, key_file, key_inline, key_direction, 67 68 "Control Channel Encryption", "tls-crypt"); 68 69 }