---
title: "SSLGetProtocolVersionMin(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sslgetprotocolversionmin(_:_:)"
---

# SSLGetProtocolVersionMin(_:_:)

Gets the minimum protocol version allowed by the application for a given SSL context.

## Declaration

```swift
func SSLGetProtocolVersionMin(_ context: SSLContext, _ minVersion: UnsafeMutablePointer<SSLProtocol>) -> OSStatus
```

## Parameters

- `context`: The SSL context associated with the connection.
- `minVersion`: The address of an doc://com.apple.security/documentation/Security/SSLProtocol integer where the minimum version should be stored. See doc://com.apple.security/documentation/Security/SSLProtocol for a list of possible values.

## Return Value

Return Value A result code. See Secure Transport Result Codes.
