/* * 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. */#include "git2/errors.h"#include "common.h"#include "openssl_stream.h"#include "stransport_stream.h"intgit_tls_stream_new(git_stream**out,constchar*host,constchar*port){#ifdef GIT_SECURE_TRANSPORTreturngit_stransport_stream_new(out,host,port);
returngit_openssl_stream_new(out,host,port);#elseGIT_UNUSED(out);GIT_UNUSED(host);GIT_UNUSED(port);giterr_set(GITERR_SSL,"there is no TLS stream available");return-1;#endif}