aboutsummaryrefslogtreecommitdiff
path: root/src/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c
new file mode 100644
index 0000000..1492bde
--- /dev/null
+++ b/src/error.c
@@ -0,0 +1,27 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* error.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/02/22 07:02:59 by cacharle #+# #+# */
+/* Updated: 2020/02/22 07:13:57 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "ft_ssl.h"
+
+void fl_error_command(char *command)
+{
+ ft_putstr_fd("ft_ssl: Error: '", STDERR_FILENO);
+ ft_putstr_fd(command, STDERR_FILENO);
+ ft_putendl_fd("' is an invalid command.", STDERR_FILENO);
+ ft_putstr_fd("\nStandard commands:\n"
+ "\nMessage Digest commands:\n"
+ "md5\n"
+ "sha256\n"
+ "\nCipher commands:\n",
+ STDERR_FILENO
+ );
+}