---
title: "OBEXAddAuthorizationChallengeHeader(_:_:_:)"
framework: IOBluetooth
role: symbol
role_heading: Function
path: "iobluetooth/obexaddauthorizationchallengeheader(_:_:_:)"
---

# OBEXAddAuthorizationChallengeHeader(_:_:_:)

Add an authorization challenge header to a dictionary of OBEXheaders.

## Declaration

```swift
func OBEXAddAuthorizationChallengeHeader(_ inHeaderData: UnsafeRawPointer!, _ inHeaderDataLength: UInt32, _ dictRef: CFMutableDictionary!) -> OBEXError
```

## Parameters

- `inHeaderData`: Bytes you want to put in the authorization challenge header.
- `inHeaderDataLength`: Length of the bytes you want to put in authorization challenge header.
- `dictRef`: Dictionary you have allocated to hold the headers. Make sure it’s mutable.

## Return Value

Return Value Error code, kOBEXSuccess (0) if success.

## Discussion

Discussion Authorization Challenge header - OBEX Spec, 2.2.13: Authorization Challenge.

## See Also

### Miscellaneous

- [OBEXAddApplicationParameterHeader(_:_:_:)](iobluetooth/obexaddapplicationparameterheader(_:_:_:).md)
- [OBEXAddAuthorizationResponseHeader(_:_:_:)](iobluetooth/obexaddauthorizationresponseheader(_:_:_:).md)
- [OBEXAddBodyHeader(_:_:_:_:)](iobluetooth/obexaddbodyheader(_:_:_:_:).md)
- [OBEXAddByteSequenceHeader(_:_:_:)](iobluetooth/obexaddbytesequenceheader(_:_:_:).md)
- [OBEXAddConnectionIDHeader(_:_:_:)](iobluetooth/obexaddconnectionidheader(_:_:_:).md)
- [OBEXAddCountHeader(_:_:)](iobluetooth/obexaddcountheader(_:_:).md)
- [OBEXAddDescriptionHeader(_:_:)](iobluetooth/obexadddescriptionheader(_:_:).md)
- [OBEXAddHTTPHeader(_:_:_:)](iobluetooth/obexaddhttpheader(_:_:_:).md)
- [OBEXAddLengthHeader(_:_:)](iobluetooth/obexaddlengthheader(_:_:).md)
- [OBEXAddNameHeader(_:_:)](iobluetooth/obexaddnameheader(_:_:).md)
- [OBEXAddObjectClassHeader(_:_:_:)](iobluetooth/obexaddobjectclassheader(_:_:_:).md)
- [OBEXAddTargetHeader(_:_:_:)](iobluetooth/obexaddtargetheader(_:_:_:).md)
- [OBEXAddTime4ByteHeader(_:_:)](iobluetooth/obexaddtime4byteheader(_:_:).md)
- [OBEXAddTimeISOHeader(_:_:_:)](iobluetooth/obexaddtimeisoheader(_:_:_:).md)
- [OBEXAddTypeHeader(_:_:)](iobluetooth/obexaddtypeheader(_:_:).md)
