mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
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.
25 lines
567 B
C
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
|