X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fpqueue%2Fpqueue.h;h=7a293c8584c21213702d17609cf637985fa9c748;hb=673c55a2fe62000a0b7f0345ed16d91e1d28427a;hp=2ac31e21f02dff9e47e00f78ce98c6bcdb0902c1;hpb=6c61726b2af78a1985178d31e551351231b54b10;p=oweals%2Fopenssl.git diff --git a/crypto/pqueue/pqueue.h b/crypto/pqueue/pqueue.h index 2ac31e21f0..7a293c8584 100644 --- a/crypto/pqueue/pqueue.h +++ b/crypto/pqueue/pqueue.h @@ -68,14 +68,14 @@ typedef struct _pqueue *pqueue; typedef struct _pitem { - BN_ULLONG priority; + unsigned char priority[8]; /* 64-bit value in big-endian encoding */ void *data; struct _pitem *next; } pitem; typedef struct _pitem *piterator; -pitem *pitem_new(BN_ULLONG priority, void *data); +pitem *pitem_new(unsigned char *prio64be, void *data); void pitem_free(pitem *item); pqueue pqueue_new(void); @@ -84,7 +84,7 @@ void pqueue_free(pqueue pq); pitem *pqueue_insert(pqueue pq, pitem *item); pitem *pqueue_peek(pqueue pq); pitem *pqueue_pop(pqueue pq); -pitem *pqueue_find(pqueue pq, BN_ULLONG priority); +pitem *pqueue_find(pqueue pq, unsigned char *prio64be); pitem *pqueue_iterator(pqueue pq); pitem *pqueue_next(piterator *iter);