---
name: "mongoc_uri_get_ssl"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_uri_get_ssl"
---

# mongoc\_uri\_get\_ssl(3)

**WARNING:**

Deprecated since version 1.15.0: Use *mongoc\_uri\_get\_tls()* instead.

## SYNOPSIS

```
bool
mongoc_uri_get_ssl (const mongoc_uri_t *uri);
```

## PARAMETERS

- •

  **uri**: A *mongoc\_uri\_t*.

## DESCRIPTION

Fetches a boolean indicating if TLS was specified for use in the URI.

## RETURNS

Returns a boolean, true indicating that TLS should be used. This returns true if *any* *TLS option* is specified.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
