summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2017-01-26 05:31:25 +0000
committerjsing <>2017-01-26 05:31:25 +0000
commit9366f4ef0d67a19fe5eca3feedbc756a4a8966b2 (patch)
tree4e54623d2ff33c8bd1295cf166bf8253188d9d34 /src/lib/libssl/ssl_locl.h
parentc7118cf7a1b4ff8cec6c52fba26ecfbfba0d7919 (diff)
downloadopenbsd-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.h9
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
774typedef struct ssl3_state_internal_st { 775typedef struct ssl3_state_internal_st {
@@ -1082,6 +1083,11 @@ int ssl_supported_version_range(SSL *s, uint16_t *min_ver, uint16_t *max_ver);
1082int ssl_max_shared_version(SSL *s, uint16_t peer_ver, uint16_t *max_ver); 1083int ssl_max_shared_version(SSL *s, uint16_t peer_ver, uint16_t *max_ver);
1083uint16_t ssl_max_server_version(SSL *s); 1084uint16_t ssl_max_server_version(SSL *s);
1084 1085
1086const SSL_METHOD *dtls1_get_client_method(int ver);
1087const SSL_METHOD *dtls1_get_server_method(int ver);
1088const SSL_METHOD *tls1_get_client_method(int ver);
1089const SSL_METHOD *tls1_get_server_method(int ver);
1090
1085extern SSL3_ENC_METHOD DTLSv1_enc_data; 1091extern SSL3_ENC_METHOD DTLSv1_enc_data;
1086extern SSL3_ENC_METHOD TLSv1_enc_data; 1092extern SSL3_ENC_METHOD TLSv1_enc_data;
1087extern SSL3_ENC_METHOD TLSv1_1_enc_data; 1093extern SSL3_ENC_METHOD TLSv1_1_enc_data;
@@ -1197,6 +1203,7 @@ long tls1_default_timeout(void);
1197int dtls1_do_write(SSL *s, int type); 1203int dtls1_do_write(SSL *s, int type);
1198int ssl3_packet_read(SSL *s, int plen); 1204int ssl3_packet_read(SSL *s, int plen);
1199int ssl3_packet_extend(SSL *s, int plen); 1205int ssl3_packet_extend(SSL *s, int plen);
1206int ssl_server_legacy_first_packet(SSL *s);
1200int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); 1207int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek);
1201int ssl3_write_pending(SSL *s, int type, const unsigned char *buf, 1208int ssl3_write_pending(SSL *s, int type, const unsigned char *buf,
1202 unsigned int len); 1209 unsigned int len);