diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/ft_ssl.h | 24 | ||||
| -rw-r--r-- | include/ft_ssl_md5.h | 4 | ||||
| -rw-r--r-- | include/ft_ssl_sha256.h | 4 |
3 files changed, 27 insertions, 5 deletions
diff --git a/include/ft_ssl.h b/include/ft_ssl.h index c5709d6..be9b4da 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/22 07:20:34 by cacharle ### ########.fr */ +/* Updated: 2020/02/22 10:10:30 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -25,10 +25,32 @@ typedef struct t_func_main entry; } t_command; +enum +{ + FLAG_PIPE = 1 << 0, + FLAG_QUIET = 1 << 1, + FLAG_REVERSE = 1 << 2, + FLAG_STRING = 1 << 3 +}; +typedef unsigned char t_flags; + +typedef struct +{ + unsigned char *data; + int size; +} t_digest; +typedef void (*t_func_hash)(char *message, t_digest *digest); + /* ** error.c */ void fl_error_command(char *command); +/* +** args.c +*/ + +int fl_parse_args(char *name, int argc, char **argv, t_func_hash func_hash); + #endif diff --git a/include/ft_ssl_md5.h b/include/ft_ssl_md5.h index cc0f498..b012533 100644 --- a/include/ft_ssl_md5.h +++ b/include/ft_ssl_md5.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/22 07:14:45 by cacharle #+# #+# */ -/* Updated: 2020/02/22 07:18:24 by cacharle ### ########.fr */ +/* Updated: 2020/02/22 08:57:06 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -17,6 +17,6 @@ ** main_md5.c */ -int main_md5(int argc, char **argv); +int fl_main_md5(int argc, char **argv); #endif diff --git a/include/ft_ssl_sha256.h b/include/ft_ssl_sha256.h index 7bb05ff..9427f88 100644 --- a/include/ft_ssl_sha256.h +++ b/include/ft_ssl_sha256.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/22 07:18:42 by cacharle #+# #+# */ -/* Updated: 2020/02/22 07:18:57 by cacharle ### ########.fr */ +/* Updated: 2020/02/22 08:57:14 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -17,6 +17,6 @@ ** main_sha256.c */ -int main_sha256(int argc, char **argv); +int fl_main_sha256(int argc, char **argv); #endif |
