# tibemsSSLParams_SetExpectedHostName

Function

## Purpose

Set the expected host name.

## C Declaration

    tibems_status tibemsSSLParams_SetExpectedHostName(
        tibemsSSLParams SSLParams,
        const char* expected_hostname );

## IBM Systems

This function is not supported on z/OS and IBM i systems. For more information, see SSL Implementation on IBM EBCDIC Systems.

## Parameters

Parameter | Description
--- | ---
`SSLParams` | Set the value in this SSL parameter object.
`expected_hostname` | Use this value.

## Remarks

This parameter applies when establishing an SSL connection to the EMS server. If host name verification is enabled, an application-specific verifier function checks that the actual host name where the server is running is the same as this expected host name.

## See Also

`tibemsSSLParams_SetHostNameVerifier`

`tibemsSSLParams_SetVerifyHost`

`tibemsSSLHostNameVerifier`

Copyright © Cloud Software Group, Inc. All rights reserved.