diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2014-06-06 21:38:34 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2014-06-06 21:38:34 +0000 |
commit | f2c8f580eb02fc9ff060de5b242c825113c7a065 (patch) | |
tree | 7460a2f03d55727ed838007481f297661f500d1f /ssl/tls1.h | |
parent | ba41f50577c8e3dd55fc4ca3950a7124fd3231db (diff) |
Diffstat (limited to 'ssl/tls1.h')
-rw-r--r-- | ssl/tls1.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ssl/tls1.h b/ssl/tls1.h index afe4807fa900..47f25afb1d04 100644 --- a/ssl/tls1.h +++ b/ssl/tls1.h @@ -80,10 +80,24 @@ extern "C" { #define TLS1_ALLOW_EXPERIMENTAL_CIPHERSUITES 0 +#define TLS1_2_VERSION 0x0303 +#define TLS1_2_VERSION_MAJOR 0x03 +#define TLS1_2_VERSION_MINOR 0x03 + +#define TLS1_1_VERSION 0x0302 +#define TLS1_1_VERSION_MAJOR 0x03 +#define TLS1_1_VERSION_MINOR 0x02 + #define TLS1_VERSION 0x0301 #define TLS1_VERSION_MAJOR 0x03 #define TLS1_VERSION_MINOR 0x01 +#define TLS1_get_version(s) \ + ((s->version >> 8) == TLS1_VERSION_MAJOR ? s->version : 0) + +#define TLS1_get_client_version(s) \ + ((s->client_version >> 8) == TLS1_VERSION_MAJOR ? s->client_version : 0) + #define TLS1_AD_DECRYPTION_FAILED 21 #define TLS1_AD_RECORD_OVERFLOW 22 #define TLS1_AD_UNKNOWN_CA 48 /* fatal */ |