File: gensio_filter_certauth.h

package info (click to toggle)
gensio 2.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,776 kB
  • sloc: ansic: 45,195; python: 2,718; cpp: 1,129; sh: 586; makefile: 420
file content (29 lines) | stat: -rw-r--r-- 813 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 *  gensio - A library for abstracting stream I/O
 *  Copyright (C) 2019  Corey Minyard <minyard@acm.org>
 *
 *  SPDX-License-Identifier: LGPL-2.1-only
 */

#ifndef GENSIO_FILTER_CERTAUTH_H
#define GENSIO_FILTER_CERTAUTH_H

#include <gensio/gensio_base.h>

struct gensio_certauth_filter_data;

int gensio_certauth_filter_config(struct gensio_os_funcs *o,
				  const char * const args[],
				  bool default_is_client,
				  struct gensio_certauth_filter_data **rdata);

void
gensio_certauth_filter_config_free(struct gensio_certauth_filter_data *data);

bool gensio_certauth_filter_config_allow_unencrypted(
	     struct gensio_certauth_filter_data *data);

int gensio_certauth_filter_alloc(struct gensio_certauth_filter_data *data,
				 struct gensio_filter **rfilter);

#endif /* GENSIO_FILTER_CERTAUTH_H */