/bind-9.11.3/lib/isc/ |
H A D | taskpool.c | 169 isc_taskpool_setprivilege(isc_taskpool_t *pool, isc_boolean_t priv) { argument 176 isc_task_setprivilege(pool->tasks[i], priv);
|
H A D | task.c | 238 isc__task_setprivilege(isc_task_t *task0, isc_boolean_t priv); 1761 isc__task_setprivilege(isc_task_t *task0, isc_boolean_t priv) { argument 1768 if (priv) 1774 if (priv == oldpriv) 1778 if (priv && ISC_LINK_LINKED(task, ready_link)) 1781 else if (!priv && ISC_LINK_LINKED(task, ready_priority_link)) 1790 isc_boolean_t priv; local 1793 priv = ISC_TF((task->flags & TASK_F_PRIVILEGED) != 0); 1795 return (priv); 2275 isc_task_setprivilege(isc_task_t *task, isc_boolean_t priv) { argument [all...] |
/bind-9.11.3/lib/dns/ |
H A D | openssleddsa_link.c | 512 dst_private_t priv; local 523 priv.nelements = 0; 524 return (dst__privstruct_writefile(key, &priv, directory)); 533 priv.elements[0].tag = TAG_EDDSA_PRIVATEKEY; 534 priv.elements[0].length = len; 538 priv.elements[0].data = buf; 539 priv.nelements = 1; 540 ret = dst__privstruct_writefile(key, &priv, directory); 546 priv.elements[0].tag = TAG_EDDSA_PRIVATEKEY; 547 priv 579 dst_private_t priv; local [all...] |
H A D | dst_parse.c | 189 check_rsa(const dst_private_t *priv, isc_boolean_t external) { argument 196 return ((priv->nelements == 0) ? 0 : -1); 201 for (j = 0; j < priv->nelements; j++) { 203 if (priv->elements[j].tag == TAG(DST_ALG_RSAMD5, i)) 232 check_dh(const dst_private_t *priv) { argument 234 if (priv->nelements != DH_NTAGS) 237 for (j = 0; j < priv->nelements; j++) 238 if (priv->elements[j].tag == TAG(DST_ALG_DH, i)) 240 if (j == priv->nelements) 249 check_dsa(const dst_private_t *priv, isc_boolean_ argument 270 check_gost(const dst_private_t *priv, isc_boolean_t external) argument 284 check_ecdsa(const dst_private_t *priv, isc_boolean_t external) argument 316 check_eddsa(const dst_private_t *priv, isc_boolean_t external) argument 349 check_hmac_md5(const dst_private_t *priv, isc_boolean_t old) argument 377 check_hmac_sha(const dst_private_t *priv, unsigned int ntags, unsigned int alg) argument 394 check_data(const dst_private_t *priv, const unsigned int alg, isc_boolean_t old, isc_boolean_t external) argument 447 dst__privstruct_free(dst_private_t *priv, isc_mem_t *mctx) argument 462 dst__privstruct_parse(dst_key_t *key, unsigned int alg, isc_lex_t *lex, isc_mem_t *mctx, dst_private_t *priv) argument 674 dst__privstruct_writefile(const dst_key_t *key, const dst_private_t *priv, const char *directory) argument [all...] |
H A D | opensslecdsa_link.c | 469 dst_private_t priv; local 476 priv.nelements = 0; 477 return (dst__privstruct_writefile(key, &priv, directory)); 492 priv.elements[0].tag = TAG_ECDSA_PRIVATEKEY; 493 priv.elements[0].length = BN_num_bytes(privkey); 495 priv.elements[0].data = buf; 496 priv.nelements = 1; 497 ret = dst__privstruct_writefile(key, &priv, directory); 539 dst_private_t priv; local 551 ret = dst__privstruct_parse(key, DST_ALG_ECDSA256, lexer, mctx, &priv); [all...] |
H A D | opensslgost_link.c | 353 dst_private_t priv; local 362 priv.nelements = 0; 363 return (dst__privstruct_writefile(key, &priv, directory)); 380 priv.elements[0].tag = TAG_GOST_PRIVASN1; 381 priv.elements[0].length = len; 382 priv.elements[0].data = der; 383 priv.nelements = 1; 385 result = dst__privstruct_writefile(key, &priv, directory); 399 dst_private_t priv; local 407 priv 451 dst_private_t priv; local [all...] |
H A D | pkcs11dh_link.c | 96 const pk11_object_t *priv; local 100 priv = key->keydata.pkey; 101 if ((priv->object != CK_INVALID_HANDLE) && priv->ontoken) { 102 *hKey = priv->object; 106 attr = pk11_attribute_bytype(priv, CKA_PRIME); 115 attr = pk11_attribute_bytype(priv, CKA_BASE); 124 attr = pk11_attribute_bytype(priv, CKA_VALUE2); 152 pkcs11dh_computesecret(const dst_key_t *pub, const dst_key_t *priv, argument 183 REQUIRE(priv 388 CK_OBJECT_HANDLE priv = CK_INVALID_HANDLE; local 925 dst_private_t priv; local 1008 dst_private_t priv; local [all...] |
H A D | pkcs11dsa_link.c | 528 CK_OBJECT_HANDLE priv = CK_INVALID_HANDLE; local 606 &pub, &priv), 625 (pk11_ctx->session, priv, attr, 1), 632 (pk11_ctx->session, priv, attr, 1), 636 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv); 647 if (priv != CK_INVALID_HANDLE) 648 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv); 906 dst_private_t priv; local 913 priv.nelements = 0; 914 return (dst__privstruct_writefile(key, &priv, director 979 dst_private_t priv; local [all...] |
H A D | pkcs11ecdsa_link.c | 466 CK_OBJECT_HANDLE priv = CK_INVALID_HANDLE; local 520 &pub, &priv), 543 (pk11_ctx->session, priv, attr, 1), 550 (pk11_ctx->session, priv, attr, 1), 553 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv); 568 if (priv != CK_INVALID_HANDLE) 569 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv); 746 dst_private_t priv; local 755 priv.nelements = 0; 756 return (dst__privstruct_writefile(key, &priv, director 911 dst_private_t priv; local [all...] |
H A D | pkcs11eddsa_link.c | 458 CK_OBJECT_HANDLE priv = CK_INVALID_HANDLE; local 512 &pub, &priv), 536 (pk11_ctx->session, priv, attr, 1), 543 (pk11_ctx->session, priv, attr, 1), 546 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv); 561 if (priv != CK_INVALID_HANDLE) 562 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv); 732 dst_private_t priv; local 741 priv.nelements = 0; 742 return (dst__privstruct_writefile(key, &priv, director 897 dst_private_t priv; local [all...] |
H A D | pkcs11gost_link.c | 487 CK_OBJECT_HANDLE priv = CK_INVALID_HANDLE; local 520 &pub, &priv), 555 (pk11_ctx->session, priv, attr, 1), 562 (pk11_ctx->session, priv, attr, 1), 566 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv); 576 if (priv != CK_INVALID_HANDLE) 577 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv); 728 dst_private_t priv; local 738 priv.nelements = 0; 739 return (dst__privstruct_writefile(key, &priv, director 780 dst_private_t priv; local 820 dst_private_t priv; local [all...] |
H A D | openssldh_link.c | 135 openssldh_computesecret(const dst_key_t *pub, const dst_key_t *priv, argument 145 REQUIRE(priv->keydata.dh != NULL); 148 dhpriv = priv->keydata.dh; 562 dst_private_t priv; local 587 priv.elements[i].tag = TAG_DH_PRIME; 588 priv.elements[i].length = BN_num_bytes(p); 590 priv.elements[i].data = bufs[i]; 593 priv.elements[i].tag = TAG_DH_GENERATOR; 594 priv.elements[i].length = BN_num_bytes(g); 596 priv 624 dst_private_t priv; local [all...] |
H A D | openssldsa_link.c | 640 dst_private_t priv; local 647 priv.nelements = 0; 648 return (dst__privstruct_writefile(key, &priv, directory)); 656 priv.elements[cnt].tag = TAG_DSA_PRIME; 657 priv.elements[cnt].length = BN_num_bytes(p); 659 priv.elements[cnt].data = bufs[cnt]; 662 priv.elements[cnt].tag = TAG_DSA_SUBPRIME; 663 priv.elements[cnt].length = BN_num_bytes(q); 665 priv.elements[cnt].data = bufs[cnt]; 668 priv 692 dst_private_t priv; local [all...] |
H A D | opensslrsa_link.c | 1287 dst_private_t priv; local 1312 priv.nelements = 0; 1313 result = dst__privstruct_writefile(key, &priv, directory); 1327 priv.elements[i].tag = TAG_RSA_MODULUS; 1328 priv.elements[i].length = BN_num_bytes(n); 1330 priv.elements[i].data = bufs[i]; 1333 priv.elements[i].tag = TAG_RSA_PUBLICEXPONENT; 1334 priv.elements[i].length = BN_num_bytes(e); 1336 priv.elements[i].data = bufs[i]; 1340 priv 1458 dst_private_t priv; local [all...] |
H A D | pkcs11rsa_link.c | 1183 CK_OBJECT_HANDLE priv = CK_INVALID_HANDLE; local 1260 &pub, &priv), 1299 (pk11_ctx->session, priv, attr, 6), 1308 (pk11_ctx->session, priv, attr, 6), 1311 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv); 1321 if (priv != CK_INVALID_HANDLE) 1322 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv); 1549 dst_private_t priv; local 1557 priv.nelements = 0; 1558 return (dst__privstruct_writefile(key, &priv, director 1880 dst_private_t priv; local [all...] |
H A D | hmac_link.c | 246 dst_private_t priv; local 258 priv.elements[cnt].tag = TAG_HMACMD5_KEY; 259 priv.elements[cnt].length = bytes; 260 priv.elements[cnt++].data = hkey->key; 264 priv.elements[cnt].tag = TAG_HMACMD5_BITS; 265 priv.elements[cnt].data = buf; 266 priv.elements[cnt++].length = 2; 268 priv.nelements = cnt; 269 return (dst__privstruct_writefile(key, &priv, directory)); 274 dst_private_t priv; local 554 dst_private_t priv; local 582 dst_private_t priv; local 847 dst_private_t priv; local 875 dst_private_t priv; local 1134 dst_private_t priv; local 1162 dst_private_t priv; local 1421 dst_private_t priv; local 1449 dst_private_t priv; local 1708 dst_private_t priv; local 1736 dst_private_t priv; local [all...] |
H A D | dst_api.c | 470 dst_key_computesecret(const dst_key_t *pub, const dst_key_t *priv, argument 474 REQUIRE(VALID_KEY(pub) && VALID_KEY(priv)); 478 CHECKALG(priv->key_alg); 480 if (pub->keydata.generic == NULL || priv->keydata.generic == NULL) 483 if (pub->key_alg != priv->key_alg || 485 priv->func->computesecret == NULL) 488 if (dst_key_isprivate(priv) == ISC_FALSE) 491 return (pub->func->computesecret(pub, priv, secret));
|
/bind-9.11.3/bin/named/ |
H A D | server.c | 13125 dns_rdata_t priv = DNS_RDATA_INIT; local 13129 dns_rdataset_current(&privset, &priv); 13132 CHECK(dns_private_totext(&priv, &buf));
|