diff options
author | Simon Josefsson <simon@josefsson.org> | 2010-10-14 23:11:28 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2010-10-14 23:11:28 +0200 |
commit | 3e9cfe6b24e9714f1c2753a836c9de349f5e88e6 (patch) | |
tree | b86eca364009a9b2c42102d0cdc7f43882bbc4ef /lib/gnutls_state.c | |
parent | f48486b5750693b82385fea779da557bec2e04e8 (diff) | |
download | gnutls-3e9cfe6b24e9714f1c2753a836c9de349f5e88e6.tar.gz |
Add gnutls_session_channel_binding API.
Diffstat (limited to 'lib/gnutls_state.c')
-rw-r--r-- | lib/gnutls_state.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/gnutls_state.c b/lib/gnutls_state.c index f707fca051..86e3c00ff4 100644 --- a/lib/gnutls_state.c +++ b/lib/gnutls_state.c @@ -1347,3 +1347,26 @@ gnutls_session_enable_compatibility_mode (gnutls_session_t session) { gnutls_record_disable_padding (session); } + +/** + * gnutls_session_channel_binding: + * @session: is a #gnutls_session_t structure. + * @cbtype: an #gnutls_channel_binding_t enumeration type + * @cb: output buffer array with data + * + * Extract given channel binding data of the @cbtype type. + * + * Returns: %GNUTLS_E_SUCCESS on success, + * %GNUTLS_E_UNIMPLEMENTED_FEATURE if the @cbtype is unsupported, + * %GNUTLS_E_CHANNEL_BINDING_NOT_AVAILABLE if the data is not + * currently available, or an error code. + * + * Since: 2.12.0 + **/ +int +gnutls_session_channel_binding (gnutls_session_t session, + gnutls_channel_binding_t cbtype, + gnutls_datum_t *cb) +{ + return GNUTLS_E_UNIMPLEMENTED_FEATURE; +} |