diff options
| author | miod <> | 2014-05-12 19:14:14 +0000 | 
|---|---|---|
| committer | miod <> | 2014-05-12 19:14:14 +0000 | 
| commit | d65c39e2c5f99603b15513e73dbc0dc5ca5b73fd (patch) | |
| tree | f99b0c7d57d24dcda17ac624bffd72e594930568 /src/lib/libssl/src | |
| parent | 184c91d9e726029e0dd6782d9ec4e2e1a7f7fc70 (diff) | |
| download | openbsd-d65c39e2c5f99603b15513e73dbc0dc5ca5b73fd.tar.gz openbsd-d65c39e2c5f99603b15513e73dbc0dc5ca5b73fd.tar.bz2 openbsd-d65c39e2c5f99603b15513e73dbc0dc5ca5b73fd.zip  | |
Move the `pqueue' part of libcrypto, which is a glorified sorted linked list
of 64-bit data, and only used by DTLS, to libssl where it belongs.
Remove pqueue_print() which is a debugging interface and serves no useful
purpose, except for the regress test, which grows its own pqueue_print()
routine.
Bump libcrypto major and libssl minor.
WARNING: do not update your tree right now, more changes are coming, which
will ride the libcrypto major bump.
Diffstat (limited to 'src/lib/libssl/src')
| -rw-r--r-- | src/lib/libssl/src/ssl/pqueue.c (renamed from src/lib/libssl/src/crypto/pqueue/pqueue.c) | 21 | ||||
| -rw-r--r-- | src/lib/libssl/src/ssl/pqueue.h (renamed from src/lib/libssl/src/crypto/pqueue/pqueue.h) | 1 | 
2 files changed, 3 insertions, 19 deletions
diff --git a/src/lib/libssl/src/crypto/pqueue/pqueue.c b/src/lib/libssl/src/ssl/pqueue.c index fc68ae19c3..99c118c3b6 100644 --- a/src/lib/libssl/src/crypto/pqueue/pqueue.c +++ b/src/lib/libssl/src/ssl/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 | { | 
diff --git a/src/lib/libssl/src/crypto/pqueue/pqueue.h b/src/lib/libssl/src/ssl/pqueue.h index 729e9abaf2..6e7df8f35b 100644 --- a/src/lib/libssl/src/crypto/pqueue/pqueue.h +++ b/src/lib/libssl/src/ssl/pqueue.h  | |||
| @@ -87,7 +87,6 @@ pitem *pqueue_find(pqueue pq, unsigned char *prio64be); | |||
| 87 | pitem *pqueue_iterator(pqueue pq); | 87 | pitem *pqueue_iterator(pqueue pq); | 
| 88 | pitem *pqueue_next(piterator *iter); | 88 | pitem *pqueue_next(piterator *iter); | 
| 89 | 89 | ||
| 90 | void pqueue_print(pqueue pq); | ||
| 91 | int pqueue_size(pqueue pq); | 90 | int pqueue_size(pqueue pq); | 
| 92 | 91 | ||
| 93 | #endif /* ! HEADER_PQUEUE_H */ | 92 | #endif /* ! HEADER_PQUEUE_H */ | 
