diff options
author | jsing <> | 2017-01-26 05:31:25 +0000 |
---|---|---|
committer | jsing <> | 2017-01-26 05:31:25 +0000 |
commit | 9366f4ef0d67a19fe5eca3feedbc756a4a8966b2 (patch) | |
tree | 4e54623d2ff33c8bd1295cf166bf8253188d9d34 /src/lib/libssl/ssl_locl.h | |
parent | c7118cf7a1b4ff8cec6c52fba26ecfbfba0d7919 (diff) | |
download | openbsd-9366f4ef0d67a19fe5eca3feedbc756a4a8966b2.tar.gz openbsd-9366f4ef0d67a19fe5eca3feedbc756a4a8966b2.tar.bz2 openbsd-9366f4ef0d67a19fe5eca3feedbc756a4a8966b2.zip |
Merge the client/server version negotiation into the existing (currently
fixed version) client/server code.
ok beck@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index b682fc062e..bff28b1772 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.168 2017/01/26 00:42:44 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.169 2017/01/26 05:31:25 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -769,6 +769,7 @@ typedef struct ssl_internal_st { | |||
769 | int state; /* where we are */ | 769 | int state; /* where we are */ |
770 | int rstate; /* where we are when reading */ | 770 | int rstate; /* where we are when reading */ |
771 | 771 | ||
772 | int mac_packet; | ||
772 | } SSL_INTERNAL; | 773 | } SSL_INTERNAL; |
773 | 774 | ||
774 | typedef struct ssl3_state_internal_st { | 775 | typedef struct ssl3_state_internal_st { |
@@ -1082,6 +1083,11 @@ int ssl_supported_version_range(SSL *s, uint16_t *min_ver, uint16_t *max_ver); | |||
1082 | int ssl_max_shared_version(SSL *s, uint16_t peer_ver, uint16_t *max_ver); | 1083 | int ssl_max_shared_version(SSL *s, uint16_t peer_ver, uint16_t *max_ver); |
1083 | uint16_t ssl_max_server_version(SSL *s); | 1084 | uint16_t ssl_max_server_version(SSL *s); |
1084 | 1085 | ||
1086 | const SSL_METHOD *dtls1_get_client_method(int ver); | ||
1087 | const SSL_METHOD *dtls1_get_server_method(int ver); | ||
1088 | const SSL_METHOD *tls1_get_client_method(int ver); | ||
1089 | const SSL_METHOD *tls1_get_server_method(int ver); | ||
1090 | |||
1085 | extern SSL3_ENC_METHOD DTLSv1_enc_data; | 1091 | extern SSL3_ENC_METHOD DTLSv1_enc_data; |
1086 | extern SSL3_ENC_METHOD TLSv1_enc_data; | 1092 | extern SSL3_ENC_METHOD TLSv1_enc_data; |
1087 | extern SSL3_ENC_METHOD TLSv1_1_enc_data; | 1093 | extern SSL3_ENC_METHOD TLSv1_1_enc_data; |
@@ -1197,6 +1203,7 @@ long tls1_default_timeout(void); | |||
1197 | int dtls1_do_write(SSL *s, int type); | 1203 | int dtls1_do_write(SSL *s, int type); |
1198 | int ssl3_packet_read(SSL *s, int plen); | 1204 | int ssl3_packet_read(SSL *s, int plen); |
1199 | int ssl3_packet_extend(SSL *s, int plen); | 1205 | int ssl3_packet_extend(SSL *s, int plen); |
1206 | int ssl_server_legacy_first_packet(SSL *s); | ||
1200 | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); | 1207 | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); |
1201 | int ssl3_write_pending(SSL *s, int type, const unsigned char *buf, | 1208 | int ssl3_write_pending(SSL *s, int type, const unsigned char *buf, |
1202 | unsigned int len); | 1209 | unsigned int len); |