Blame src/tls_stream.h

Packit Service 20376f
/*
Packit Service 20376f
 * Copyright (C) the libgit2 contributors. All rights reserved.
Packit Service 20376f
 *
Packit Service 20376f
 * This file is part of libgit2, distributed under the GNU GPL v2 with
Packit Service 20376f
 * a Linking Exception. For full terms see the included COPYING file.
Packit Service 20376f
 */
Packit Service 20376f
#ifndef INCLUDE_tls_stream_h__
Packit Service 20376f
#define INCLUDE_tls_stream_h__
Packit Service 20376f
Packit Service 20376f
#include "git2/sys/stream.h"
Packit Service 20376f
Packit Service 20376f
/**
Packit Service 20376f
 * Create a TLS stream with the most appropriate backend available for
Packit Service 20376f
 * the current platform.
Packit Service 20376f
 *
Packit Service 20376f
 * This allows us to ask for a SecureTransport or OpenSSL stream
Packit Service 20376f
 * according to being on general Unix vs OS X.
Packit Service 20376f
 */
Packit Service 20376f
extern int git_tls_stream_new(git_stream **out, const char *host, const char *port);
Packit Service 20376f
Packit Service 20376f
#endif