Searched refs:pq (Results 1 – 12 of 12) sorted by relevance
/openssl/ssl/ |
H A D | priority_queue.c | 206 pq->freelist = pq->elements[m].posn; in ossl_pqueue_push() 235 if (pq == NULL || pq->htop == 0) in ossl_pqueue_pop() 243 pqueue_move_elem(pq, pq->htop, 0); in ossl_pqueue_pop() 247 pq->elements[elem].posn = pq->freelist; in ossl_pqueue_pop() 259 if (pq == NULL || elem >= pq->hmax || pq->htop == 0) in ossl_pqueue_remove() 268 pq->elements[elem].posn = pq->freelist; in ossl_pqueue_remove() 273 return pq->heap[--pq->htop].data; in ossl_pqueue_remove() 292 pq->freelist = pq->hmax - 1; in pqueue_add_freelist() 335 pq = OPENSSL_malloc(sizeof(*pq)); in ossl_pqueue_new() 344 if (pq->heap == NULL || pq->elements == NULL) { in ossl_pqueue_new() [all …]
|
H A D | pqueue.c | 38 pqueue *pq = OPENSSL_zalloc(sizeof(*pq)); in pqueue_new() local 40 return pq; in pqueue_new() 43 void pqueue_free(pqueue *pq) in pqueue_free() argument 45 OPENSSL_free(pq); in pqueue_free() 52 if (pq->items == NULL) { in pqueue_insert() 53 pq->items = item; in pqueue_insert() 86 return pq->items; in pqueue_peek() 93 if (pq->items != NULL) in pqueue_pop() 94 pq->items = pq->items->next; in pqueue_pop() 104 if (pq->items == NULL) in pqueue_find() [all …]
|
H A D | ssl_local.h | 1913 void pqueue_free(pqueue *pq); 1914 pitem *pqueue_insert(pqueue *pq, pitem *item); 1915 pitem *pqueue_peek(pqueue *pq); 1916 pitem *pqueue_pop(pqueue *pq); 1917 pitem *pqueue_find(pqueue *pq, unsigned char *prio64be); 1918 pitem *pqueue_iterator(pqueue *pq); 1920 size_t pqueue_size(pqueue *pq);
|
/openssl/include/internal/ |
H A D | priority_queue.h | 28 ossl_pqueue_##type##_free(PRIORITY_QUEUE_OF(type) *pq) \ 30 ossl_pqueue_free((OSSL_PQUEUE *)pq); \ 33 ossl_pqueue_##type##_pop_free(PRIORITY_QUEUE_OF(type) *pq, \ 78 void ossl_pqueue_free(OSSL_PQUEUE *pq); 79 void ossl_pqueue_pop_free(OSSL_PQUEUE *pq, void (*freefunc)(void *)); 80 int ossl_pqueue_reserve(OSSL_PQUEUE *pq, size_t n); 82 size_t ossl_pqueue_num(const OSSL_PQUEUE *pq); 83 int ossl_pqueue_push(OSSL_PQUEUE *pq, void *data, size_t *elem); 84 void *ossl_pqueue_peek(const OSSL_PQUEUE *pq); 85 void *ossl_pqueue_pop(OSSL_PQUEUE *pq); [all …]
|
/openssl/test/ |
H A D | priority_queue_test.c | 54 PRIORITY_QUEUE_OF(size_t) *pq = NULL; in test_size_t_priority_queue_int() 83 || !TEST_size_t_eq(ossl_pqueue_size_t_num(pq), 0)) in test_size_t_priority_queue_int() 93 if (!TEST_size_t_eq(*ossl_pqueue_size_t_peek(pq), *sorted) in test_size_t_priority_queue_int() 110 for (i = 0; ossl_pqueue_size_t_peek(pq) != NULL; i++) in test_size_t_priority_queue_int() 117 n = ossl_pqueue_size_t_num(pq); in test_size_t_priority_queue_int() 118 ossl_pqueue_size_t_pop_free(pq, &free_checker); in test_size_t_priority_queue_int() 119 pq = NULL; in test_size_t_priority_queue_int() 125 ossl_pqueue_size_t_free(pq); in test_size_t_priority_queue_int() 185 PRIORITY_QUEUE_OF(INFO) *pq = ossl_pqueue_INFO_new(cmp); in test_22644() 238 if (!TEST_ptr(ossl_pqueue_INFO_pop(pq)) in test_22644() [all …]
|
H A D | property_test.c | 480 OSSL_PROPERTY_LIST *pq = NULL; in test_property() local 487 ossl_property_free(pq); in test_property() 490 ossl_property_free(pq); in test_property() 496 OSSL_PROPERTY_LIST *pq = NULL; in test_property() local 507 ossl_property_free(pq); in test_property() 518 ossl_property_free(pq); in test_property() 522 ossl_property_free(pq); in test_property() 528 OSSL_PROPERTY_LIST *pq = NULL; in test_property() local 539 ossl_property_free(pq); in test_property() 550 ossl_property_free(pq); in test_property() [all …]
|
/openssl/doc/internal/man3/ |
H A D | DEFINE_PRIORITY_QUEUE_OF.pod | 23 size_t ossl_pqueue_TYPE_num(const PRIORITY_QUEUE_OF(type) *pq); 26 void ossl_pqueue_TYPE_free(PRIORITY_QUEUE_OF(type) *pq); 27 void ossl_pqueue_TYPE_pop_free(PRIORITY_QUEUE_OF(type) *pq, 32 type *ossl_pqueue_TYPE_peek(const PRIORITY_QUEUE_OF(type) *pq); 33 type *ossl_pqueue_TYPE_pop(const PRIORITY_QUEUE_OF(type) *pq); 52 or B<0> if I<pq> is NULL. 61 free up any elements of I<pq>. After this call I<pq> is no longer valid. 63 B<ossl_pqueue_I<TYPE>_pop_free>() frees up all elements of I<pq> and I<pq> 65 After this call I<pq> is no longer valid. 78 in I<pq>. [all …]
|
/openssl/crypto/property/ |
H A D | property.c | 624 OSSL_PROPERTY_LIST *pq = NULL, *p2 = NULL; in ossl_method_store_fetch() local 653 p2 = pq = ossl_parse_query(store->ctx, prop_query, 0); in ossl_method_store_fetch() 661 if (pq == NULL) { in ossl_method_store_fetch() 662 pq = *plp; in ossl_method_store_fetch() 664 p2 = ossl_property_merge(pq, *plp); in ossl_method_store_fetch() 665 ossl_property_free(pq); in ossl_method_store_fetch() 668 pq = p2; in ossl_method_store_fetch() 679 if (pq == NULL) { in ossl_method_store_fetch() 696 optional = ossl_property_has_optional(pq); in ossl_method_store_fetch() 700 score = ossl_property_match_count(pq, impl->properties); in ossl_method_store_fetch() [all …]
|
/openssl/crypto/pem/ |
H A D | pem_local.h | 42 # define IMPLEMENT_PEM_provided_write_body_vars(type, asn1, pq) \ argument 47 (pq)); \
|
/openssl/providers/implementations/kdfs/ |
H A D | x942kdf.c | 530 const OSSL_PARAM *p, *pq; in x942kdf_set_ctx_params() local 603 pq = OSSL_PARAM_locate_const(params, OSSL_ALG_PARAM_PROPERTIES); in x942kdf_set_ctx_params() 608 if (pq != NULL) in x942kdf_set_ctx_params()
|
/openssl/doc/man7/ |
H A D | EVP_PKEY-FFC.pod | 103 =item "validate-pq" (B<OSSL_PKEY_PARAM_FFC_VALIDATE_PQ>) <unsigned integer> 109 I<validate-pq> and I<validate-g> are both set to 1 to check that p,q and g are
|
H A D | EVP_PKEY-RSA.pod | 135 =item "rsa-derive-from-pq" (B<OSSL_PKEY_PARAM_RSA_DERIVE_FROM_PQ>) <unsigned integer>
|
Completed in 66 milliseconds