diff options
author | 2021-01-21 18:48:56 +0000 | |
---|---|---|
committer | 2021-01-21 18:48:56 +0000 | |
commit | 10990a7dbe232a2965f8ede23851b8fe67233b77 (patch) | |
tree | 331c5e510ff7d1ad50dc1fcf5d6b2a0e48eb61bf /lib/libssl/d1_lib.c | |
parent | Pledge violation for SO_RTABLE prints "wroute" now. Adapt test. (diff) | |
download | wireguard-openbsd-10990a7dbe232a2965f8ede23851b8fe67233b77.tar.xz wireguard-openbsd-10990a7dbe232a2965f8ede23851b8fe67233b77.zip |
Mop up unused dtls1_build_sequence_number() function.
Diffstat (limited to 'lib/libssl/d1_lib.c')
-rw-r--r-- | lib/libssl/d1_lib.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/lib/libssl/d1_lib.c b/lib/libssl/d1_lib.c index b4ce2c0722d..4d406271af4 100644 --- a/lib/libssl/d1_lib.c +++ b/lib/libssl/d1_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_lib.c,v 1.51 2020/10/03 17:54:27 jsing Exp $ */ +/* $OpenBSD: d1_lib.c,v 1.52 2021/01/21 18:48:56 jsing Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -423,24 +423,3 @@ dtls1_listen(SSL *s, struct sockaddr *client) (void)BIO_dgram_get_peer(SSL_get_rbio(s), client); return 1; } - -void -dtls1_build_sequence_number(unsigned char *dst, unsigned char *seq, - unsigned short epoch) -{ - CBB cbb; - - if (!CBB_init_fixed(&cbb, dst, SSL3_SEQUENCE_SIZE)) - goto err; - if (!CBB_add_u16(&cbb, epoch)) - goto err; - if (!CBB_add_bytes(&cbb, &seq[2], SSL3_SEQUENCE_SIZE - 2)) - goto err; - if (!CBB_finish(&cbb, NULL, NULL)) - goto err; - - return; - - err: - CBB_cleanup(&cbb); -} |