diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/pqueue.c (renamed from src/lib/libcrypto/pqueue/pqueue.c) | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/lib/libcrypto/pqueue/pqueue.c b/src/lib/libssl/pqueue.c index fc68ae19c3..99c118c3b6 100644 --- a/src/lib/libcrypto/pqueue/pqueue.c +++ b/src/lib/libssl/pqueue.c | |||
@@ -57,8 +57,7 @@ | |||
57 | * | 57 | * |
58 | */ | 58 | */ |
59 | 59 | ||
60 | #include "cryptlib.h" | 60 | #include <string.h> |
61 | #include <openssl/bn.h> | ||
62 | #include "pqueue.h" | 61 | #include "pqueue.h" |
63 | 62 | ||
64 | typedef struct _pqueue { | 63 | typedef struct _pqueue { |
@@ -175,7 +174,8 @@ pqueue_find(pqueue_s *pq, unsigned char *prio64be) | |||
175 | return NULL; | 174 | return NULL; |
176 | 175 | ||
177 | for (next = pq->items; next != NULL; next = next->next) { | 176 | for (next = pq->items; next != NULL; next = next->next) { |
178 | if (memcmp(next->priority, prio64be, 8) == 0) { | 177 | if (memcmp(next->priority, prio64be, |
178 | sizeof(next->priority)) == 0) { | ||
179 | found = next; | 179 | found = next; |
180 | break; | 180 | break; |
181 | } | 181 | } |
@@ -187,21 +187,6 @@ pqueue_find(pqueue_s *pq, unsigned char *prio64be) | |||
187 | return found; | 187 | return found; |
188 | } | 188 | } |
189 | 189 | ||
190 | void | ||
191 | pqueue_print(pqueue_s *pq) | ||
192 | { | ||
193 | pitem *item = pq->items; | ||
194 | |||
195 | while (item != NULL) { | ||
196 | printf("item\t%02x%02x%02x%02x%02x%02x%02x%02x\n", | ||
197 | item->priority[0], item->priority[1], | ||
198 | item->priority[2], item->priority[3], | ||
199 | item->priority[4], item->priority[5], | ||
200 | item->priority[6], item->priority[7]); | ||
201 | item = item->next; | ||
202 | } | ||
203 | } | ||
204 | |||
205 | pitem * | 190 | pitem * |
206 | pqueue_iterator(pqueue_s *pq) | 191 | pqueue_iterator(pqueue_s *pq) |
207 | { | 192 | { |