diff --git a/easytls b/easytls index cde780c..6d69111 100755 --- a/easytls +++ b/easytls @@ -1892,16 +1892,17 @@ openssl_generate_empty_hash () # OpenSSL hash file openssl_generate_file_hash () { - #[ -n "${request_fixed_hash}" ] && \ - # "${EASYTLS_PRINTF}" '%s\n' "${fixed_hash}" && return 0 + [ -n "${request_fixed_hash}" ] && \ + "${EASYTLS_PRINTF}" '%s\n' "${fixed_hash}" && return 0 + "${EASYRSA_OPENSSL}" dgst -"${EASYTLS_HASH_ALGO}" -r "${1}" || return 1 } # => openssl_generate_file_hash () # OpenSSL hash data openssl_generate_data_hash () { - #[ -n "${request_fixed_hash}" ] && \ - # "${EASYTLS_PRINTF}" '%s\n' "${fixed_hash}" && return 0 + [ -n "${request_fixed_hash}" ] && \ + "${EASYTLS_PRINTF}" '%s\n' "${fixed_hash}" && return 0 "${EASYRSA_OPENSSL}" dgst -"${EASYTLS_HASH_ALGO}" -r || return 1 } # => openssl_generate_data_hash ()