bn ec rsa dsa dh dso engine \
buffer bio stack lhash rand err \
evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui \
- cms pqueue ts jpake srp store cmac ct async kdf
+ cms ts jpake srp store cmac ct async kdf
# keep in mind that the above list is adjusted by ./Configure
# according to no-xxx arguments...
+++ /dev/null
-#
-# OpenSSL/crypto/pqueue/Makefile
-#
-
-DIR= pqueue
-TOP= ../..
-CC= cc
-INCLUDES=
-CFLAG=-g
-MAKEFILE= Makefile
-AR= ar r
-
-CFLAGS= $(INCLUDES) $(CFLAG)
-
-GENERAL=Makefile
-
-LIB=$(TOP)/libcrypto.a
-LIBSRC=pqueue.c
-LIBOBJ=pqueue.o
-
-SRC= $(LIBSRC)
-
-HEADER=
-
-ALL= $(GENERAL) $(SRC) $(HEADER)
-
-top:
- (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
-
-all: lib
-
-lib: $(LIBOBJ)
- $(AR) $(LIB) $(LIBOBJ)
- $(RANLIB) $(LIB) || echo Never mind.
- @touch lib
-
-files:
- $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
-
-depend:
- @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
- $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
-
-clean:
- rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
-
-# DO NOT DELETE THIS LINE -- make depend depends on it.
+++ /dev/null
-/* crypto/pqueue/pq_test.c */
-/*
- * DTLS implementation written by Nagendra Modadugu
- * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
- */
-/* ====================================================================
- * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. All advertising materials mentioning features or use of this
- * software must display the following acknowledgment:
- * "This product includes software developed by the OpenSSL Project
- * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
- *
- * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
- * endorse or promote products derived from this software without
- * prior written permission. For written permission, please contact
- * openssl-core@OpenSSL.org.
- *
- * 5. Products derived from this software may not be called "OpenSSL"
- * nor may "OpenSSL" appear in their names without prior written
- * permission of the OpenSSL Project.
- *
- * 6. Redistributions of any form whatsoever must retain the following
- * acknowledgment:
- * "This product includes software developed by the OpenSSL Project
- * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
- *
- * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- * OF THE POSSIBILITY OF SUCH DAMAGE.
- * ====================================================================
- *
- * This product includes cryptographic software written by Eric Young
- * (eay@cryptsoft.com). This product includes software written by Tim
- * Hudson (tjh@cryptsoft.com).
- *
- */
-
-#include "pqueue.h"
-
-int main(void)
-{
- pitem *item;
- pqueue pq;
-
- pq = pqueue_new();
-
- item = pitem_new(3, NULL);
- pqueue_insert(pq, item);
-
- item = pitem_new(1, NULL);
- pqueue_insert(pq, item);
-
- item = pitem_new(2, NULL);
- pqueue_insert(pq, item);
-
- item = pqueue_find(pq, 1);
- fprintf(stderr, "found %ld\n", item->priority);
-
- item = pqueue_find(pq, 2);
- fprintf(stderr, "found %ld\n", item->priority);
-
- item = pqueue_find(pq, 3);
- fprintf(stderr, "found %ld\n", item ? item->priority : 0);
-
- pqueue_print(pq);
-
- for (item = pqueue_pop(pq); item != NULL; item = pqueue_pop(pq))
- pitem_free(item);
-
- pqueue_free(pq);
- return 0;
-}
+++ /dev/null
-/* crypto/pqueue/pqueue.h */
-/*
- * DTLS implementation written by Nagendra Modadugu
- * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
- */
-/* ====================================================================
- * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. All advertising materials mentioning features or use of this
- * software must display the following acknowledgment:
- * "This product includes software developed by the OpenSSL Project
- * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
- *
- * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
- * endorse or promote products derived from this software without
- * prior written permission. For written permission, please contact
- * openssl-core@OpenSSL.org.
- *
- * 5. Products derived from this software may not be called "OpenSSL"
- * nor may "OpenSSL" appear in their names without prior written
- * permission of the OpenSSL Project.
- *
- * 6. Redistributions of any form whatsoever must retain the following
- * acknowledgment:
- * "This product includes software developed by the OpenSSL Project
- * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
- *
- * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- * OF THE POSSIBILITY OF SUCH DAMAGE.
- * ====================================================================
- *
- * This product includes cryptographic software written by Eric Young
- * (eay@cryptsoft.com). This product includes software written by Tim
- * Hudson (tjh@cryptsoft.com).
- *
- */
-
-#ifndef HEADER_PQUEUE_H
-# define HEADER_PQUEUE_H
-
-# include <stdio.h>
-# include <stdlib.h>
-# include <string.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-typedef struct _pqueue *pqueue;
-
-typedef struct _pitem {
- unsigned char priority[8]; /* 64-bit value in big-endian encoding */
- void *data;
- struct _pitem *next;
-} pitem;
-
-typedef struct _pitem *piterator;
-
-pitem *pitem_new(unsigned char *prio64be, void *data);
-void pitem_free(pitem *item);
-
-pqueue pqueue_new(void);
-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, unsigned char *prio64be);
-pitem *pqueue_iterator(pqueue pq);
-pitem *pqueue_next(piterator *iter);
-
-void pqueue_print(pqueue pq);
-int pqueue_size(pqueue pq);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* ! HEADER_PQUEUE_H */
LIB=$(TOP)/libssl.a
SHARED_LIB= libssl$(SHLIB_EXT)
LIBSRC= \
+ pqueue.c \
statem/statem_srvr.c statem/statem_clnt.c s3_lib.c s3_enc.c record/rec_layer_s3.c \
statem/statem_lib.c s3_cbc.c s3_msg.c \
methods.c t1_lib.c t1_enc.c t1_ext.c \
record/ssl3_buffer.c record/ssl3_record.c record/dtls1_bitmap.c \
statem/statem.c
LIBOBJ= \
+ pqueue.o \
statem/statem_srvr.o statem/statem_clnt.o s3_lib.o s3_enc.o record/rec_layer_s3.o \
statem/statem_lib.o s3_cbc.o s3_msg.o \
methods.o t1_lib.o t1_enc.o t1_ext.o \
void dtls1_clear(SSL *s)
{
- pqueue buffered_messages;
- pqueue sent_messages;
+ pqueue *buffered_messages;
+ pqueue *sent_messages;
unsigned int mtu;
unsigned int link_mtu;
*
*/
-#include "internal/cryptlib.h"
+#include "ssl_locl.h"
#include <openssl/bn.h>
-#include <openssl/pqueue.h>
-typedef struct _pqueue {
+struct pqueue_st {
pitem *items;
int count;
-} pqueue_s;
+};
pitem *pitem_new(unsigned char *prio64be, void *data)
{
OPENSSL_free(item);
}
-pqueue_s *pqueue_new()
+pqueue *pqueue_new()
{
- pqueue_s *pq = OPENSSL_zalloc(sizeof(*pq));
+ pqueue *pq = OPENSSL_zalloc(sizeof(*pq));
return pq;
}
-void pqueue_free(pqueue_s *pq)
+void pqueue_free(pqueue *pq)
{
OPENSSL_free(pq);
}
-pitem *pqueue_insert(pqueue_s *pq, pitem *item)
+pitem *pqueue_insert(pqueue *pq, pitem *item)
{
pitem *curr, *next;
return item;
}
-pitem *pqueue_peek(pqueue_s *pq)
+pitem *pqueue_peek(pqueue *pq)
{
return pq->items;
}
-pitem *pqueue_pop(pqueue_s *pq)
+pitem *pqueue_pop(pqueue *pq)
{
pitem *item = pq->items;
return item;
}
-pitem *pqueue_find(pqueue_s *pq, unsigned char *prio64be)
+pitem *pqueue_find(pqueue *pq, unsigned char *prio64be)
{
pitem *next;
pitem *found = NULL;
return found;
}
-void pqueue_print(pqueue_s *pq)
+void pqueue_print(pqueue *pq)
{
pitem *item = pq->items;
}
}
-pitem *pqueue_iterator(pqueue_s *pq)
+pitem *pqueue_iterator(pqueue *pq)
{
return pqueue_peek(pq);
}
return ret;
}
-int pqueue_size(pqueue_s *pq)
+int pqueue_size(pqueue *pq)
{
pitem *item = pq->items;
int count = 0;
#include "../ssl_locl.h"
#include <openssl/evp.h>
#include <openssl/buffer.h>
-#include <openssl/pqueue.h>
#include <openssl/rand.h>
#include "record_locl.h"
DTLS_RECORD_LAYER *d;
pitem *item = NULL;
DTLS1_RECORD_DATA *rdata;
- pqueue unprocessed_rcds;
- pqueue processed_rcds;
- pqueue buffered_app_data;
+ pqueue *unprocessed_rcds;
+ pqueue *processed_rcds;
+ pqueue *buffered_app_data;
d = rl->d;
*
*/
-#include <openssl/pqueue.h>
-
/*****************************************************************************
* *
* These structures should be considered PRIVATE to the record layer. No *
typedef struct record_pqueue_st {
unsigned short epoch;
- pqueue q;
+ struct pqueue_st *q;
} record_pqueue;
typedef struct dtls1_record_data_st {
unsigned char *reassembly;
} hm_fragment;
+typedef struct pqueue_st pqueue;
+typedef struct pitem_st pitem;
+
+struct pitem_st {
+ unsigned char priority[8]; /* 64-bit value in big-endian encoding */
+ void *data;
+ pitem *next;
+};
+
+typedef struct pitem_st *piterator;
+
+pitem *pitem_new(unsigned char *prio64be, void *data);
+void pitem_free(pitem *item);
+pqueue* pqueue_new(void);
+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, unsigned char *prio64be);
+pitem *pqueue_iterator(pqueue *pq);
+pitem *pqueue_next(piterator *iter);
+void pqueue_print(pqueue *pq);
+int pqueue_size(pqueue *pq);
+
typedef struct dtls1_state_st {
unsigned char cookie[DTLS1_COOKIE_LENGTH];
unsigned int cookie_len;
unsigned short handshake_read_seq;
/* Buffered handshake messages */
- pqueue buffered_messages;
+ pqueue *buffered_messages;
/* Buffered (sent) handshake records */
- pqueue sent_messages;
+ pqueue *sent_messages;
unsigned int link_mtu; /* max on-the-wire DTLS packet size */
unsigned int mtu; /* max DTLS packet size */
int dtls1_retransmit_buffered_messages(SSL *s)
{
- pqueue sent = s->d1->sent_messages;
+ pqueue *sent = s->d1->sent_messages;
piterator iter;
pitem *item;
hm_fragment *frag;
STORE_ATTR_INFO_modify_number 3362 1_1_0 NOEXIST::FUNCTION:
X509_keyid_get0 3363 1_1_0 EXIST::FUNCTION:
ENGINE_load_gmp 3364 1_1_0 NOEXIST::FUNCTION:
-pitem_new 3365 1_1_0 EXIST::FUNCTION:
+pitem_new 3365 1_1_0 NOEXIST::FUNCTION:
BN_GF2m_mod_mul_arr 3366 1_1_0 EXIST::FUNCTION:EC2M
STORE_list_public_key_endp 3367 1_1_0 NOEXIST::FUNCTION:
o2i_ECPublicKey 3368 1_1_0 EXIST::FUNCTION:EC
STORE_get_public_key 3391 1_1_0 NOEXIST::FUNCTION:
STORE_modify_arbitrary 3392 1_1_0 NOEXIST::FUNCTION:
ENGINE_get_static_state 3393 1_1_0 EXIST::FUNCTION:ENGINE
-pqueue_iterator 3394 1_1_0 EXIST::FUNCTION:
+pqueue_iterator 3394 1_1_0 NOEXIST::FUNCTION:
ECDSA_SIG_new 3395 1_1_0 EXIST::FUNCTION:EC
OPENSSL_DIR_end 3396 1_1_0 EXIST::FUNCTION:
BN_GF2m_mod_sqr 3397 1_1_0 EXIST::FUNCTION:EC2M
STORE_method_get_generate_function 3426 1_1_0 NOEXIST::FUNCTION:
STORE_meth_set_list_end_fn 3427 1_1_0 NOEXIST::FUNCTION:
STORE_method_set_list_end_function 3427 1_1_0 NOEXIST::FUNCTION:
-pqueue_print 3428 1_1_0 EXIST::FUNCTION:
+pqueue_print 3428 1_1_0 NOEXIST::FUNCTION:
EC_GROUP_have_precompute_mult 3429 1_1_0 EXIST::FUNCTION:EC
EC_KEY_print_fp 3430 1_1_0 EXIST::FUNCTION:EC,STDIO
BN_GF2m_mod_arr 3431 1_1_0 EXIST::FUNCTION:EC2M
BN_GF2m_mod_sqrt_arr 3451 1_1_0 EXIST::FUNCTION:EC2M
i2d_ECPrivateKey_bio 3452 1_1_0 EXIST::FUNCTION:EC
ECPKParameters_print_fp 3453 1_1_0 EXIST::FUNCTION:EC,STDIO
-pqueue_find 3454 1_1_0 EXIST::FUNCTION:
+pqueue_find 3454 1_1_0 NOEXIST::FUNCTION:
ECDSA_SIG_free 3455 1_1_0 EXIST::FUNCTION:EC
PEM_write_bio_ECPKParameters 3456 1_1_0 EXIST::FUNCTION:EC
STORE_method_set_ctrl_function 3457 1_1_0 NOEXIST::FUNCTION:
STORE_list_public_key_end 3458 1_1_0 NOEXIST::FUNCTION:
EC_KEY_set_private_key 3459 1_1_0 EXIST::FUNCTION:EC
-pqueue_peek 3460 1_1_0 EXIST::FUNCTION:
+pqueue_peek 3460 1_1_0 NOEXIST::FUNCTION:
STORE_get_arbitrary 3461 1_1_0 NOEXIST::FUNCTION:
STORE_store_crl 3462 1_1_0 NOEXIST::FUNCTION:
X509_policy_node_get0_policy 3463 1_1_0 EXIST::FUNCTION:
ECDH_compute_key 3644 1_1_0 EXIST::FUNCTION:EC
STORE_ATTR_INFO_get0_sha1str 3645 1_1_0 NOEXIST::FUNCTION:
ENGINE_register_all_ECDH 3646 1_1_0 NOEXIST::FUNCTION:
-pqueue_pop 3647 1_1_0 EXIST::FUNCTION:
+pqueue_pop 3647 1_1_0 NOEXIST::FUNCTION:
STORE_ATTR_INFO_get0_cstr 3648 1_1_0 NOEXIST::FUNCTION:
POLICY_CONSTRAINTS_it 3649 1_1_0 EXIST:!EXPORT_VAR_AS_FUNCTION:VARIABLE:
POLICY_CONSTRAINTS_it 3649 1_1_0 EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION:
i2d_EC_PUBKEY_fp 3701 1_1_0 EXIST::FUNCTION:EC,STDIO
BN_nist_mod_256 3702 1_1_0 EXIST::FUNCTION:
X509_VERIFY_PARAM_add0_table 3703 1_1_0 EXIST::FUNCTION:
-pqueue_free 3704 1_1_0 EXIST::FUNCTION:
+pqueue_free 3704 1_1_0 NOEXIST::FUNCTION:
BN_BLINDING_create_param 3705 1_1_0 EXIST::FUNCTION:
ECDSA_size 3706 1_1_0 EXIST::FUNCTION:EC
d2i_EC_PUBKEY_bio 3707 1_1_0 EXIST::FUNCTION:EC
d2i_EC_PUBKEY_fp 3751 1_1_0 EXIST::FUNCTION:EC,STDIO
PKCS7_set0_type_other 3752 1_1_0 EXIST::FUNCTION:
PEM_read_bio_X509_CERT_PAIR 3753 1_1_0 NOEXIST::FUNCTION:
-pqueue_next 3754 1_1_0 EXIST::FUNCTION:
+pqueue_next 3754 1_1_0 NOEXIST::FUNCTION:
STORE_meth_get_list_end_fn 3755 1_1_0 NOEXIST::FUNCTION:
STORE_method_get_list_end_function 3755 1_1_0 NOEXIST::FUNCTION:
EVP_PKEY_add1_attr_by_OBJ 3756 1_1_0 EXIST::FUNCTION:
X509_VERIFY_PARAM_set_time 3757 1_1_0 EXIST::FUNCTION:
-pqueue_new 3758 1_1_0 EXIST::FUNCTION:
+pqueue_new 3758 1_1_0 NOEXIST::FUNCTION:
ENGINE_set_default_ECDH 3759 1_1_0 NOEXIST::FUNCTION:
STORE_new_method 3760 1_1_0 NOEXIST::FUNCTION:
PKCS12_add_key 3761 1_1_0 EXIST::FUNCTION:
EC_POINT_hex2point 3763 1_1_0 EXIST::FUNCTION:EC
BIO_dump_cb 3764 1_1_0 EXIST::FUNCTION:
SHA256_Update 3765 1_1_0 EXIST::FUNCTION:
-pqueue_insert 3766 1_1_0 EXIST::FUNCTION:
-pitem_free 3767 1_1_0 EXIST::FUNCTION:
+pqueue_insert 3766 1_1_0 NOEXIST::FUNCTION:
+pitem_free 3767 1_1_0 NOEXIST::FUNCTION:
BN_GF2m_mod_inv_arr 3768 1_1_0 EXIST::FUNCTION:EC2M
ENGINE_unregister_ECDSA 3769 1_1_0 NOEXIST::FUNCTION:
BN_BLINDING_set_thread_id 3770 1_1_0 EXIST::FUNCTION:DEPRECATEDIN_1_0_0
JPAKE_STEP3A_init 4111 1_1_0 EXIST::FUNCTION:JPAKE
ERR_load_JPAKE_strings 4112 1_1_0 EXIST::FUNCTION:JPAKE
JPAKE_STEP2_init 4113 1_1_0 EXIST::FUNCTION:JPAKE
-pqueue_size 4114 1_1_0 EXIST::FUNCTION:
+pqueue_size 4114 1_1_0 NOEXIST::FUNCTION:
i2d_TS_ACCURACY 4115 1_1_0 EXIST::FUNCTION:
i2d_TS_MSG_IMPRINT_fp 4116 1_1_0 EXIST::FUNCTION:STDIO
i2d_TS_MSG_IMPRINT 4117 1_1_0 EXIST::FUNCTION:
$crypto.=" include/openssl/ocsp.h";
$crypto.=" include/openssl/ui.h";
#$crypto.=" include/openssl/store.h";
-$crypto.=" include/openssl/pqueue.h";
$crypto.=" include/openssl/cms.h";
$crypto.=" include/openssl/jpake.h";
$crypto.=" include/openssl/srp.h";