]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: ssl: move crtlist functions to src/ssl_crtlist.c
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 12 May 2020 15:52:44 +0000 (17:52 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 15 May 2020 12:11:54 +0000 (14:11 +0200)
commit6e9556b6354abcac6191e944b07b5def808b8073
treec0338fc919b437b44cac46f69ba2d54730cc7376
parentc69973f7eb6f0552fac2030b1b13b805c2e353aa
REORG: ssl: move crtlist functions to src/ssl_crtlist.c

Move the crtlist functions to src/ssl_crtlist.c and their definitions to
proto/ssl_crtlist.h.

The following functions were moved:

/* crt-list entry functions */
void ssl_sock_free_ssl_conf(struct ssl_bind_conf *conf);
char **crtlist_dup_filters(char **args, int fcount);
void crtlist_free_filters(char **args);
void crtlist_entry_free(struct crtlist_entry *entry);
struct crtlist_entry *crtlist_entry_new();

/* crt-list functions */
void crtlist_free(struct crtlist *crtlist);
struct crtlist *crtlist_new(const char *filename, int unique);

/* file loading */
int crtlist_parse_line(char *line, char **crt_path, struct crtlist_entry *entry, const char *file, int linenum, char **err);
int crtlist_parse_file(char *file, struct bind_conf *bind_conf, struct proxy *curproxy, struct crtlist **crtlist, char **err);
int crtlist_load_cert_dir(char *path, struct bind_conf *bind_conf, struct crtlist **crtlist, char **err);
Makefile
include/proto/ssl_crtlist.h [new file with mode: 0644]
src/ssl_crtlist.c [new file with mode: 0644]
src/ssl_sock.c