diff options
author | jsing <> | 2017-01-25 06:13:02 +0000 |
---|---|---|
committer | jsing <> | 2017-01-25 06:13:02 +0000 |
commit | 994be17488e885953ca1fef89bbc4d5fb24eba71 (patch) | |
tree | fa8c6cb9fb6d55c7422e8539eed63d9c115a282d /src/lib/libssl/ssl_locl.h | |
parent | 0bc052b366fc7f6e3f38271d4294ce4217f86f4d (diff) | |
download | openbsd-994be17488e885953ca1fef89bbc4d5fb24eba71.tar.gz openbsd-994be17488e885953ca1fef89bbc4d5fb24eba71.tar.bz2 openbsd-994be17488e885953ca1fef89bbc4d5fb24eba71.zip |
Provide ssl3_packet_read() and ssl3_packet_extend() functions that improve
the awkward API provided by ssl3_read_n(). Call these when we need to
read or extend a packet.
ok beck@
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 0cda709da6..9cad2bc50d 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.164 2017/01/24 09:03:21 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.165 2017/01/25 06:13:02 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 | * |
@@ -1198,7 +1198,8 @@ long ssl23_default_timeout(void); | |||
1198 | 1198 | ||
1199 | long tls1_default_timeout(void); | 1199 | long tls1_default_timeout(void); |
1200 | int dtls1_do_write(SSL *s, int type); | 1200 | int dtls1_do_write(SSL *s, int type); |
1201 | int ssl3_read_n(SSL *s, int n, int max, int extend); | 1201 | int ssl3_packet_read(SSL *s, int plen); |
1202 | int ssl3_packet_extend(SSL *s, int plen); | ||
1202 | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); | 1203 | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek); |
1203 | int ssl3_write_pending(SSL *s, int type, const unsigned char *buf, | 1204 | int ssl3_write_pending(SSL *s, int type, const unsigned char *buf, |
1204 | unsigned int len); | 1205 | unsigned int len); |