---
title: "CMSDecoderGetNumSigners(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/cmsdecodergetnumsigners(_:_:)"
---

# CMSDecoderGetNumSigners(_:_:)

Obtains the number of signers of a message.

## Declaration

```swift
func CMSDecoderGetNumSigners(_ cmsDecoder: CMSDecoder, _ numSignersOut: UnsafeMutablePointer<Int>) -> OSStatus
```

## Parameters

- `cmsDecoder`: The CMSDecoder reference returned by the CMSDecoderCreate function.
- `numSignersOut`: On return, the number of signers of the message. Zero indicates that the message was not signed.

## Return Value

Return Value A result code. See Security Framework Result Codes.

## Discussion

Discussion Call the CMSDecoderCopySignerStatus function to determine the status of a signature. You cannot call this function until after you have called the CMSDecoderFinalizeMessage function.

## See Also

### Related Documentation

- [CMSDecoderCreate(_:)](security/cmsdecodercreate(_:).md)
- [CMSDecoderFinalizeMessage(_:)](security/cmsdecoderfinalizemessage(_:).md)
