summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/crypto/Makefile7
-rw-r--r--src/lib/libcrypto/crypto/shlib_version4
-rw-r--r--src/lib/libcrypto/shlib_version4
-rw-r--r--src/lib/libssl/pqueue.c (renamed from src/lib/libcrypto/pqueue/pqueue.c)21
-rw-r--r--src/lib/libssl/pqueue.h (renamed from src/lib/libcrypto/pqueue/pqueue.h)1
-rw-r--r--src/lib/libssl/shlib_version2
-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
-rw-r--r--src/lib/libssl/ssl/Makefile7
-rw-r--r--src/lib/libssl/ssl/shlib_version2
10 files changed, 17 insertions, 53 deletions
diff --git a/src/lib/libcrypto/crypto/Makefile b/src/lib/libcrypto/crypto/Makefile
index 5fefdb1cf0..ce04ac9e61 100644
--- a/src/lib/libcrypto/crypto/Makefile
+++ b/src/lib/libcrypto/crypto/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.31 2014/05/04 17:12:19 miod Exp $ 1# $OpenBSD: Makefile,v 1.32 2014/05/12 19:14:14 miod Exp $
2 2
3LIB= crypto 3LIB= crypto
4 4
@@ -198,9 +198,6 @@ SRCS+= p12_utl.c p12_npas.c pk12err.c p12_p8d.c p12_p8e.c
198SRCS+= pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c 198SRCS+= pk7_asn1.c pk7_lib.c pkcs7err.c pk7_doit.c pk7_smime.c pk7_attr.c
199SRCS+= pk7_mime.c bio_pk7.c 199SRCS+= pk7_mime.c bio_pk7.c
200 200
201# pqueue/
202SRCS+= pqueue.c
203
204# rand/ 201# rand/
205SRCS+= randfile.c rand_lib.c rand_err.c 202SRCS+= randfile.c rand_lib.c rand_err.c
206 203
@@ -304,7 +301,6 @@ SRCS+= v3_asid.c v3_addr.c
304 ${LCRYPTO_SRC}/perlasm \ 301 ${LCRYPTO_SRC}/perlasm \
305 ${LCRYPTO_SRC}/pkcs12 \ 302 ${LCRYPTO_SRC}/pkcs12 \
306 ${LCRYPTO_SRC}/pkcs7 \ 303 ${LCRYPTO_SRC}/pkcs7 \
307 ${LCRYPTO_SRC}/pqueue \
308 ${LCRYPTO_SRC}/rand \ 304 ${LCRYPTO_SRC}/rand \
309 ${LCRYPTO_SRC}/rc2 \ 305 ${LCRYPTO_SRC}/rc2 \
310 ${LCRYPTO_SRC}/rc4 \ 306 ${LCRYPTO_SRC}/rc4 \
@@ -367,7 +363,6 @@ HDRS=\
367 crypto/pem/pem2.h \ 363 crypto/pem/pem2.h \
368 crypto/pkcs12/pkcs12.h \ 364 crypto/pkcs12/pkcs12.h \
369 crypto/pkcs7/pkcs7.h \ 365 crypto/pkcs7/pkcs7.h \
370 crypto/pqueue/pqueue.h \
371 crypto/rand/rand.h \ 366 crypto/rand/rand.h \
372 crypto/rc2/rc2.h \ 367 crypto/rc2/rc2.h \
373 crypto/rc4/rc4.h \ 368 crypto/rc4/rc4.h \
diff --git a/src/lib/libcrypto/crypto/shlib_version b/src/lib/libcrypto/crypto/shlib_version
index 72168dfd16..54ef0c4cc0 100644
--- a/src/lib/libcrypto/crypto/shlib_version
+++ b/src/lib/libcrypto/crypto/shlib_version
@@ -1,2 +1,2 @@
1major=26 1major=27
2minor=1 2minor=0
diff --git a/src/lib/libcrypto/shlib_version b/src/lib/libcrypto/shlib_version
index 72168dfd16..54ef0c4cc0 100644
--- a/src/lib/libcrypto/shlib_version
+++ b/src/lib/libcrypto/shlib_version
@@ -1,2 +1,2 @@
1major=26 1major=27
2minor=1 2minor=0
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
64typedef struct _pqueue { 63typedef 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
190void
191pqueue_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
205pitem * 190pitem *
206pqueue_iterator(pqueue_s *pq) 191pqueue_iterator(pqueue_s *pq)
207{ 192{
diff --git a/src/lib/libcrypto/pqueue/pqueue.h b/src/lib/libssl/pqueue.h
index 729e9abaf2..6e7df8f35b 100644
--- a/src/lib/libcrypto/pqueue/pqueue.h
+++ b/src/lib/libssl/pqueue.h
@@ -87,7 +87,6 @@ pitem *pqueue_find(pqueue pq, unsigned char *prio64be);
87pitem *pqueue_iterator(pqueue pq); 87pitem *pqueue_iterator(pqueue pq);
88pitem *pqueue_next(piterator *iter); 88pitem *pqueue_next(piterator *iter);
89 89
90void pqueue_print(pqueue pq);
91int pqueue_size(pqueue pq); 90int pqueue_size(pqueue pq);
92 91
93#endif /* ! HEADER_PQUEUE_H */ 92#endif /* ! HEADER_PQUEUE_H */
diff --git a/src/lib/libssl/shlib_version b/src/lib/libssl/shlib_version
index 906022aa66..aa54cbb404 100644
--- a/src/lib/libssl/shlib_version
+++ b/src/lib/libssl/shlib_version
@@ -1,2 +1,2 @@
1major=24 1major=24
2minor=0 2minor=1
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
64typedef struct _pqueue { 63typedef 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
190void
191pqueue_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
205pitem * 190pitem *
206pqueue_iterator(pqueue_s *pq) 191pqueue_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);
87pitem *pqueue_iterator(pqueue pq); 87pitem *pqueue_iterator(pqueue pq);
88pitem *pqueue_next(piterator *iter); 88pitem *pqueue_next(piterator *iter);
89 89
90void pqueue_print(pqueue pq);
91int pqueue_size(pqueue pq); 90int pqueue_size(pqueue pq);
92 91
93#endif /* ! HEADER_PQUEUE_H */ 92#endif /* ! HEADER_PQUEUE_H */
diff --git a/src/lib/libssl/ssl/Makefile b/src/lib/libssl/ssl/Makefile
index 737121fce4..8975572be8 100644
--- a/src/lib/libssl/ssl/Makefile
+++ b/src/lib/libssl/ssl/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.41 2014/05/05 15:03:22 tedu Exp $ 1# $OpenBSD: Makefile,v 1.42 2014/05/12 19:14:14 miod Exp $
2 2
3LIB= ssl 3LIB= ssl
4 4
@@ -19,10 +19,11 @@ SRCS=\
19 ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \ 19 ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \
20 ssl_ciph.c ssl_stat.c ssl_rsa.c \ 20 ssl_ciph.c ssl_stat.c ssl_rsa.c \
21 ssl_asn1.c ssl_txt.c ssl_algs.c \ 21 ssl_asn1.c ssl_txt.c ssl_algs.c \
22 bio_ssl.c ssl_err.c t1_reneg.c 22 bio_ssl.c ssl_err.c t1_reneg.c \
23 pqueue.c
23SRCS+= s3_cbc.c 24SRCS+= s3_cbc.c
24 25
25HDRS= srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h kssl.h 26HDRS= srtp.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h dtls1.h kssl.h pqueue.h
26 27
27.PATH: ${LSSL_SRC} 28.PATH: ${LSSL_SRC}
28 29
diff --git a/src/lib/libssl/ssl/shlib_version b/src/lib/libssl/ssl/shlib_version
index 906022aa66..aa54cbb404 100644
--- a/src/lib/libssl/ssl/shlib_version
+++ b/src/lib/libssl/ssl/shlib_version
@@ -1,2 +1,2 @@
1major=24 1major=24
2minor=0 2minor=1