summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton <anton@picapica>2019-02-14 21:50:26 +0400
committerAnton <anton@picapica>2019-02-14 21:50:26 +0400
commit130f4611430a348bd482ba5c8755a6e12e0f8eda (patch)
tree69d4ebc3d5bb5b3beeb741aa5206b8cb7b2b30ce
parent88d28e8bf3c8780a5d7bc6747eac3762b4a769b4 (diff)
downloadpica-pica-130f4611430a348bd482ba5c8755a6e12e0f8eda.tar.gz
pica-pica-130f4611430a348bd482ba5c8755a6e12e0f8eda.zip
add new files, PICA_signverify
-rw-r--r--Makefile.am4
-rw-r--r--PICA_signverify.c25
-rw-r--r--PICA_signverify.h25
-rw-r--r--pica-client/pica-client.pro6
4 files changed, 57 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index bc2e41a..171d5c5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,7 +22,8 @@ pica_node_SOURCES = PICA_node.c PICA_msgproc.c PICA_nodeaddrlist.c \
PICA_nodewait.h PICA_nodeconfig.h PICA_log.h \
iniparser/src/dictionary.h iniparser/src/iniparser.h \
PICA_common.h PICA_proto.h PICA_id.h PICA_id.c \
- PICA_netconf.c PICA_netconf.h PICA_security.h
+ PICA_netconf.c PICA_netconf.h PICA_security.h \
+ PICA_signverify.c PICA_signverify.h
dist_man_MANS = pica-node.8 pica-node.conf.5
@@ -113,6 +114,7 @@ PICA_msgproc.h \
PICA_common.h PICA_proto.h \
PICA_id.c PICA_id.h \
PICA_netconf.c PICA_netconf.h \
+PICA_signverify.c PICA_signverify.h \
PICA_security.h
nodist_pica_client_pica_client_SOURCES = \
diff --git a/PICA_signverify.c b/PICA_signverify.c
new file mode 100644
index 0000000..408644e
--- /dev/null
+++ b/PICA_signverify.c
@@ -0,0 +1,25 @@
+/*
+ (c) Copyright 2012 - 2019 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/>.
+*/
+#include "PICA_signverify.h"
+
+#include <openssl/evp.h>
+
+int PICA_signverify(EVP_PKEY *pubkey, void **datapointers, int *datalengths, unsigned char *sig, int siglen)
+{
+
+}
diff --git a/PICA_signverify.h b/PICA_signverify.h
new file mode 100644
index 0000000..2c85129
--- /dev/null
+++ b/PICA_signverify.h
@@ -0,0 +1,25 @@
+/*
+ (c) Copyright 2012 - 2019 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_SIGNVERIFY_H
+#define PICA_SIGNVERIFY_H
+
+#include <openssl/evp.h>
+
+int PICA_signverify(EVP_PKEY *pubkey, void **datapointers, int *datalengths, unsigned char *sig, int siglen);
+#endif
diff --git a/pica-client/pica-client.pro b/pica-client/pica-client.pro
index b7c5fa4..82c3fa7 100644
--- a/pica-client/pica-client.pro
+++ b/pica-client/pica-client.pro
@@ -39,7 +39,8 @@ SOURCES += main.cpp\
sound.cpp \
dialogs/settingsdialog.cpp \
settings.cpp \
- ../PICA_netconf.c
+ ../PICA_netconf.c \
+ ../PICA_signverify.c
HEADERS += mainwindow.h \
chatwindow.h \
@@ -73,7 +74,8 @@ HEADERS += mainwindow.h \
dialogs/settingsdialog.h \
settings.h \
../PICA_netconf.h \
- ../PICA_security.h
+ ../PICA_security.h \
+ ../PICA_signverify.h
DEFINES = PICA_MULTITHREADED