diff options
author | jsing <> | 2014-06-21 17:02:25 +0000 |
---|---|---|
committer | jsing <> | 2014-06-21 17:02:25 +0000 |
commit | 840f85a4ae7fc3a3cf71d93ab17fbab37c2cc3fc (patch) | |
tree | f082331208091f9dab5ae7971f7bcd9d557ce5ea /src/lib/libssl/ssl_locl.h | |
parent | 01ebd0cfc6bad80679edbaa1924e5d9323c29b2e (diff) | |
download | openbsd-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.h | 7 |
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, | |||
759 | int dtls1_get_queue_priority(unsigned short seq, int is_ccs); | 759 | int dtls1_get_queue_priority(unsigned short seq, int is_ccs); |
760 | int dtls1_retransmit_buffered_messages(SSL *s); | 760 | int dtls1_retransmit_buffered_messages(SSL *s); |
761 | void dtls1_clear_record_buffer(SSL *s); | 761 | void dtls1_clear_record_buffer(SSL *s); |
762 | void dtls1_get_message_header(unsigned char *data, struct hm_header_st *msg_hdr); | 762 | void dtls1_get_message_header(unsigned char *data, |
763 | struct hm_header_st *msg_hdr); | ||
763 | void dtls1_get_ccs_header(unsigned char *data, struct ccs_header_st *ccs_hdr); | 764 | void dtls1_get_ccs_header(unsigned char *data, struct ccs_header_st *ccs_hdr); |
764 | void dtls1_reset_seq_numbers(SSL *s, int rw); | 765 | void dtls1_reset_seq_numbers(SSL *s, int rw); |
766 | void dtls1_build_sequence_number(unsigned char *dst, unsigned char *seq, | ||
767 | unsigned short epoch); | ||
765 | long dtls1_default_timeout(void); | 768 | long dtls1_default_timeout(void); |
766 | struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft); | 769 | struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft); |
767 | int dtls1_check_timeout_num(SSL *s); | 770 | int dtls1_check_timeout_num(SSL *s); |