diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-12 19:14:15 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-12 19:14:15 +0000 |
commit | 97c0b738a3a087600fe0e1b9a9a61b6213096276 (patch) | |
tree | be91984761e3fc5fb17718e9402c724b716db9fd /lib/libssl | |
parent | 74442a9380130318b2589077567fc5246e7a9bfb (diff) |
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 'lib/libssl')
-rw-r--r-- | lib/libssl/src/ssl/pqueue.c (renamed from lib/libssl/src/crypto/pqueue/pqueue.c) | 21 | ||||
-rw-r--r-- | lib/libssl/src/ssl/pqueue.h (renamed from lib/libssl/src/crypto/pqueue/pqueue.h) | 1 | ||||
-rw-r--r-- | lib/libssl/ssl/Makefile | 7 | ||||
-rw-r--r-- | lib/libssl/ssl/shlib_version | 2 |
4 files changed, 8 insertions, 23 deletions
diff --git a/lib/libssl/src/crypto/pqueue/pqueue.c b/lib/libssl/src/ssl/pqueue.c index fc68ae19c3d..99c118c3b6f 100644 --- a/lib/libssl/src/crypto/pqueue/pqueue.c +++ b/lib/libssl/src/ssl/pqueue.c @@ -57,8 +57,7 @@ * */ -#include "cryptlib.h" -#include <openssl/bn.h> +#include <string.h> #include "pqueue.h" typedef struct _pqueue { @@ -175,7 +174,8 @@ pqueue_find(pqueue_s *pq, unsigned char *prio64be) return NULL; for (next = pq->items; next != NULL; next = next->next) { - if (memcmp(next->priority, prio64be, 8) == 0) { + if (memcmp(next->priority, prio64be, + sizeof(next->priority)) == 0) { found = next; break; } @@ -187,21 +187,6 @@ pqueue_find(pqueue_s *pq, unsigned char *prio64be) return found; } -void -pqueue_print(pqueue_s *pq) -{ - pitem *item = pq->items; - - while (item != NULL) { - printf("item\t%02x%02x%02x%02x%02x%02x%02x%02x\n", - item->priority[0], item->priority[1], - item->priority[2], item->priority[3], - item->priority[4], item->priority[5], - item->priority[6], item->priority[7]); - item = item->next; - } -} - pitem * pqueue_iterator(pqueue_s *pq) { diff --git a/lib/libssl/src/crypto/pqueue/pqueue.h b/lib/libssl/src/ssl/pqueue.h index 729e9abaf25..6e7df8f35b7 100644 --- a/lib/libssl/src/crypto/pqueue/pqueue.h +++ b/lib/libssl/src/ssl/pqueue.h @@ -87,7 +87,6 @@ pitem *pqueue_find(pqueue pq, unsigned char *prio64be); pitem *pqueue_iterator(pqueue pq); pitem *pqueue_next(piterator *iter); -void pqueue_print(pqueue pq); int pqueue_size(pqueue pq); #endif /* ! HEADER_PQUEUE_H */ diff --git a/lib/libssl/ssl/Makefile b/lib/libssl/ssl/Makefile index 737121fce4b..8975572be86 100644 --- a/lib/libssl/ssl/Makefile +++ b/lib/libssl/ssl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.41 2014/05/05 15:03:22 tedu Exp $ +# $OpenBSD: Makefile,v 1.42 2014/05/12 19:14:14 miod Exp $ LIB= ssl @@ -19,10 +19,11 @@ SRCS=\ ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \ ssl_ciph.c ssl_stat.c ssl_rsa.c \ ssl_asn1.c ssl_txt.c ssl_algs.c \ - bio_ssl.c ssl_err.c t1_reneg.c + bio_ssl.c ssl_err.c t1_reneg.c \ + pqueue.c SRCS+= s3_cbc.c -HDRS= srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h kssl.h +HDRS= srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h kssl.h pqueue.h .PATH: ${LSSL_SRC} diff --git a/lib/libssl/ssl/shlib_version b/lib/libssl/ssl/shlib_version index 906022aa66d..aa54cbb404e 100644 --- a/lib/libssl/ssl/shlib_version +++ b/lib/libssl/ssl/shlib_version @@ -1,2 +1,2 @@ major=24 -minor=0 +minor=1 |