ec_httpsrv_request_subject_cn_get

March 26, 2020 Contributors

Name

ec_httpsrv_request_subject_cn_get — Gets the peer SSL certificate common name string

Synopsis

#include "modules/listeners/httpsrv.h"

| const char * **ec_httpsrv_request_subject_cn_get** ( | sess); |   |

ec_httpsrv_session * <var class="pdparam">sess</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Gets the peer SSL certificate common name string.

Parameters

sess

the session to interrogate

Return Values

the remote common name, which will be NULL for a session that is not using an authenticated peer certificate.

The returned string is valid for the lifetime of the request.