From: Nikos Mavrogiannopoulos Date: Sat, 17 Dec 2011 11:26:15 +0000 (+0100) Subject: documented _gnutls_supported_ciphersuites() X-Git-Tag: gnutls_3_0_10~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=969ab94a8baca977a6cb8a49dbfe339a11fce52c;p=thirdparty%2Fgnutls.git documented _gnutls_supported_ciphersuites() --- diff --git a/lib/algorithms/ciphersuites.c b/lib/algorithms/ciphersuites.c index 51fce714ef..7b90a3746f 100644 --- a/lib/algorithms/ciphersuites.c +++ b/lib/algorithms/ciphersuites.c @@ -776,6 +776,18 @@ _gnutls_cipher_suite_is_ok (const uint8_t suite[2]) } +/*- + * _gnutls_supported_ciphersuites: + * @session: a TLS session + * @cipher_suites: Where the ciphersuites will be stored (2bytes each) + * @max_cipher_suite_size: the maximum size of the @cipher_suites buffer. + * + * Returns the supported ciphersuites by this session (based on priorities) + * sorted by order of preference. + * + * Returns the size of the @cipher_suites buffer, or a negative value on error. + * + -*/ int _gnutls_supported_ciphersuites (gnutls_session_t session, uint8_t *cipher_suites, int max_cipher_suite_size)