diff options
Diffstat (limited to 'src/lib/libssl')
-rw-r--r-- | src/lib/libssl/pqueue.c | 6 | ||||
-rw-r--r-- | src/lib/libssl/pqueue.h | 10 |
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 | ||
70 | pitem * | 70 | pitem * |
71 | pitem_new(unsigned char *prio64be, void *data) | 71 | pitem_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 | ||
156 | pitem * | 156 | pitem * |
157 | pqueue_find(pqueue_s *pq, unsigned char *prio64be) | 157 | pqueue_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 | ||
66 | typedef struct _pqueue *pqueue; | 66 | typedef struct _pqueue *pqueue; |
67 | 67 | ||
@@ -73,7 +73,7 @@ typedef struct _pitem { | |||
73 | 73 | ||
74 | typedef struct _pitem *piterator; | 74 | typedef struct _pitem *piterator; |
75 | 75 | ||
76 | pitem *pitem_new(unsigned char *prio64be, void *data); | 76 | pitem *pitem_new(const unsigned char *prio64be, void *data); |
77 | void pitem_free(pitem *item); | 77 | void pitem_free(pitem *item); |
78 | 78 | ||
79 | pqueue pqueue_new(void); | 79 | pqueue pqueue_new(void); |
@@ -82,12 +82,12 @@ void pqueue_free(pqueue pq); | |||
82 | pitem *pqueue_insert(pqueue pq, pitem *item); | 82 | pitem *pqueue_insert(pqueue pq, pitem *item); |
83 | pitem *pqueue_peek(pqueue pq); | 83 | pitem *pqueue_peek(pqueue pq); |
84 | pitem *pqueue_pop(pqueue pq); | 84 | pitem *pqueue_pop(pqueue pq); |
85 | pitem *pqueue_find(pqueue pq, unsigned char *prio64be); | 85 | pitem *pqueue_find(pqueue pq, const unsigned char *prio64be); |
86 | pitem *pqueue_iterator(pqueue pq); | 86 | pitem *pqueue_iterator(pqueue pq); |
87 | pitem *pqueue_next(piterator *iter); | 87 | pitem *pqueue_next(piterator *iter); |
88 | 88 | ||
89 | int pqueue_size(pqueue pq); | 89 | int 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 */ |