summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/d1_lib.c')
-rw-r--r--src/lib/libssl/d1_lib.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/lib/libssl/d1_lib.c b/src/lib/libssl/d1_lib.c
index b4ce2c0722..4d406271af 100644
--- a/src/lib/libssl/d1_lib.c
+++ b/src/lib/libssl/d1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_lib.c,v 1.51 2020/10/03 17:54:27 jsing Exp $ */ 1/* $OpenBSD: d1_lib.c,v 1.52 2021/01/21 18:48:56 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.
@@ -423,24 +423,3 @@ dtls1_listen(SSL *s, struct sockaddr *client)
423 (void)BIO_dgram_get_peer(SSL_get_rbio(s), client); 423 (void)BIO_dgram_get_peer(SSL_get_rbio(s), client);
424 return 1; 424 return 1;
425} 425}
426
427void
428dtls1_build_sequence_number(unsigned char *dst, unsigned char *seq,
429 unsigned short epoch)
430{
431 CBB cbb;
432
433 if (!CBB_init_fixed(&cbb, dst, SSL3_SEQUENCE_SIZE))
434 goto err;
435 if (!CBB_add_u16(&cbb, epoch))
436 goto err;
437 if (!CBB_add_bytes(&cbb, &seq[2], SSL3_SEQUENCE_SIZE - 2))
438 goto err;
439 if (!CBB_finish(&cbb, NULL, NULL))
440 goto err;
441
442 return;
443
444 err:
445 CBB_cleanup(&cbb);
446}