Files
libgit2/src/util/streams/mbedtls.h
Edward Thomson 823d798bf4 streams: refactor as init / connect phase
Add a separate init and connect phase, instead of always connecting in
the constructor. This allows us to be more flexible in the future with
our streams implementations.
2023-09-05 22:47:23 +01:00

25 lines
567 B
C

/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef INCLUDE_steams_mbedtls_h__
#define INCLUDE_steams_mbedtls_h__
#include "git2_util.h"
#include "git2/sys/stream.h"
extern int git_stream_mbedtls_global_init(void);
# ifdef GIT_HTTPS_MBEDTLS
extern int git_mbedtls__set_cert_location(const char *file, const char *path);
extern int git_stream_mbedtls_new(git_stream **out);
# endif
#endif