dh 153 examples/libsmbclient/tree.c gint dh, err, dirlen;
dh 170 examples/libsmbclient/tree.c if ((dh = smbc_opendir(path)) < 0) { /* Handle error */
dh 181 examples/libsmbclient/tree.c while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
dh 323 examples/libsmbclient/tree.c gint dh, err, dirlen, level;
dh 342 examples/libsmbclient/tree.c if ((dh = smbc_opendir(get_path(item))) < 0) { /* Handle error */
dh 358 examples/libsmbclient/tree.c while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
dh 440 examples/libsmbclient/tree.c smbc_closedir(dh);
dh 490 examples/libsmbclient/tree.c gint dh, err, dirlen;
dh 503 examples/libsmbclient/tree.c if ((dh = smbc_opendir("smb://")) < 0) { /* Handle error */
dh 514 examples/libsmbclient/tree.c while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
dh 575 examples/libsmbclient/tree.c smbc_closedir(dh);
dh 617 examples/libsmbclient/tree.c gint err, dh;
dh 710 examples/libsmbclient/tree.c if ((dh = smbc_opendir("smb://")) < 0) {
dh 749 examples/libsmbclient/tree.c while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
dh 808 examples/libsmbclient/tree.c smbc_closedir(dh); /* FIXME, check for error :-) */
dh 151 source3/client/tree.c gint dh, err, dirlen;
dh 174 source3/client/tree.c if ((dh = smbc_opendir(path)) < 0) { /* Handle error */
dh 182 source3/client/tree.c while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
dh 319 source3/client/tree.c gint dh, err, dirlen, level;
dh 338 source3/client/tree.c if ((dh = smbc_opendir(get_path(item))) < 0) { /* Handle error */
dh 354 source3/client/tree.c while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
dh 436 source3/client/tree.c smbc_closedir(dh);
dh 486 source3/client/tree.c gint dh, err, dirlen;
dh 499 source3/client/tree.c if ((dh = smbc_opendir("smb://")) < 0) { /* Handle error */
dh 510 source3/client/tree.c while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
dh 571 source3/client/tree.c smbc_closedir(dh);
dh 613 source3/client/tree.c gint err, dh;
dh 707 source3/client/tree.c if ((dh = smbc_opendir("smb:///")) < 0) {
dh 748 source3/client/tree.c while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
dh 805 source3/client/tree.c smbc_closedir(dh); /* FIXME, check for error :-) */
dh 1441 source3/include/libsmbclient.h int smbc_closedir(int dh);
dh 1470 source3/include/libsmbclient.h int smbc_getdents(unsigned int dh, struct smbc_dirent *dirp, int count);
dh 1485 source3/include/libsmbclient.h struct smbc_dirent* smbc_readdir(unsigned int dh);
dh 1508 source3/include/libsmbclient.h off_t smbc_telldir(int dh);
dh 266 source3/libsmb/libsmb_compat.c smbc_closedir(int dh)
dh 268 source3/libsmb/libsmb_compat.c SMBCFILE * file = find_fd(dh);
dh 269 source3/libsmb/libsmb_compat.c del_fd(dh);
dh 274 source3/libsmb/libsmb_compat.c smbc_getdents(unsigned int dh,
dh 278 source3/libsmb/libsmb_compat.c SMBCFILE * file = find_fd(dh);
dh 283 source3/libsmb/libsmb_compat.c smbc_readdir(unsigned int dh)
dh 285 source3/libsmb/libsmb_compat.c SMBCFILE * file = find_fd(dh);
dh 290 source3/libsmb/libsmb_compat.c smbc_telldir(int dh)
dh 292 source3/libsmb/libsmb_compat.c SMBCFILE * file = find_fd(dh);
dh 149 source4/client/tree.c gint dh, err, dirlen;
dh 166 source4/client/tree.c if ((dh = smbc_opendir(path)) < 0) { /* Handle error */
dh 177 source4/client/tree.c while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
dh 318 source4/client/tree.c gint dh, err, dirlen, level;
dh 337 source4/client/tree.c if ((dh = smbc_opendir(get_path(item))) < 0) { /* Handle error */
dh 353 source4/client/tree.c while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
dh 435 source4/client/tree.c smbc_closedir(dh);
dh 485 source4/client/tree.c gint dh, err, dirlen;
dh 498 source4/client/tree.c if ((dh = smbc_opendir("smb://")) < 0) { /* Handle error */
dh 509 source4/client/tree.c while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
dh 570 source4/client/tree.c smbc_closedir(dh);
dh 612 source4/client/tree.c gint err, dh;
dh 705 source4/client/tree.c if ((dh = smbc_opendir("smb:///")) < 0) {
dh 746 source4/client/tree.c while ((err = smbc_getdents(dh, (struct smbc_dirent *)dirbuf,
dh 803 source4/client/tree.c smbc_closedir(dh); /* FIXME, check for error :-) */
dh 53 source4/heimdal/kdc/pkinit.c DH *dh;
dh 163 source4/heimdal/kdc/pkinit.c if (client_params->dh)
dh 164 source4/heimdal/kdc/pkinit.c DH_free(client_params->dh);
dh 189 source4/heimdal/kdc/pkinit.c if (!DH_generate_key(client_params->dh)) {
dh 200 source4/heimdal/kdc/pkinit.c dh_gen_keylen = DH_size(client_params->dh);
dh 201 source4/heimdal/kdc/pkinit.c size = BN_num_bytes(client_params->dh->p);
dh 215 source4/heimdal/kdc/pkinit.c client_params->dh);
dh 259 source4/heimdal/kdc/pkinit.c DH *dh = NULL;
dh 304 source4/heimdal/kdc/pkinit.c dh = DH_new();
dh 305 source4/heimdal/kdc/pkinit.c if (dh == NULL) {
dh 311 source4/heimdal/kdc/pkinit.c dh->p = integer_to_BN(context, "DH prime", &dhparam.p);
dh 312 source4/heimdal/kdc/pkinit.c if (dh->p == NULL)
dh 314 source4/heimdal/kdc/pkinit.c dh->g = integer_to_BN(context, "DH base", &dhparam.g);
dh 315 source4/heimdal/kdc/pkinit.c if (dh->g == NULL)
dh 317 source4/heimdal/kdc/pkinit.c dh->q = integer_to_BN(context, "DH p-1 factor", &dhparam.q);
dh 318 source4/heimdal/kdc/pkinit.c if (dh->g == NULL)
dh 344 source4/heimdal/kdc/pkinit.c client_params->dh = dh;
dh 345 source4/heimdal/kdc/pkinit.c dh = NULL;
dh 349 source4/heimdal/kdc/pkinit.c if (dh)
dh 350 source4/heimdal/kdc/pkinit.c DH_free(dh);
dh 1000 source4/heimdal/kdc/pkinit.c if (client_params->dh == NULL) {
dh 1051 source4/heimdal/kdc/pkinit.c ret = pk_mk_pa_reply_dh(context, client_params->dh,
dh 1092 source4/heimdal/kdc/pkinit.c if (client_params->dh) {
dh 87 source4/heimdal/lib/hcrypto/dh-imath.c dh_generate_key(DH *dh)
dh 90 source4/heimdal/lib/hcrypto/dh-imath.c int have_private_key = (dh->priv_key != NULL);
dh 94 source4/heimdal/lib/hcrypto/dh-imath.c if (dh->p == NULL || dh->g == NULL)
dh 99 source4/heimdal/lib/hcrypto/dh-imath.c size_t bits = BN_num_bits(dh->p);
dh 101 source4/heimdal/lib/hcrypto/dh-imath.c if (dh->priv_key)
dh 102 source4/heimdal/lib/hcrypto/dh-imath.c BN_free(dh->priv_key);
dh 104 source4/heimdal/lib/hcrypto/dh-imath.c dh->priv_key = BN_new();
dh 105 source4/heimdal/lib/hcrypto/dh-imath.c if (dh->priv_key == NULL)
dh 107 source4/heimdal/lib/hcrypto/dh-imath.c if (!BN_rand(dh->priv_key, bits - 1, 0, 0)) {
dh 108 source4/heimdal/lib/hcrypto/dh-imath.c BN_clear_free(dh->priv_key);
dh 109 source4/heimdal/lib/hcrypto/dh-imath.c dh->priv_key = NULL;
dh 113 source4/heimdal/lib/hcrypto/dh-imath.c if (dh->pub_key)
dh 114 source4/heimdal/lib/hcrypto/dh-imath.c BN_free(dh->pub_key);
dh 121 source4/heimdal/lib/hcrypto/dh-imath.c BN2mpz(&priv_key, dh->priv_key);
dh 122 source4/heimdal/lib/hcrypto/dh-imath.c BN2mpz(&g, dh->g);
dh 123 source4/heimdal/lib/hcrypto/dh-imath.c BN2mpz(&p, dh->p);
dh 133 source4/heimdal/lib/hcrypto/dh-imath.c dh->pub_key = mpz2BN(&pub);
dh 135 source4/heimdal/lib/hcrypto/dh-imath.c if (dh->pub_key == NULL)
dh 138 source4/heimdal/lib/hcrypto/dh-imath.c if (DH_check_pubkey(dh, dh->pub_key, &codes) && codes == 0)
dh 145 source4/heimdal/lib/hcrypto/dh-imath.c if (!have_private_key && dh->priv_key) {
dh 146 source4/heimdal/lib/hcrypto/dh-imath.c BN_free(dh->priv_key);
dh 147 source4/heimdal/lib/hcrypto/dh-imath.c dh->priv_key = NULL;
dh 149 source4/heimdal/lib/hcrypto/dh-imath.c if (dh->pub_key) {
dh 150 source4/heimdal/lib/hcrypto/dh-imath.c BN_free(dh->pub_key);
dh 151 source4/heimdal/lib/hcrypto/dh-imath.c dh->pub_key = NULL;
dh 160 source4/heimdal/lib/hcrypto/dh-imath.c dh_compute_key(unsigned char *shared, const BIGNUM * pub, DH *dh)
dh 166 source4/heimdal/lib/hcrypto/dh-imath.c if (dh->pub_key == NULL || dh->g == NULL || dh->priv_key == NULL)
dh 170 source4/heimdal/lib/hcrypto/dh-imath.c BN2mpz(&p, dh->p);
dh 186 source4/heimdal/lib/hcrypto/dh-imath.c BN2mpz(&priv_key, dh->priv_key);
dh 204 source4/heimdal/lib/hcrypto/dh-imath.c dh_generate_params(DH *dh, int a, int b, BN_GENCB *callback)
dh 211 source4/heimdal/lib/hcrypto/dh-imath.c dh_init(DH *dh)
dh 217 source4/heimdal/lib/hcrypto/dh-imath.c dh_finish(DH *dh)
dh 85 source4/heimdal/lib/hcrypto/dh.c DH *dh;
dh 87 source4/heimdal/lib/hcrypto/dh.c dh = calloc(1, sizeof(*dh));
dh 88 source4/heimdal/lib/hcrypto/dh.c if (dh == NULL)
dh 91 source4/heimdal/lib/hcrypto/dh.c dh->references = 1;
dh 95 source4/heimdal/lib/hcrypto/dh.c dh->engine = engine;
dh 97 source4/heimdal/lib/hcrypto/dh.c dh->engine = ENGINE_get_default_DH();
dh 100 source4/heimdal/lib/hcrypto/dh.c if (dh->engine) {
dh 101 source4/heimdal/lib/hcrypto/dh.c dh->meth = ENGINE_get_DH(dh->engine);
dh 102 source4/heimdal/lib/hcrypto/dh.c if (dh->meth == NULL) {
dh 104 source4/heimdal/lib/hcrypto/dh.c free(dh);
dh 109 source4/heimdal/lib/hcrypto/dh.c if (dh->meth == NULL)
dh 110 source4/heimdal/lib/hcrypto/dh.c dh->meth = DH_get_default_method();
dh 112 source4/heimdal/lib/hcrypto/dh.c (*dh->meth->init)(dh);
dh 114 source4/heimdal/lib/hcrypto/dh.c return dh;
dh 127 source4/heimdal/lib/hcrypto/dh.c DH_free(DH *dh)
dh 129 source4/heimdal/lib/hcrypto/dh.c if (dh->references <= 0)
dh 132 source4/heimdal/lib/hcrypto/dh.c if (--dh->references > 0)
dh 135 source4/heimdal/lib/hcrypto/dh.c (*dh->meth->finish)(dh);
dh 137 source4/heimdal/lib/hcrypto/dh.c if (dh->engine)
dh 138 source4/heimdal/lib/hcrypto/dh.c ENGINE_finish(dh->engine);
dh 141 source4/heimdal/lib/hcrypto/dh.c free_if(dh->p);
dh 142 source4/heimdal/lib/hcrypto/dh.c free_if(dh->g);
dh 143 source4/heimdal/lib/hcrypto/dh.c free_if(dh->pub_key);
dh 144 source4/heimdal/lib/hcrypto/dh.c free_if(dh->priv_key);
dh 145 source4/heimdal/lib/hcrypto/dh.c free_if(dh->q);
dh 146 source4/heimdal/lib/hcrypto/dh.c free_if(dh->j);
dh 147 source4/heimdal/lib/hcrypto/dh.c free_if(dh->counter);
dh 150 source4/heimdal/lib/hcrypto/dh.c memset(dh, 0, sizeof(*dh));
dh 151 source4/heimdal/lib/hcrypto/dh.c free(dh);
dh 167 source4/heimdal/lib/hcrypto/dh.c DH_up_ref(DH *dh)
dh 169 source4/heimdal/lib/hcrypto/dh.c return ++dh->references;
dh 183 source4/heimdal/lib/hcrypto/dh.c DH_size(const DH *dh)
dh 185 source4/heimdal/lib/hcrypto/dh.c return BN_num_bytes(dh->p);
dh 201 source4/heimdal/lib/hcrypto/dh.c DH_set_ex_data(DH *dh, int idx, void *data)
dh 203 source4/heimdal/lib/hcrypto/dh.c dh->ex_data.sk = data;
dh 219 source4/heimdal/lib/hcrypto/dh.c DH_get_ex_data(DH *dh, int idx)
dh 221 source4/heimdal/lib/hcrypto/dh.c return dh->ex_data.sk;
dh 238 source4/heimdal/lib/hcrypto/dh.c DH_generate_parameters_ex(DH *dh, int prime_len, int generator, BN_GENCB *cb)
dh 240 source4/heimdal/lib/hcrypto/dh.c if (dh->meth->generate_params)
dh 241 source4/heimdal/lib/hcrypto/dh.c return dh->meth->generate_params(dh, prime_len, generator, cb);
dh 259 source4/heimdal/lib/hcrypto/dh.c DH_check_pubkey(const DH *dh, const BIGNUM *pub_key, int *codes)
dh 295 source4/heimdal/lib/hcrypto/dh.c if (BN_cmp(sum, dh->p) >= 0)
dh 342 source4/heimdal/lib/hcrypto/dh.c DH_generate_key(DH *dh)
dh 344 source4/heimdal/lib/hcrypto/dh.c return dh->meth->generate_key(dh);
dh 362 source4/heimdal/lib/hcrypto/dh.c const BIGNUM *peer_pub_key, DH *dh)
dh 371 source4/heimdal/lib/hcrypto/dh.c if (!DH_check_pubkey(dh, peer_pub_key, &codes) || codes != 0)
dh 374 source4/heimdal/lib/hcrypto/dh.c return dh->meth->compute_key(shared_key, peer_pub_key, dh);
dh 389 source4/heimdal/lib/hcrypto/dh.c DH_set_method(DH *dh, const DH_METHOD *method)
dh 391 source4/heimdal/lib/hcrypto/dh.c (*dh->meth->finish)(dh);
dh 392 source4/heimdal/lib/hcrypto/dh.c if (dh->engine) {
dh 393 source4/heimdal/lib/hcrypto/dh.c ENGINE_finish(dh->engine);
dh 394 source4/heimdal/lib/hcrypto/dh.c dh->engine = NULL;
dh 396 source4/heimdal/lib/hcrypto/dh.c dh->meth = method;
dh 397 source4/heimdal/lib/hcrypto/dh.c (*dh->meth->init)(dh);
dh 406 source4/heimdal/lib/hcrypto/dh.c dh_null_generate_key(DH *dh)
dh 412 source4/heimdal/lib/hcrypto/dh.c dh_null_compute_key(unsigned char *shared,const BIGNUM *pub, DH *dh)
dh 418 source4/heimdal/lib/hcrypto/dh.c dh_null_init(DH *dh)
dh 424 source4/heimdal/lib/hcrypto/dh.c dh_null_finish(DH *dh)
dh 430 source4/heimdal/lib/hcrypto/dh.c dh_null_generate_params(DH *dh, int prime_num, int len, BN_GENCB *cb)
dh 59 source4/heimdal/lib/hcrypto/engine.c const DH_METHOD *dh;
dh 119 source4/heimdal/lib/hcrypto/engine.c engine->dh = method;
dh 151 source4/heimdal/lib/hcrypto/engine.c return engine->dh;
dh 63 source4/heimdal/lib/krb5/pkinit.c DH *dh;
dh 322 source4/heimdal/lib/krb5/pkinit.c DH *dh,
dh 371 source4/heimdal/lib/krb5/pkinit.c if (dh) {
dh 405 source4/heimdal/lib/krb5/pkinit.c ret = BN_to_integer(context, dh->p, &dp.p);
dh 410 source4/heimdal/lib/krb5/pkinit.c ret = BN_to_integer(context, dh->g, &dp.g);
dh 415 source4/heimdal/lib/krb5/pkinit.c ret = BN_to_integer(context, dh->q, &dp.q);
dh 440 source4/heimdal/lib/krb5/pkinit.c ret = BN_to_integer(context, dh->pub_key, &dh_pub_key);
dh 555 source4/heimdal/lib/krb5/pkinit.c ret = build_auth_pack(context, nonce, ctx, ctx->dh, req_body, &ap);
dh 1242 source4/heimdal/lib/krb5/pkinit.c dh_gen_keylen = DH_size(ctx->dh);
dh 1243 source4/heimdal/lib/krb5/pkinit.c size = BN_num_bytes(ctx->dh->p);
dh 1256 source4/heimdal/lib/krb5/pkinit.c kdc_dh_pubkey, ctx->dh);
dh 1289 source4/heimdal/lib/krb5/pkinit.c memset(dh_gen_key, 0, DH_size(ctx->dh));
dh 1637 source4/heimdal/lib/krb5/pkinit.c select_dh_group(krb5_context context, DH *dh, unsigned long bits,
dh 1662 source4/heimdal/lib/krb5/pkinit.c dh->p = integer_to_BN(context, "p", &m->p);
dh 1663 source4/heimdal/lib/krb5/pkinit.c if (dh->p == NULL)
dh 1665 source4/heimdal/lib/krb5/pkinit.c dh->g = integer_to_BN(context, "g", &m->g);
dh 1666 source4/heimdal/lib/krb5/pkinit.c if (dh->g == NULL)
dh 1668 source4/heimdal/lib/krb5/pkinit.c dh->q = integer_to_BN(context, "q", &m->q);
dh 1669 source4/heimdal/lib/krb5/pkinit.c if (dh->q == NULL)
dh 2005 source4/heimdal/lib/krb5/pkinit.c if (ctx->dh)
dh 2006 source4/heimdal/lib/krb5/pkinit.c DH_free(ctx->dh);
dh 2007 source4/heimdal/lib/krb5/pkinit.c ctx->dh = NULL;
dh 2059 source4/heimdal/lib/krb5/pkinit.c opt->opt_private->pk_init_ctx->dh = NULL;
dh 2124 source4/heimdal/lib/krb5/pkinit.c opt->opt_private->pk_init_ctx->dh = DH_new();
dh 2125 source4/heimdal/lib/krb5/pkinit.c if (opt->opt_private->pk_init_ctx->dh == NULL) {
dh 2132 source4/heimdal/lib/krb5/pkinit.c ret = select_dh_group(context, opt->opt_private->pk_init_ctx->dh,
dh 2140 source4/heimdal/lib/krb5/pkinit.c if (DH_generate_key(opt->opt_private->pk_init_ctx->dh) != 1) {
dh 495 source4/torture/rpc/samr_accessmask.c struct policy_handle dh;
dh 541 source4/torture/rpc/samr_accessmask.c od.out.domain_handle = &dh;
dh 549 source4/torture/rpc/samr_accessmask.c status = torture_samr_Close(tctx, p, &dh);
dh 62 source4/torture/smb2/notify.c struct smb2_handle dh;
dh 66 source4/torture/smb2/notify.c status = smb2_util_roothandle(tree, &dh);
dh 71 source4/torture/smb2/notify.c n.in.file.handle = dh;
dh 137 source4/torture/smb2/notify.c status = smb2_util_close(tree, dh);
dh 139 source4/torture/smb2/notify.c status = smb2_util_roothandle(tree, &dh);
dh 144 source4/torture/smb2/notify.c n.in.file.handle = dh;
dh 178 source4/torture/smb2/notify.c n.in.file.handle = dh;