Contents

SSLGetNegotiatedCipher(_:_:)

Retrieves the cipher suite negotiated for this session.

Declaration

func SSLGetNegotiatedCipher(_ context: SSLContext, _ cipherSuite: UnsafeMutablePointer<SSLCipherSuite>) -> OSStatus

Parameters

  • context:

    An SSL session context reference.

  • cipherSuite:

    On return, points to the cipher suite that was negotiated for this session.

Return Value

A result code. See Secure Transport Result Codes.

Discussion

You should call this function only when a session is active.