---
name: "mongoc_stream_tls_new"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.4.2-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_stream_tls_new"
---

# mongoc\_stream\_tls\_new(3)

Creates a new mongoc\_stream\_tls\_t using the parameters supplied.

## NAME

mongoc\_stream\_tls\_new() - Creates a new mongoc\_stream\_tls\_t using the parameters supplied.

## SYNOPSIS

```
mongoc_stream_t *
mongoc_stream_tls_new (mongoc_stream_t  *base_stream,
                       mongoc_ssl_opt_t *opt,
                       int               client);
```

## PARAMETERS

- **base\_stream**

  A **mongoc\_stream\_t**

- **opt**

  A **mongoc\_ssl\_opt\_t**

- **client**

  1 for client, 0 for server TLS.

Creates a new **mongoc\_stream\_tls\_t** using the parameters supplied.

## RETURNS

A newly allocated **mongoc\_stream\_tls\_t**

## COLOPHON

**This page is part of MongoDB C Driver.** Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.
