summaryrefslogtreecommitdiffstats
path: root/PICA_security.h
diff options
context:
space:
mode:
authorAnton <anton@picapica>2018-07-28 19:56:52 +0400
committerAnton <anton@picapica>2018-07-28 19:56:52 +0400
commitd240ed3e88dbb164d36a8007939b4ab7913f8435 (patch)
tree30d8b8dd7e306ab6928e3cfb158c19c34b7cf11b /PICA_security.h
parentfd9f68b50ef480f84bda3910e6e2a064eeaaee51 (diff)
downloadpica-pica-d240ed3e88dbb164d36a8007939b4ab7913f8435.tar.gz
pica-pica-d240ed3e88dbb164d36a8007939b4ab7913f8435.zip
add header file PICA_security.h to group important security parameters in one place
Diffstat (limited to 'PICA_security.h')
-rw-r--r--PICA_security.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/PICA_security.h b/PICA_security.h
new file mode 100644
index 0000000..0ea3306
--- /dev/null
+++ b/PICA_security.h
@@ -0,0 +1,30 @@
+/*
+ (c) Copyright 2012 - 2018 Anton Sviridenko
+ https://picapica.im
+
+ 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 3 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, see <https://www.gnu.org/licenses/>.
+*/
+
+#ifndef PICA_SECURITY_H
+#define PICA_SECURITY_H
+
+/* Important security parameters grouped together */
+
+#define PICA_RSA_KEYSIZE 4096
+#define PICA_TLS_CIPHERLIST "DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CAMELLIA256-SHA"
+#define PICA_OPENSSL_SECURUTY_LEVEL 3
+#define PICA_CERTDIGESTALGO "-sha256"
+#define PICA_PRIVKEYENCALGO "-aes256"
+
+#endif