]>
git.proxmox.com Git - libgit2.git/blob - src/streams/openssl.h
2 * Copyright (C) the libgit2 contributors. All rights reserved.
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
7 #ifndef INCLUDE_streams_openssl_h__
8 #define INCLUDE_streams_openssl_h__
11 #include "streams/openssl_legacy.h"
12 #include "streams/openssl_dynamic.h"
14 #include "git2/sys/stream.h"
16 extern int git_openssl_stream_global_init(void);
18 #if defined(GIT_OPENSSL) && !defined(GIT_OPENSSL_DYNAMIC)
19 # include <openssl/ssl.h>
20 # include <openssl/err.h>
21 # include <openssl/x509v3.h>
22 # include <openssl/bio.h>
26 extern int git_openssl__set_cert_location(const char *file
, const char *path
);
27 extern int git_openssl_stream_new(git_stream
**out
, const char *host
, const char *port
);
28 extern int git_openssl_stream_wrap(git_stream
**out
, git_stream
*in
, const char *host
);