Searched refs:pq (Results 1 – 12 of 12) sorted by relevance
/openssl/ssl/ |
H A D | priority_queue.c | 70 assert(pq->elements[pq->heap[idx].index].posn == idx) 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 return pq->heap[--pq->htop].data; in ossl_pqueue_remove() 286 pq->freelist = pq->hmax - 1; in pqueue_add_freelist() 333 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 | 40 pqueue *pq = OPENSSL_zalloc(sizeof(*pq)); in pqueue_new() local 42 if (pq == NULL) in pqueue_new() 45 return pq; in pqueue_new() 48 void pqueue_free(pqueue *pq) in pqueue_free() argument 50 OPENSSL_free(pq); in pqueue_free() 57 if (pq->items == NULL) { in pqueue_insert() 58 pq->items = item; in pqueue_insert() 91 return pq->items; in pqueue_peek() 98 if (pq->items != NULL) in pqueue_pop() 99 pq->items = pq->items->next; in pqueue_pop() [all …]
|
H A D | event_queue.c | 82 PRIORITY_QUEUE_OF(OSSL_EVENT) *pq = in event_queue_add() 87 if (ossl_pqueue_OSSL_EVENT_push(pq, event, &event->ref)) { in event_queue_add() 88 event->queue = pq; in event_queue_add()
|
H A D | ssl_local.h | 1946 void pqueue_free(pqueue *pq); 1947 pitem *pqueue_insert(pqueue *pq, pitem *item); 1948 pitem *pqueue_peek(pqueue *pq); 1949 pitem *pqueue_pop(pqueue *pq); 1950 pitem *pqueue_find(pqueue *pq, unsigned char *prio64be); 1951 pitem *pqueue_iterator(pqueue *pq); 1953 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() 82 if (!TEST_ptr(pq = ossl_pqueue_size_t_new(&size_t_compare)) 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() 94 || !TEST_size_t_eq(ossl_pqueue_size_t_num(pq), count)) 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() 111 if (!TEST_size_t_eq(*ossl_pqueue_size_t_peek(pq), sorted[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() [all …]
|
H A D | property_test.c | 449 OSSL_PROPERTY_LIST *pq = NULL; in test_property() local 456 ossl_property_free(pq); in test_property() 459 ossl_property_free(pq); in test_property() 465 OSSL_PROPERTY_LIST *pq = NULL; in test_property() local 476 ossl_property_free(pq); in test_property() 487 ossl_property_free(pq); in test_property() 491 ossl_property_free(pq); in test_property() 497 OSSL_PROPERTY_LIST *pq = NULL; in test_property() local 508 ossl_property_free(pq); in test_property() 519 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 | 500 OSSL_PROPERTY_LIST *pq = NULL, *p2 = NULL; in ossl_method_store_fetch() local 523 p2 = pq = ossl_parse_query(store->ctx, prop_query, 0); in ossl_method_store_fetch() 526 if (pq == NULL) { in ossl_method_store_fetch() 527 pq = *plp; in ossl_method_store_fetch() 529 p2 = ossl_property_merge(pq, *plp); in ossl_method_store_fetch() 530 ossl_property_free(pq); in ossl_method_store_fetch() 533 pq = p2; in ossl_method_store_fetch() 537 if (pq == NULL) { in ossl_method_store_fetch() 548 optional = ossl_property_has_optional(pq); in ossl_method_store_fetch() 552 score = ossl_property_match_count(pq, impl->properties); in ossl_method_store_fetch()
|
/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 | 507 const OSSL_PARAM *p, *pq; in x942kdf_set_ctx_params() local 561 pq = OSSL_PARAM_locate_const(params, OSSL_ALG_PARAM_PROPERTIES); in x942kdf_set_ctx_params() 566 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
|
Completed in 48 milliseconds