summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2014-06-21 17:02:25 +0000
committerjsing <>2014-06-21 17:02:25 +0000
commit840f85a4ae7fc3a3cf71d93ab17fbab37c2cc3fc (patch)
treef082331208091f9dab5ae7971f7bcd9d557ce5ea /src/lib/libssl/ssl_locl.h
parent01ebd0cfc6bad80679edbaa1924e5d9323c29b2e (diff)
downloadopenbsd-840f85a4ae7fc3a3cf71d93ab17fbab37c2cc3fc.tar.gz
openbsd-840f85a4ae7fc3a3cf71d93ab17fbab37c2cc3fc.tar.bz2
openbsd-840f85a4ae7fc3a3cf71d93ab17fbab37c2cc3fc.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 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index e7fdda69a9..09d4b20334 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.52 2014/06/15 15:29:25 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.53 2014/06/21 17:02: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 *
@@ -759,9 +759,12 @@ int dtls1_retransmit_message(SSL *s, unsigned short seq,
759int dtls1_get_queue_priority(unsigned short seq, int is_ccs); 759int dtls1_get_queue_priority(unsigned short seq, int is_ccs);
760int dtls1_retransmit_buffered_messages(SSL *s); 760int dtls1_retransmit_buffered_messages(SSL *s);
761void dtls1_clear_record_buffer(SSL *s); 761void dtls1_clear_record_buffer(SSL *s);
762void dtls1_get_message_header(unsigned char *data, struct hm_header_st *msg_hdr); 762void dtls1_get_message_header(unsigned char *data,
763 struct hm_header_st *msg_hdr);
763void dtls1_get_ccs_header(unsigned char *data, struct ccs_header_st *ccs_hdr); 764void dtls1_get_ccs_header(unsigned char *data, struct ccs_header_st *ccs_hdr);
764void dtls1_reset_seq_numbers(SSL *s, int rw); 765void dtls1_reset_seq_numbers(SSL *s, int rw);
766void dtls1_build_sequence_number(unsigned char *dst, unsigned char *seq,
767 unsigned short epoch);
765long dtls1_default_timeout(void); 768long dtls1_default_timeout(void);
766struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft); 769struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft);
767int dtls1_check_timeout_num(SSL *s); 770int dtls1_check_timeout_num(SSL *s);