summaryrefslogtreecommitdiff
path: root/src/lib/libssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl')
-rw-r--r--src/lib/libssl/pqueue.c6
-rw-r--r--src/lib/libssl/pqueue.h10
2 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libssl/pqueue.c b/src/lib/libssl/pqueue.c
index 602969deb0..aafd0a704e 100644
--- a/src/lib/libssl/pqueue.c
+++ b/src/lib/libssl/pqueue.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pqueue.c,v 1.5 2014/06/12 15:49:31 deraadt Exp $ */ 1/* $OpenBSD: pqueue.c,v 1.7 2025/05/04 10:53:38 tb 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.
@@ -68,7 +68,7 @@ typedef struct _pqueue {
68} pqueue_s; 68} pqueue_s;
69 69
70pitem * 70pitem *
71pitem_new(unsigned char *prio64be, void *data) 71pitem_new(const unsigned char *prio64be, void *data)
72{ 72{
73 pitem *item = malloc(sizeof(pitem)); 73 pitem *item = malloc(sizeof(pitem));
74 74
@@ -154,7 +154,7 @@ pqueue_pop(pqueue_s *pq)
154} 154}
155 155
156pitem * 156pitem *
157pqueue_find(pqueue_s *pq, unsigned char *prio64be) 157pqueue_find(pqueue_s *pq, const unsigned char *prio64be)
158{ 158{
159 pitem *next; 159 pitem *next;
160 160
diff --git a/src/lib/libssl/pqueue.h b/src/lib/libssl/pqueue.h
index cdda4a3961..79ddf7a105 100644
--- a/src/lib/libssl/pqueue.h
+++ b/src/lib/libssl/pqueue.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: pqueue.h,v 1.4 2016/11/04 18:28:58 guenther Exp $ */ 1/* $OpenBSD: pqueue.h,v 1.7 2025/05/04 10:53:38 tb Exp $ */
2 2
3/* 3/*
4 * DTLS implementation written by Nagendra Modadugu 4 * DTLS implementation written by Nagendra Modadugu
@@ -61,7 +61,7 @@
61#ifndef HEADER_PQUEUE_H 61#ifndef HEADER_PQUEUE_H
62#define HEADER_PQUEUE_H 62#define HEADER_PQUEUE_H
63 63
64__BEGIN_HIDDEN_DECLS 64__BEGIN_HIDDEN_DECLS
65 65
66typedef struct _pqueue *pqueue; 66typedef struct _pqueue *pqueue;
67 67
@@ -73,7 +73,7 @@ typedef struct _pitem {
73 73
74typedef struct _pitem *piterator; 74typedef struct _pitem *piterator;
75 75
76pitem *pitem_new(unsigned char *prio64be, void *data); 76pitem *pitem_new(const unsigned char *prio64be, void *data);
77void pitem_free(pitem *item); 77void pitem_free(pitem *item);
78 78
79pqueue pqueue_new(void); 79pqueue pqueue_new(void);
@@ -82,12 +82,12 @@ void pqueue_free(pqueue pq);
82pitem *pqueue_insert(pqueue pq, pitem *item); 82pitem *pqueue_insert(pqueue pq, pitem *item);
83pitem *pqueue_peek(pqueue pq); 83pitem *pqueue_peek(pqueue pq);
84pitem *pqueue_pop(pqueue pq); 84pitem *pqueue_pop(pqueue pq);
85pitem *pqueue_find(pqueue pq, unsigned char *prio64be); 85pitem *pqueue_find(pqueue pq, const unsigned char *prio64be);
86pitem *pqueue_iterator(pqueue pq); 86pitem *pqueue_iterator(pqueue pq);
87pitem *pqueue_next(piterator *iter); 87pitem *pqueue_next(piterator *iter);
88 88
89int pqueue_size(pqueue pq); 89int pqueue_size(pqueue pq);
90 90
91__END_HIDDEN_DECLS 91__END_HIDDEN_DECLS
92 92
93#endif /* ! HEADER_PQUEUE_H */ 93#endif /* ! HEADER_PQUEUE_H */