summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/ssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-06-21 17:02:25 +0000
committerjsing <jsing@openbsd.org>2014-06-21 17:02:25 +0000
commit63152afb14736fcf33702fb45a5e1372494fa25c (patch)
tree2b9c6d494cec89c88abe69fff9113e0fa4f16b46 /lib/libssl/src/ssl/ssl_locl.h
parentSpecify the correct strength bits for 3DES cipher suites. (diff)
downloadwireguard-openbsd-63152afb14736fcf33702fb45a5e1372494fa25c.tar.xz
wireguard-openbsd-63152afb14736fcf33702fb45a5e1372494fa25c.zip
Pull the code that builds a DTLS sequence number out into its own function
to avoid duplication. Also use fewer magic numbers. ok miod@
Diffstat (limited to 'lib/libssl/src/ssl/ssl_locl.h')
-rw-r--r--lib/libssl/src/ssl/ssl_locl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libssl/src/ssl/ssl_locl.h b/lib/libssl/src/ssl/ssl_locl.h
index e7fdda69a98..09d4b203346 100644
--- a/lib/libssl/src/ssl/ssl_locl.h
+++ b/lib/libssl/src/ssl/ssl_locl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_locl.h,v 1.52 2014/06/15 15:29:25 jsing Exp $ */
+/* $OpenBSD: ssl_locl.h,v 1.53 2014/06/21 17:02:25 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -759,9 +759,12 @@ int dtls1_retransmit_message(SSL *s, unsigned short seq,
int dtls1_get_queue_priority(unsigned short seq, int is_ccs);
int dtls1_retransmit_buffered_messages(SSL *s);
void dtls1_clear_record_buffer(SSL *s);
-void dtls1_get_message_header(unsigned char *data, struct hm_header_st *msg_hdr);
+void dtls1_get_message_header(unsigned char *data,
+ struct hm_header_st *msg_hdr);
void dtls1_get_ccs_header(unsigned char *data, struct ccs_header_st *ccs_hdr);
void dtls1_reset_seq_numbers(SSL *s, int rw);
+void dtls1_build_sequence_number(unsigned char *dst, unsigned char *seq,
+ unsigned short epoch);
long dtls1_default_timeout(void);
struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft);
int dtls1_check_timeout_num(SSL *s);