Home
last modified time | relevance | path

Searched refs:cb (Results 51 – 75 of 1043) sorted by relevance

12345678910>>...42

/freebsd/crypto/openssl/crypto/bn/
H A Dbn_rsa_fips186_4.c105 BN_GENCB *cb) in bn_rsa_fips186_4_find_aux_prob_prime() argument
118 BN_GENCB_call(cb, 0, i); in bn_rsa_fips186_4_find_aux_prob_prime()
120 tmp = BN_check_prime(p1, ctx, cb); in bn_rsa_fips186_4_find_aux_prob_prime()
129 BN_GENCB_call(cb, 2, i); in bn_rsa_fips186_4_find_aux_prob_prime()
159 BN_GENCB *cb) in ossl_bn_rsa_fips186_4_gen_prob_primes() argument
197 if (!bn_rsa_fips186_4_find_aux_prob_prime(Xp1i, p1i, ctx, cb) in ossl_bn_rsa_fips186_4_gen_prob_primes()
206 ctx, cb)) in ossl_bn_rsa_fips186_4_gen_prob_primes()
247 BN_GENCB *cb) in ossl_bn_rsa_fips186_4_derive_prime() argument
336 BN_GENCB_call(cb, 0, 2); in ossl_bn_rsa_fips186_4_derive_prime()
344 int rv = BN_check_prime(Y, ctx, cb); in ossl_bn_rsa_fips186_4_derive_prime()
[all …]
/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Drb.h883 a_field, node), cb, arg)) != NULL || (ret = cb(rbtree, node, \
888 a_field, node), cb, arg); \
903 a_field, node), cb, arg); \
913 a_field, node), cb, arg); \
922 cb, arg); \
976 rbtree->rbt_root, cb, arg); \
979 cb, arg); \
990 node), cb, arg); \
993 node), cb, arg); \
995 if (cb) { \
[all …]
/freebsd/contrib/wpa/src/wps/
H A Dhttp_client.c28 void (*cb)(void *ctx, struct http_client *c, member
40 c->cb(c->cb_ctx, c, HTTP_CLIENT_TIMEOUT); in http_client_timeout()
63 c->cb(c->cb_ctx, c, HTTP_CLIENT_OK); in http_client_got_response()
72 c->cb(c->cb_ctx, c, HTTP_CLIENT_INVALID_REPLY); in http_client_got_response()
75 c->cb(c->cb_ctx, c, HTTP_CLIENT_TIMEOUT); in http_client_got_response()
78 c->cb(c->cb_ctx, c, HTTP_CLIENT_FAILED); in http_client_got_response()
102 c->cb(c->cb_ctx, c, HTTP_CLIENT_FAILED); in http_client_tx_ready()
124 c->cb(c->cb_ctx, c, HTTP_CLIENT_FAILED); in http_client_tx_ready()
132 void (*cb)(void *ctx, in http_client_addr()
145 c->cb = cb; in http_client_addr()
[all …]
/freebsd/contrib/pf/libevent/
H A Dbuffer.c111 if (inbuf->off != oldoff && inbuf->cb != NULL) in evbuffer_add_buffer()
113 if (oldoff && outbuf->cb != NULL) in evbuffer_add_buffer()
159 if (buf->cb != NULL) in evbuffer_add_vprintf()
160 (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); in evbuffer_add_vprintf()
307 if (datlen && buf->cb != NULL) in evbuffer_add()
308 (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); in evbuffer_add()
332 if (buf->off != oldoff && buf->cb != NULL) in evbuffer_drain()
333 (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); in evbuffer_drain()
398 if (buf->off != oldoff && buf->cb != NULL) in evbuffer_read()
399 (*buf->cb)(buf, oldoff, buf->off, buf->cbarg); in evbuffer_read()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_import.c289 aux_cbdata_t cb = { 0 }; in zpool_in_use() local
394 cb.cb_zhp = NULL; in zpool_in_use()
395 cb.cb_guid = vdev_guid; in zpool_in_use()
396 cb.cb_type = ZPOOL_CONFIG_SPARES; in zpool_in_use()
397 if (zpool_iter(hdl, find_aux, &cb) == 1) { in zpool_in_use()
398 name = (char *)zpool_get_name(cb.cb_zhp); in zpool_in_use()
410 cb.cb_zhp = NULL; in zpool_in_use()
411 cb.cb_guid = vdev_guid; in zpool_in_use()
412 cb.cb_type = ZPOOL_CONFIG_L2CACHE; in zpool_in_use()
431 if (cb.cb_zhp) in zpool_in_use()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_deadlock_detector_interface.h83 virtual void MutexInit(DDCallback *cb, DDMutex *m) {} in MutexInit()
84 virtual void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock) {} in MutexBeforeLock()
85 virtual void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, in MutexAfterLock()
87 virtual void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock) {} in MutexBeforeUnlock()
88 virtual void MutexDestroy(DDCallback *cb, DDMutex *m) {} in MutexDestroy()
90 virtual DDReport *GetReport(DDCallback *cb) { return nullptr; } in GetReport()
/freebsd/contrib/ntp/libntp/lib/isc/
H A Derror.c45 isc_error_setunexpected(isc_errorcallback_t cb) { in isc_error_setunexpected() argument
46 if (cb == NULL) in isc_error_setunexpected()
49 unexpected_callback = cb; in isc_error_setunexpected()
53 isc_error_setfatal(isc_errorcallback_t cb) { in isc_error_setfatal() argument
54 if (cb == NULL) in isc_error_setfatal()
57 fatal_callback = cb; in isc_error_setfatal()
/freebsd/contrib/ntp/sntp/libevent/include/event2/
H A Devent.h733 void event_set_log_callback(event_log_cb cb);
755 void event_set_fatal_callback(event_fatal_cb cb);
964 #define evtimer_assign(ev, b, cb, arg) \ argument
965 event_assign((ev), (b), -1, 0, (cb), (arg))
966 #define evtimer_new(b, cb, arg) event_new((b), -1, 0, (cb), (arg)) argument
980 #define evsignal_assign(ev, b, x, cb, arg) \ argument
981 event_assign((ev), (b), (x), EV_SIGNAL|EV_PERSIST, cb, (arg))
982 #define evsignal_new(b, x, cb, arg) \ argument
983 event_new((b), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
996 #define evuser_new(b, cb, arg) event_new((b), -1, 0, (cb), (arg)) argument
H A Drpc.h202 void (*cb)(struct evrpc_status *, void *, void *, void *),
220 pool, request, reply, cb, cbarg) \ argument
226 (void (*)(struct evrpc_status *, void *, void *, void *))cb, \
242 void (*cb)(struct evrpc_status *, \
246 (void (*)(struct evrpc_status *, void *, void *, void *))cb, \
387 #define EVRPC_MAKE_REQUEST(name, pool, request, reply, cb, cbarg) \ argument
388 evrpc_send_request_##name((pool), (request), (reply), (cb), (cbarg))
515 int (*cb)(void *, struct evhttp_request *, struct evbuffer *, void *),
588 void (*cb)(struct evrpc_status *, void *, void *, void *),
619 void (*cb)(struct evrpc_status*, void *request, void *reply, void *arg),
/freebsd/contrib/libevent/include/event2/
H A Devent.h733 void event_set_log_callback(event_log_cb cb);
755 void event_set_fatal_callback(event_fatal_cb cb);
964 #define evtimer_assign(ev, b, cb, arg) \ argument
965 event_assign((ev), (b), -1, 0, (cb), (arg))
966 #define evtimer_new(b, cb, arg) event_new((b), -1, 0, (cb), (arg)) argument
980 #define evsignal_assign(ev, b, x, cb, arg) \ argument
981 event_assign((ev), (b), (x), EV_SIGNAL|EV_PERSIST, cb, (arg))
982 #define evsignal_new(b, x, cb, arg) \ argument
983 event_new((b), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
996 #define evuser_new(b, cb, arg) event_new((b), -1, 0, (cb), (arg)) argument
H A Drpc.h202 void (*cb)(struct evrpc_status *, void *, void *, void *),
220 pool, request, reply, cb, cbarg) \ argument
226 (void (*)(struct evrpc_status *, void *, void *, void *))cb, \
242 void (*cb)(struct evrpc_status *, \
246 (void (*)(struct evrpc_status *, void *, void *, void *))cb, \
387 #define EVRPC_MAKE_REQUEST(name, pool, request, reply, cb, cbarg) \ argument
388 evrpc_send_request_##name((pool), (request), (reply), (cb), (cbarg))
515 int (*cb)(void *, struct evhttp_request *, struct evbuffer *, void *),
588 void (*cb)(struct evrpc_status *, void *, void *, void *),
619 void (*cb)(struct evrpc_status*, void *request, void *reply, void *arg),
/freebsd/crypto/openssl/test/testutil/
H A Dfake_random.c20 fake_random_generate_cb *cb; member
78 if (frng->cb != NULL) in fake_rand_generate()
79 return (*frng->cb)(out, outlen, frng->name, frng->ctx); in fake_rand_generate()
215 int (*cb)(unsigned char *out, size_t outlen, in fake_rand_set_callback()
219 ((FAKE_RAND *)rng->algctx)->cb = cb; in fake_rand_set_callback()
223 int (*cb)(unsigned char *out, in fake_rand_set_public_private_callbacks()
228 fake_rand_set_callback(RAND_get0_private(libctx), cb); in fake_rand_set_public_private_callbacks()
229 fake_rand_set_callback(RAND_get0_public(libctx), cb); in fake_rand_set_public_private_callbacks()
/freebsd/lib/libifconfig/
H A Dlibifconfig_carp.c52 { .type = CARP_NL_VHID, .off = _OUT(carpr_vhid), .cb = snl_attr_get_uint32 },
53 { .type = CARP_NL_STATE, .off = _OUT(carpr_state), .cb = snl_attr_get_uint32 },
54 { .type = CARP_NL_ADVBASE, .off = _OUT(carpr_advbase), .cb = snl_attr_get_int32 },
55 { .type = CARP_NL_ADVSKEW, .off = _OUT(carpr_advskew), .cb = snl_attr_get_int32 },
56 …{ .type = CARP_NL_KEY, .off = _OUT(carpr_key), .cb = snl_attr_copy_string, .arg_u32 = CARP_KEY_LEN…
57 { .type = CARP_NL_ADDR, .off = _OUT(carpr_addr), .cb = snl_attr_get_in_addr },
58 { .type = CARP_NL_ADDR6, .off = _OUT(carpr_addr6), .cb = snl_attr_get_in6_addr },
59 { .type = CARP_NL_VERSION, .off = _OUT(carpr_version), .cb = snl_attr_get_uint8 },
60 { .type = CARP_NL_VRRP_PRIORITY, .off = _OUT(carpr_vrrp_prio), .cb = snl_attr_get_uint8 },
61 { .type = CARP_NL_VRRP_ADV_INTER, .off = _OUT(carpr_vrrp_adv_inter), .cb = snl_attr_get_uint16 },
/freebsd/crypto/openssl/crypto/ffc/
H A Dffc_params_generate.c327 if(!BN_GENCB_call(cb, 0, m++)) in generate_q_fips186_4()
364 r = BN_check_prime(q, ctx, cb); in generate_q_fips186_4()
399 if (!BN_GENCB_call(cb, 0, m++)) in generate_q_fips186_2()
691 if(!BN_GENCB_call(cb, 2, 0)) in ossl_ffc_params_FIPS186_4_gen_verify()
693 if(!BN_GENCB_call(cb, 3, 0)) in ossl_ffc_params_FIPS186_4_gen_verify()
713 if(!BN_GENCB_call(cb, 2, 1)) in ossl_ffc_params_FIPS186_4_gen_verify()
763 if (!BN_GENCB_call(cb, 3, 1)) in ossl_ffc_params_FIPS186_4_gen_verify()
934 if (!BN_GENCB_call(cb, 2, 0)) in ossl_ffc_params_FIPS186_2_gen_verify()
936 if (!BN_GENCB_call(cb, 3, 0)) in ossl_ffc_params_FIPS186_2_gen_verify()
961 if (!BN_GENCB_call(cb, 2, 1)) in ossl_ffc_params_FIPS186_2_gen_verify()
[all …]
/freebsd/contrib/netbsd-tests/ipf/expected/
H A Dn1043 4500 0028 0002 0000 ff06 b5c8 0202 0202 0101 0101 00cb 0065 0000 0001 1000 0001 5010 2000 789d 0000
7 4500 0028 0004 0000 ff06 b5c6 0202 0202 0101 0101 00cb 0066 0000 0001 1000 0001 5010 2000 789c 0000
11 4500 0028 0006 0000 ff06 b5c4 0202 0202 0101 0101 00cb 0067 0000 0001 1000 0001 5010 2000 789b 0000
15 4500 0028 0008 0000 ff06 b5c2 0202 0202 0101 0101 00cb 0068 0000 0001 1000 0001 5010 2000 789a 0000
19 4500 0028 000a 0000 ff06 b5c0 0202 0202 0101 0101 00cb 0069 0000 0001 1000 0001 5010 2000 7899 0000
23 4500 0028 000c 0000 ff06 b5be 0202 0202 0101 0101 00cb 006a 0000 0001 1000 0001 5010 2000 7898 0000
/freebsd/sys/kern/
H A Dsubr_compressor.c59 compressor_cb_t cb; member
167 gz_write(void *stream, void *data, size_t len, compressor_cb_t cb, in gz_write() argument
212 error = cb(s->gz_buffer, len, s->gz_off, arg); in gz_write()
225 error = cb(trailer + room, in gz_write()
370 error = cb(s->zst_buffer, bytes_to_dump, s->zst_off, arg); in zst_flush_intermediate()
412 error = zst_flush_intermediate(s, cb, arg); in zstdio_flush()
425 error = cb(s->zst_buffer, s->zst_outbuffer.pos, s->zst_off, in zstdio_flush()
444 return (zstdio_flush(s, cb, arg)); in zstdio_write()
470 error = zst_flush_intermediate(s, cb, arg); in zstdio_write()
536 s->cb = cb; in compressor_init()
[all …]
/freebsd/contrib/unbound/util/
H A Dub_event.h89 int fd, short bits, void (*cb)(int, short, void*), void* arg);
92 void (*cb)(int, short, void*), void* arg);
95 void* wsaevent, void (*cb)(int, short, void*), void* arg);
111 void (*cb)(int, short, void*), void* arg, struct timeval*);
125 void ub_comm_base_now(struct comm_base* cb);
/freebsd/crypto/openssl/doc/man3/
H A DPEM_read_bio_PrivateKey.pod51 pem_password_cb *cb, void *u);
59 pem_password_cb *cb, void *u);
66 pem_password_cb *cb, void *u,
70 pem_password_cb *cb, void *u);
90 pem_password_cb *cb, void *u,
93 pem_password_cb *cb, void *u);
119 pem_password_cb *cb, void *u);
155 pem_password_cb *cb, void *u);
162 pem_password_cb *cb, void *u);
180 pem_password_cb *cb, void *u);
[all …]
H A DDSA_generate_parameters.pod18 BN_GENCB *cb);
49 of the key generation. If B<cb> is not B<NULL>, it will be
68 B<BN_GENCB_call(cb, 1, -1)> is called.
70 B<BN_GENCB_call(cb, 1, i)> is called in the outer loop
76 When a prime q has been found, B<BN_GENCB_call(cb, 2, 0)> and
77 B<BN_GENCB_call(cb, 3, 0)> are called.
82 B<BN_GENCB_call(cb, 0, counter)> is called.
87 B<BN_GENCB_call(cb, 1, -1)> is called.
89 B<BN_GENCB_call(cb, 1, i)> is called in the outer loop
95 When p has been found, B<BN_GENCB_call(cb, 2, 1)> is called.
[all …]
H A DPEM_read_CMS.pod53 TYPE *PEM_read_TYPE(FILE *fp, TYPE **a, pem_password_cb *cb, void *u);
54 TYPE *PEM_read_bio_TYPE(BIO *bp, TYPE **a, pem_password_cb *cb, void *u);
66 EC_GROUP *PEM_read_ECPKParameters(FILE *fp, EC_GROUP **x, pem_password_cb *cb, void *u);
67 EC_GROUP *PEM_read_bio_ECPKParameters(BIO *bp, EC_GROUP **x, pem_password_cb *cb, void *u);
71 EC_KEY *PEM_read_EC_PUBKEY(FILE *fp, EC_KEY **x, pem_password_cb *cb, void *u);
72 EC_KEY *PEM_read_bio_EC_PUBKEY(BIO *bp, EC_KEY **x, pem_password_cb *cb, void *u);
76 EC_KEY *PEM_read_ECPrivateKey(FILE *out, EC_KEY **x, pem_password_cb *cb, void *u);
77 EC_KEY *PEM_read_bio_ECPrivateKey(BIO *out, EC_KEY **x, pem_password_cb *cb, void *u);
80 pem_password_cb *cb, void *u);
83 pem_password_cb *cb, void *u);
[all …]
/freebsd/lib/libc/tests/gen/
H A Dftw_test.c52 cb(const char *path, const struct stat *st, int type, struct FTW *f) in cb() function
97 ATF_REQUIRE_MSG(nftw(dir, cb, 10, ftwflags) != -1, in ATF_TC_BODY()
102 ATF_REQUIRE_MSG(nftw(dir, cb, 10, ftwflags) != -1, in ATF_TC_BODY()
107 ATF_REQUIRE_MSG(nftw(dir, cb, 10, ftwflags) != -1, in ATF_TC_BODY()
112 ATF_REQUIRE_MSG(nftw(dir, cb, 10, ftwflags) != -1, in ATF_TC_BODY()
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_teap.c656 cb = wpabuf_put(buf, sizeof(*cb)); in eap_teap_build_crypto_binding()
669 if (random_get_bytes(cb->nonce, sizeof(cb->nonce)) < 0) { in eap_teap_build_crypto_binding()
678 cb->nonce[sizeof(cb->nonce) - 1] &= ~0x01; in eap_teap_build_crypto_binding()
699 cb->version, cb->received_version, flags, subtype); in eap_teap_build_crypto_binding()
701 cb->nonce, sizeof(cb->nonce)); in eap_teap_build_crypto_binding()
703 cb->emsk_compound_mac, sizeof(cb->emsk_compound_mac)); in eap_teap_build_crypto_binding()
705 cb->msk_compound_mac, sizeof(cb->msk_compound_mac)); in eap_teap_build_crypto_binding()
1393 cb->version, cb->received_version, flags, subtype); in eap_teap_validate_crypto_binding()
1395 cb->nonce, sizeof(cb->nonce)); in eap_teap_validate_crypto_binding()
1399 cb->msk_compound_mac, sizeof(cb->msk_compound_mac)); in eap_teap_validate_crypto_binding()
[all …]
/freebsd/sys/dev/ocs_fc/
H A Docs_scsi.h308 uint32_t wire_len, ocs_scsi_io_cb_t cb, void *arg);
312 uint32_t wire_len, ocs_scsi_io_cb_t cb, void *arg);
314 ocs_scsi_io_cb_t cb, void *arg);
316 ocs_scsi_io_cb_t cb, void *arg);
317 extern int32_t ocs_scsi_tgt_abort_io(ocs_io_t *io, ocs_scsi_io_cb_t cb, void *arg);
350 …ocs_scsi_sgl_t *sgl, uint32_t sgl_count, uint32_t wire_len, ocs_scsi_rsp_io_cb_t cb, void *arg, ui…
353 …ocs_scsi_sgl_t *sgl, uint32_t sgl_count, uint32_t wire_len, ocs_scsi_rsp_io_cb_t cb, void *arg, ui…
357 ocs_scsi_rsp_io_cb_t cb, void *arg, uint32_t flags);
361 ocs_scsi_rsp_io_cb_t cb, void *arg, uint32_t flags);
385 extern int32_t ocs_scsi_io_dispatch(ocs_io_t *io, void *cb);
[all …]
/freebsd/crypto/openssl/crypto/pem/
H A Dpem_info.c29 *PEM_X509_INFO_read_ex(FILE *fp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, in STACK_OF()
40 ret = PEM_X509_INFO_read_bio_ex(b, sk, cb, u, libctx, propq); in STACK_OF()
46 pem_password_cb *cb, void *u) in STACK_OF()
48 return PEM_X509_INFO_read_ex(fp, sk, cb, u, NULL, NULL); in STACK_OF()
53 pem_password_cb *cb, void *u, in STACK_OF()
159 if (!PEM_do_header(&cipher, data, &len, cb, u)) in STACK_OF()
218 pem_password_cb *cb, void *u) in STACK_OF()
220 return PEM_X509_INFO_read_bio_ex(bp, sk, cb, u, NULL, NULL); in STACK_OF()
226 pem_password_cb *cb, void *u) in PEM_X509_INFO_write_bio() argument
291 enc, kstr, klen, cb, u) <= 0) in PEM_X509_INFO_write_bio()
/freebsd/crypto/openssl/ssl/
H A Dd1_msg.c38 void (*cb) (const SSL *ssl, int type, int val) = NULL; in dtls1_dispatch_alert() local
61 cb = s->info_callback; in dtls1_dispatch_alert()
63 cb = s->ctx->info_callback; in dtls1_dispatch_alert()
65 if (cb != NULL) { in dtls1_dispatch_alert()
67 cb(s, SSL_CB_WRITE_ALERT, j); in dtls1_dispatch_alert()

12345678910>>...42