diff options
author | jsing <> | 2021-07-26 03:17:38 +0000 |
---|---|---|
committer | jsing <> | 2021-07-26 03:17:38 +0000 |
commit | d07f7fde139d15ba9e55fcf7ecb45bbfc82d6564 (patch) | |
tree | d5c4303283f0e876353ed068b657a28628fa0880 /src/lib/libssl/dtls_locl.h | |
parent | 33ebe6f37b9fdb4bc9eb04dfa95da59ed59d9427 (diff) | |
download | openbsd-d07f7fde139d15ba9e55fcf7ecb45bbfc82d6564.tar.gz openbsd-d07f7fde139d15ba9e55fcf7ecb45bbfc82d6564.tar.bz2 openbsd-d07f7fde139d15ba9e55fcf7ecb45bbfc82d6564.zip |
Dedup dtls1_dispatch_alert()/ssl3_dispatch_alert().
The code for dtls1_dispatch_alert() and ssl3_dispatch_alert() is largely
identical - with a bit of reshuffling we can use ssl3_dispatch_alert() for
both protocols and remove the ssl_dispatch_alert function pointer.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/dtls_locl.h')
-rw-r--r-- | src/lib/libssl/dtls_locl.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libssl/dtls_locl.h b/src/lib/libssl/dtls_locl.h index bc28ce8559..97f05b26bd 100644 --- a/src/lib/libssl/dtls_locl.h +++ b/src/lib/libssl/dtls_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dtls_locl.h,v 1.3 2021/07/21 08:42:14 jsing Exp $ */ | 1 | /* $OpenBSD: dtls_locl.h,v 1.4 2021/07/26 03:17:38 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
@@ -207,6 +207,9 @@ void dtls1_set_message_header_int(SSL *s, unsigned char mt, | |||
207 | unsigned long len, unsigned short seq_num, unsigned long frag_off, | 207 | unsigned long len, unsigned short seq_num, unsigned long frag_off, |
208 | unsigned long frag_len); | 208 | unsigned long frag_len); |
209 | 209 | ||
210 | int do_dtls1_write(SSL *s, int type, const unsigned char *buf, | ||
211 | unsigned int len); | ||
212 | |||
210 | int dtls1_write_app_data_bytes(SSL *s, int type, const void *buf, int len); | 213 | int dtls1_write_app_data_bytes(SSL *s, int type, const void *buf, int len); |
211 | int dtls1_write_bytes(SSL *s, int type, const void *buf, int len); | 214 | int dtls1_write_bytes(SSL *s, int type, const void *buf, int len); |
212 | 215 | ||
@@ -237,7 +240,6 @@ long dtls1_ctrl(SSL *s, int cmd, long larg, void *parg); | |||
237 | 240 | ||
238 | long dtls1_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok); | 241 | long dtls1_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok); |
239 | int dtls1_get_record(SSL *s); | 242 | int dtls1_get_record(SSL *s); |
240 | int dtls1_dispatch_alert(SSL *s); | ||
241 | 243 | ||
242 | __END_HIDDEN_DECLS | 244 | __END_HIDDEN_DECLS |
243 | 245 | ||