aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ft_ssl.h18
-rw-r--r--include/ft_ssl_md5.h22
-rw-r--r--include/ft_ssl_sha256.h22
3 files changed, 61 insertions, 1 deletions
diff --git a/include/ft_ssl.h b/include/ft_ssl.h
index 26fbc7e..c5709d6 100644
--- a/include/ft_ssl.h
+++ b/include/ft_ssl.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/03 20:27:19 by cacharle #+# #+# */
-/* Updated: 2020/02/03 20:29:15 by cacharle ### ########.fr */
+/* Updated: 2020/02/22 07:20:34 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -15,4 +15,20 @@
# include "libft.h"
+# include "ft_ssl_md5.h"
+# include "ft_ssl_sha256.h"
+
+typedef int (*t_func_main)(int argc, char **argv);
+typedef struct
+{
+ char *name;
+ t_func_main entry;
+} t_command;
+
+/*
+** error.c
+*/
+
+void fl_error_command(char *command);
+
#endif
diff --git a/include/ft_ssl_md5.h b/include/ft_ssl_md5.h
new file mode 100644
index 0000000..cc0f498
--- /dev/null
+++ b/include/ft_ssl_md5.h
@@ -0,0 +1,22 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_ssl_md5.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/02/22 07:14:45 by cacharle #+# #+# */
+/* Updated: 2020/02/22 07:18:24 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#ifndef FT_SSL_MD5_H
+# define FT_SSL_MD5_H
+
+/*
+** main_md5.c
+*/
+
+int main_md5(int argc, char **argv);
+
+#endif
diff --git a/include/ft_ssl_sha256.h b/include/ft_ssl_sha256.h
new file mode 100644
index 0000000..7bb05ff
--- /dev/null
+++ b/include/ft_ssl_sha256.h
@@ -0,0 +1,22 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_ssl_sha256.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/02/22 07:18:42 by cacharle #+# #+# */
+/* Updated: 2020/02/22 07:18:57 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#ifndef FT_SSL_SHA256_H
+# define FT_SSL_SHA256_H
+
+/*
+** main_sha256.c
+*/
+
+int main_sha256(int argc, char **argv);
+
+#endif