diff options
Diffstat (limited to 'src/rustls.h')
-rw-r--r-- | src/rustls.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rustls.h b/src/rustls.h index 207e3ce..47f093d 100644 --- a/src/rustls.h +++ b/src/rustls.h @@ -128,6 +128,7 @@ typedef uint32_t rustls_result; * Definitions of known TLS protocol versions. */ typedef enum rustls_tls_version { + RUSTLS_TLS_VERSION_UNKNOWN = 0, RUSTLS_TLS_VERSION_SSLV2 = 512, RUSTLS_TLS_VERSION_SSLV3 = 768, RUSTLS_TLS_VERSION_TLSV1_0 = 769, @@ -1019,6 +1020,13 @@ uint16_t rustls_supported_ciphersuite_get_suite(const struct rustls_supported_ci struct rustls_str rustls_supported_ciphersuite_get_name(const struct rustls_supported_ciphersuite *supported_ciphersuite); /** + * Returns the `rustls_tls_version` of the ciphersuite. + * + * See also `RUSTLS_ALL_VERSIONS`. + */ +enum rustls_tls_version rustls_supported_ciphersuite_protocol_version(const struct rustls_supported_ciphersuite *supported_ciphersuite); + +/** * Build a `rustls_certified_key` from a certificate chain and a private key * and the default process-wide crypto provider. * |