Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktors Tjarve <viktors.tjarve@zabbix.com>2021-02-03 15:56:34 +0300
committerViktors Tjarve <viktors.tjarve@zabbix.com>2021-02-03 16:13:10 +0300
commit3de0b9cce6ad57974402705364e21914ffce1066 (patch)
tree61af72d85bf9f2443f724714dad93f589e3c63cc /include/sha256crypt.h
parentf77035fc359a205211406925737cdfc4d2124086 (diff)
.......PS. [ZBXNEXT-6443] added sha256() function to JavaScript preprocessing
(cherry picked from commit 6dbdcfff807107e923e0d2f5a5789739e09a54c5) (cherry picked from commit c39e99d0665de754bde963bbd9c3336d97ce4f7a)
Diffstat (limited to 'include/sha256crypt.h')
-rw-r--r--include/sha256crypt.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/sha256crypt.h b/include/sha256crypt.h
new file mode 100644
index 00000000000..7a1842912e2
--- /dev/null
+++ b/include/sha256crypt.h
@@ -0,0 +1,27 @@
+/*
+** Zabbix
+** Copyright (C) 2001-2021 Zabbix SIA
+**
+** This program is free software; you can redistribute it and/or modify
+** it under the terms of the GNU General Public License as published by
+** the Free Software Foundation; either version 2 of the License, or
+** (at your option) any later version.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+**
+** You should have received a copy of the GNU General Public License
+** along with this program; if not, write to the Free Software
+** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+**/
+
+#ifndef ZABBIX_SHA256CRYPT_H
+#define ZABBIX_SHA256CRYPT_H
+
+#define ZBX_SHA256_DIGEST_SIZE 32
+
+void zbx_sha256_hash(const char *in, char *out);
+
+#endif /* ZABBIX_SHA256CRYPT_H */