---
title: GSS_C_PROT_READY_FLAG
framework: GSS
role: symbol
role_heading: Global Variable
platforms: [iOS 5.0+, iPadOS 5.0+, Mac Catalyst 13.0+, macOS 10.14+, visionOS 1.0+]
path: gss/gss_c_prot_ready_flag
---

# GSS_C_PROT_READY_FLAG

A flag that provides an early indication of the availability of confidentiality and integrity services.

## Declaration

```swift
var GSS_C_PROT_READY_FLAG: Int32 { get }
```

## Discussion

Discussion Establishing a context requires a back and forth over a network connection between initiator and acceptor, typically involving multiple calls to the gss_init_sec_context(_:_:_:_:_:_:_:_:_:_:_:_:_:) and gss_accept_sec_context(_:_:_:_:_:_:_:_:_:_:_:) functions. The GSS_C_PROT_READY_FLAG flag, when set by either function as a return flag, indicates that although the context is not yet ready, the forthcoming availability of confidentiality and integrity services is already known and reported by the GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG flags, respectively. This allows you to begin using the various protection functions if reported as available, without waiting for the context to complete. When the flag is not set, you can’t assume anything about the availability of the protection services until the context is complete.

## See Also

### Flags

- [GSS_C_DELEG_FLAG](gss/gss_c_deleg_flag.md)
- [GSS_C_MUTUAL_FLAG](gss/gss_c_mutual_flag.md)
- [GSS_C_REPLAY_FLAG](gss/gss_c_replay_flag.md)
- [GSS_C_SEQUENCE_FLAG](gss/gss_c_sequence_flag.md)
- [GSS_C_CONF_FLAG](gss/gss_c_conf_flag.md)
- [GSS_C_INTEG_FLAG](gss/gss_c_integ_flag.md)
- [GSS_C_ANON_FLAG](gss/gss_c_anon_flag.md)
- [GSS_C_TRANS_FLAG](gss/gss_c_trans_flag.md)
- [GSS_C_DCE_STYLE](gss/gss_c_dce_style.md)
- [GSS_C_IDENTIFY_FLAG](gss/gss_c_identify_flag.md)
- [GSS_C_EXTENDED_ERROR_FLAG](gss/gss_c_extended_error_flag.md)
- [GSS_C_DELEG_POLICY_FLAG](gss/gss_c_deleg_policy_flag.md)
