Function

SSLGetEnabledCiphers

Determines which SSL cipher suites are currently enabled.

Declaration

OSStatus SSLGetEnabledCiphers(SSLContextRef context, SSLCipherSuite *ciphers, size_t *numCiphers);

Parameters

context

An SSL session context reference.

ciphers

On return, points to the enabled cipher suites. Before calling, you must allocate this buffer using the number of enabled cipher suites retrieved from a call to the SSLGetNumberEnabledCiphers function.

numCiphers

Pointer to the number of enabled cipher suites. Before calling, retrieve this value by calling the SSLGetNumberEnabledCiphers function.

Return Value

A result code. See Secure Transport Result Codes. If the supplied buffer is too small, errSSLBufferOverflow is returned.

Discussion

Call the SSLSetEnabledCiphers function to specify which SSL cipher suites are enabled.

See Also

Ciphers

SSLGetNumberSupportedCiphers

Determines the number of cipher suites supported.

SSLGetSupportedCiphers

Determines the values of the supported cipher suites.

SSLSetEnabledCiphers

Specifies a restricted set of SSL cipher suites to be enabled by the current SSL session context.

SSLGetNumberEnabledCiphers

Determines the number of cipher suites currently enabled.

SSLGetNegotiatedCipher

Retrieves the cipher suite negotiated for this session.

SSLSetDiffieHellmanParams

Specifies Diffie-Hellman parameters for a given context.

SSLGetDiffieHellmanParams

Retrieves the Diffie-Hellman parameters for a given context.

SSLCipherSuite

A type for storing cipher suite values.

SSLCiphersuiteGroup

A mechanism for grouping related cipher suites.

SSL Cipher Suite Values

Recognize the set of valid SSL cipher suite values.