Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-05-08 20:08:52 +0300
committerAdam Langley <agl@google.com>2015-05-08 21:02:02 +0300
commit593047fd8056e40b690f5b695ad35a4b09f9f9bb (patch)
tree5b584eed2aade11880955ab456eb415b47f9f3b4 /include/openssl/tls1.h
parentdfb67134dc029f0ed6001dfc8c0e2a04e136ffa6 (diff)
Opaquify DTLS structs.
Nothing ever uses those structs. This to avoid having any structs in the public header which use struct timeval. In doing so, move the protocol version constants up to ssl.h so dtls1.h may be empty. This also removes TLS1_get_version and TLS1_get_client_version as they're unused and depend on TLS1_VERSION_MAJOR. This still lets tls1.h be included independently from ssl.h (though I don't think anyone ever includes it...). Change-Id: Ieac8b90cf94f7f1e742a88bb75c0ee0aa4b1414c Reviewed-on: https://boringssl-review.googlesource.com/4681 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/tls1.h')
-rw-r--r--include/openssl/tls1.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/openssl/tls1.h b/include/openssl/tls1.h
index 94c79dbf..e085e15c 100644
--- a/include/openssl/tls1.h
+++ b/include/openssl/tls1.h
@@ -161,24 +161,6 @@ 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 */