19 lines
532 B
C
19 lines
532 B
C
#ifndef FT_SSL_SSL_H
|
|
#define FT_SSL_SSL_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "ft_ssl.h"
|
|
|
|
#define MAX_DIGEST_SIZE 64
|
|
#define READ_BUFSIZE 4096
|
|
|
|
int run_string(const struct ssl_config *config);
|
|
int run_file(const struct ssl_config *config, const char *path);
|
|
int run_stdin(const struct ssl_config *config);
|
|
int digest_stream(const struct ssl_config *config, int fd,
|
|
const char *label, int show_algo, int echo);
|
|
void print_digest(const struct ssl_config *config, const uint8_t *digest,
|
|
const char *label, int show_algo);
|
|
|
|
#endif
|