/external/e2fsprogs/e2fsck/ |
D | pass5.c | 26 struct problem_context pctx; in e2fsck_pass5() local 33 clear_problem_context(&pctx); in e2fsck_pass5() 36 fix_problem(ctx, PR_5_PASS_HEADER, &pctx); in e2fsck_pass5() 70 struct problem_context *pctx) in print_bitmap_problem() argument 74 if (pctx->blk == pctx->blk2) in print_bitmap_problem() 75 pctx->blk2 = 0; in print_bitmap_problem() 80 if (pctx->blk == pctx->blk2) in print_bitmap_problem() 81 pctx->blk2 = 0; in print_bitmap_problem() 86 if (pctx->ino == pctx->ino2) in print_bitmap_problem() 87 pctx->ino2 = 0; in print_bitmap_problem() [all …]
|
D | pass1.c | 64 static void check_blocks(e2fsck_t ctx, struct problem_context *pctx, 90 struct problem_context *pctx; member 239 static void check_immutable(e2fsck_t ctx, struct problem_context *pctx) in check_immutable() argument 241 if (!(pctx->inode->i_flags & BAD_SPECIAL_FLAGS)) in check_immutable() 244 if (!fix_problem(ctx, PR_1_SET_IMMUTABLE, pctx)) in check_immutable() 247 pctx->inode->i_flags &= ~BAD_SPECIAL_FLAGS; in check_immutable() 248 e2fsck_write_inode(ctx, pctx->ino, pctx->inode, "pass1"); in check_immutable() 255 static void check_size(e2fsck_t ctx, struct problem_context *pctx) in check_size() argument 257 struct ext2_inode *inode = pctx->inode; in check_size() 262 if (!fix_problem(ctx, PR_1_SET_NONZSIZE, pctx)) in check_size() [all …]
|
D | pass3.c | 46 struct problem_context *pctx); 59 struct problem_context pctx; in e2fsck_pass3() local 64 clear_problem_context(&pctx); in e2fsck_pass3() 71 fix_problem(ctx, PR_3_PASS_HEADER, &pctx); in e2fsck_pass3() 76 pctx.errcode = ext2fs_allocate_inode_bitmap(fs, _("inode done bitmap"), in e2fsck_pass3() 78 if (pctx.errcode) { in e2fsck_pass3() 79 pctx.num = 2; in e2fsck_pass3() 80 fix_problem(ctx, PR_3_ALLOCATE_IBITMAP_ERROR, &pctx); in e2fsck_pass3() 106 if (check_directory(ctx, dir->ino, &pctx)) in e2fsck_pass3() 147 struct problem_context pctx; in check_root() local [all …]
|
D | pass2.c | 68 char *buf, struct problem_context *pctx); 76 struct problem_context pctx; member 84 struct problem_context pctx; in e2fsck_pass2() local 99 clear_problem_context(&cd.pctx); in e2fsck_pass2() 106 fix_problem(ctx, PR_2_PASS_HEADER, &cd.pctx); in e2fsck_pass2() 111 cd.pctx.errcode = 0; in e2fsck_pass2() 113 cd.pctx.errcode = ext2fs_create_icount2(fs, in e2fsck_pass2() 117 if (cd.pctx.errcode) { in e2fsck_pass2() 118 fix_problem(ctx, PR_2_ALLOCATE_ICOUNT, &cd.pctx); in e2fsck_pass2() 143 cd.pctx.errcode = ext2fs_dblist_iterate(fs->dblist, check_dir_block, in e2fsck_pass2() [all …]
|
D | super.c | 29 struct problem_context pctx; in check_super_value() local 33 clear_problem_context(&pctx); in check_super_value() 34 pctx.num = value; in check_super_value() 35 pctx.str = descr; in check_super_value() 36 fix_problem(ctx, PR_0_MISC_CORRUPT_SUPER, &pctx); in check_super_value() 47 struct problem_context *pctx; member 65 struct problem_context *pctx; in release_inode_block() local 71 pctx = pb->pctx; in release_inode_block() 73 pctx->blk = blk; in release_inode_block() 74 pctx->blkcount = blockcnt; in release_inode_block() [all …]
|
D | pass1b.c | 212 struct problem_context pctx; in e2fsck_pass1_dupblocks() local 217 clear_problem_context(&pctx); in e2fsck_pass1_dupblocks() 219 pctx.errcode = ext2fs_allocate_inode_bitmap(fs, in e2fsck_pass1_dupblocks() 221 if (pctx.errcode) { in e2fsck_pass1_dupblocks() 222 fix_problem(ctx, PR_1B_ALLOCATE_IBITMAP_ERROR, &pctx); in e2fsck_pass1_dupblocks() 261 struct problem_context *pctx; member 271 struct problem_context pctx; in pass1b() local 273 clear_problem_context(&pctx); in pass1b() 276 fix_problem(ctx, PR_1B_PASS_HEADER, &pctx); in pass1b() 277 pctx.errcode = ext2fs_open_inode_scan(fs, ctx->inode_buffer_blocks, in pass1b() [all …]
|
D | pass4.c | 31 struct problem_context pctx; in disconnect_inode() local 42 clear_problem_context(&pctx); in disconnect_inode() 43 pctx.ino = i; in disconnect_inode() 44 pctx.inode = inode; in disconnect_inode() 57 if (fix_problem(ctx, PR_4_ZERO_LEN_INODE, &pctx)) { in disconnect_inode() 73 if (fix_problem(ctx, PR_4_UNATTACHED_INODE, &pctx)) { in disconnect_inode() 97 struct problem_context pctx; in e2fsck_pass4() local 108 clear_problem_context(&pctx); in e2fsck_pass4() 111 fix_problem(ctx, PR_4_PASS_HEADER, &pctx); in e2fsck_pass4() 161 pctx.ino = i; in e2fsck_pass4() [all …]
|
D | journal.c | 231 struct problem_context pctx; in e2fsck_get_journal() local 243 clear_problem_context(&pctx); in e2fsck_get_journal() 355 fix_problem(ctx, PR_0_CANT_FIND_JOURNAL, &pctx); in e2fsck_get_journal() 400 fix_problem(ctx, PR_0_EXT_JOURNAL_BAD_SUPER, &pctx); in e2fsck_get_journal() 407 fix_problem(ctx, PR_0_JOURNAL_BAD_UUID, &pctx); in e2fsck_get_journal() 445 struct problem_context *pctx) in e2fsck_journal_fix_bad_inode() argument 455 pctx->ino = sb->s_journal_inum; in e2fsck_journal_fix_bad_inode() 456 if (fix_problem(ctx, PR_0_JOURNAL_BAD_INODE, pctx)) { in e2fsck_journal_fix_bad_inode() 469 if (fix_problem(ctx, PR_0_JOURNAL_RECOVER_SET, pctx)) { in e2fsck_journal_fix_bad_inode() 482 struct problem_context pctx; in clear_v2_journal_fields() local [all …]
|
D | rehash.c | 334 struct problem_context pctx; in duplicate_search_and_fix() local 342 clear_problem_context(&pctx); in duplicate_search_and_fix() 343 pctx.ino = ino; in duplicate_search_and_fix() 359 pctx.dirent = ent->dir; in duplicate_search_and_fix() 361 fix_problem(ctx, PR_2_DUPLICATE_DIRENT, &pctx)) { in duplicate_search_and_fix() 382 pctx.str = new_name; in duplicate_search_and_fix() 383 if (fix_problem(ctx, PR_2_NON_UNIQUE_FILE, &pctx)) { in duplicate_search_and_fix() 820 struct problem_context pctx; in e2fsck_rehash_directories() local 839 clear_problem_context(&pctx); in e2fsck_rehash_directories() 850 pctx.errcode = retval; in e2fsck_rehash_directories() [all …]
|
/external/openssl/crypto/evp/ |
D | m_sigver.c | 66 static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, in do_sigver_init() argument 70 if (ctx->pctx == NULL) in do_sigver_init() 71 ctx->pctx = EVP_PKEY_CTX_new(pkey, e); in do_sigver_init() 72 if (ctx->pctx == NULL) in do_sigver_init() 90 if (ctx->pctx->pmeth->verifyctx_init) in do_sigver_init() 92 if (ctx->pctx->pmeth->verifyctx_init(ctx->pctx, ctx) <=0) in do_sigver_init() 94 ctx->pctx->operation = EVP_PKEY_OP_VERIFYCTX; in do_sigver_init() 96 else if (EVP_PKEY_verify_init(ctx->pctx) <= 0) in do_sigver_init() 101 if (ctx->pctx->pmeth->signctx_init) in do_sigver_init() 103 if (ctx->pctx->pmeth->signctx_init(ctx->pctx, ctx) <= 0) in do_sigver_init() [all …]
|
D | pmeth_lib.c | 307 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx) in EVP_PKEY_CTX_dup() argument 310 if (!pctx->pmeth || !pctx->pmeth->copy) in EVP_PKEY_CTX_dup() 314 if (pctx->engine && !ENGINE_init(pctx->engine)) in EVP_PKEY_CTX_dup() 324 rctx->pmeth = pctx->pmeth; in EVP_PKEY_CTX_dup() 326 rctx->engine = pctx->engine; in EVP_PKEY_CTX_dup() 329 if (pctx->pkey) in EVP_PKEY_CTX_dup() 330 CRYPTO_add(&pctx->pkey->references,1,CRYPTO_LOCK_EVP_PKEY); in EVP_PKEY_CTX_dup() 332 rctx->pkey = pctx->pkey; in EVP_PKEY_CTX_dup() 334 if (pctx->peerkey) in EVP_PKEY_CTX_dup() 335 CRYPTO_add(&pctx->peerkey->references,1,CRYPTO_LOCK_EVP_PKEY); in EVP_PKEY_CTX_dup() [all …]
|
D | digest.c | 222 if (ctx->pctx) in EVP_DigestInit_ex() 225 r = EVP_PKEY_CTX_ctrl(ctx->pctx, -1, EVP_PKEY_OP_TYPE_SIG, in EVP_DigestInit_ex() 334 if (in->pctx) in EVP_MD_CTX_copy_ex() 336 out->pctx = EVP_PKEY_CTX_dup(in->pctx); in EVP_MD_CTX_copy_ex() 337 if (!out->pctx) in EVP_MD_CTX_copy_ex() 389 if (ctx->pctx) in EVP_MD_CTX_cleanup() 390 EVP_PKEY_CTX_free(ctx->pctx); in EVP_MD_CTX_cleanup()
|
/external/openssh/ |
D | auth2-jpake.c | 374 struct jpake_ctx *pctx = authctxt->jpake_ctx; in auth2_jpake_start() local 381 PRIVSEP(jpake_step1(pctx->grp, in auth2_jpake_start() 382 &pctx->server_id, &pctx->server_id_len, in auth2_jpake_start() 383 &pctx->x3, &pctx->x4, &pctx->g_x3, &pctx->g_x4, in auth2_jpake_start() 387 PRIVSEP(auth2_jpake_get_pwdata(authctxt, &pctx->s, in auth2_jpake_start() 391 JPAKE_DEBUG_CTX((pctx, "step 1 sending in %s", __func__)); in auth2_jpake_start() 396 packet_put_string(pctx->server_id, pctx->server_id_len); in auth2_jpake_start() 397 packet_put_bignum2(pctx->g_x3); in auth2_jpake_start() 398 packet_put_bignum2(pctx->g_x4); in auth2_jpake_start() 426 struct jpake_ctx *pctx = authctxt->jpake_ctx; in input_userauth_jpake_client_step1() local [all …]
|
D | jpake.c | 94 jpake_free(struct jpake_ctx *pctx) in jpake_free() argument 96 debug3("%s: free %p", __func__, pctx); in jpake_free() 115 JPAKE_BN_CLEAR_FREE(pctx->s); in jpake_free() 116 JPAKE_BN_CLEAR_FREE(pctx->k); in jpake_free() 117 JPAKE_BN_CLEAR_FREE(pctx->x1); in jpake_free() 118 JPAKE_BN_CLEAR_FREE(pctx->x2); in jpake_free() 119 JPAKE_BN_CLEAR_FREE(pctx->x3); in jpake_free() 120 JPAKE_BN_CLEAR_FREE(pctx->x4); in jpake_free() 121 JPAKE_BN_CLEAR_FREE(pctx->g_x1); in jpake_free() 122 JPAKE_BN_CLEAR_FREE(pctx->g_x2); in jpake_free() [all …]
|
D | sshconnect2.c | 1031 struct jpake_ctx *pctx = authctxt->methoddata; in input_userauth_jpake_server_step1() local 1039 if ((pctx->g_x3 = BN_new()) == NULL || in input_userauth_jpake_server_step1() 1040 (pctx->g_x4 = BN_new()) == NULL) in input_userauth_jpake_server_step1() 1046 pctx->server_id = packet_get_string(&pctx->server_id_len); in input_userauth_jpake_server_step1() 1047 packet_get_bignum2(pctx->g_x3); in input_userauth_jpake_server_step1() 1048 packet_get_bignum2(pctx->g_x4); in input_userauth_jpake_server_step1() 1053 JPAKE_DEBUG_CTX((pctx, "step 1 received in %s", __func__)); in input_userauth_jpake_server_step1() 1056 pctx->s = jpake_password_to_secret(authctxt, crypt_scheme, salt); in input_userauth_jpake_server_step1() 1061 JPAKE_DEBUG_BN((pctx->s, "%s: s = ", __func__)); in input_userauth_jpake_server_step1() 1064 jpake_step2(pctx->grp, pctx->s, pctx->g_x1, in input_userauth_jpake_server_step1() [all …]
|
D | monitor.c | 2118 struct jpake_ctx *pctx; in mm_answer_jpake_step1() local 2128 authctxt->jpake_ctx = pctx = jpake_new(); in mm_answer_jpake_step1() 2130 jpake_step1(pctx->grp, in mm_answer_jpake_step1() 2131 &pctx->server_id, &pctx->server_id_len, in mm_answer_jpake_step1() 2132 &pctx->x3, &pctx->x4, &pctx->g_x3, &pctx->g_x4, in mm_answer_jpake_step1() 2136 JPAKE_DEBUG_CTX((pctx, "step1 done in %s", __func__)); in mm_answer_jpake_step1() 2140 buffer_put_string(m, pctx->server_id, pctx->server_id_len); in mm_answer_jpake_step1() 2141 buffer_put_bignum2(m, pctx->g_x3); in mm_answer_jpake_step1() 2142 buffer_put_bignum2(m, pctx->g_x4); in mm_answer_jpake_step1() 2163 struct jpake_ctx *pctx = authctxt->jpake_ctx; in mm_answer_jpake_get_pwdata() local [all …]
|
/external/openssl/crypto/asn1/ |
D | tasn_prn.c | 162 int nohdr, const ASN1_PCTX *pctx); 165 const ASN1_TEMPLATE *tt, const ASN1_PCTX *pctx); 170 const ASN1_PCTX *pctx); 174 const ASN1_PCTX *pctx); 177 const ASN1_ITEM *it, const ASN1_PCTX *pctx) in ASN1_item_print() argument 180 if (pctx == NULL) in ASN1_item_print() 181 pctx = &default_pctx; in ASN1_item_print() 182 if (pctx->flags & ASN1_PCTX_FLAGS_NO_STRUCT_NAME) in ASN1_item_print() 187 NULL, sname, 0, pctx); in ASN1_item_print() 193 int nohdr, const ASN1_PCTX *pctx) in asn1_item_print_ctx() argument [all …]
|
D | asn1_locl.h | 87 ASN1_PCTX *pctx); 92 ASN1_PCTX *pctx); 104 ASN1_PCTX *pctx); 107 int indent, ASN1_PCTX *pctx);
|
/external/chromium/third_party/libjingle/source/talk/xmpp/ |
D | xmppstanzaparser.h | 59 virtual void StartElement(XmlParseContext * pctx, in StartElement() argument 61 { outer_->IncomingStartElement(pctx, name, atts); } in StartElement() 62 virtual void EndElement(XmlParseContext * pctx, in EndElement() argument 64 { outer_->IncomingEndElement(pctx, name); } in EndElement() 65 virtual void CharacterData(XmlParseContext * pctx, in CharacterData() argument 67 { outer_->IncomingCharacterData(pctx, text, len); } in CharacterData() 68 virtual void Error(XmlParseContext * pctx, in Error() argument 70 { outer_->IncomingError(pctx, errCode); } in Error() 77 void IncomingStartElement(XmlParseContext * pctx, 79 void IncomingEndElement(XmlParseContext * pctx, [all …]
|
D | xmppstanzaparser.cc | 57 XmlParseContext * pctx, const char * name, const char ** atts) { in IncomingStartElement() argument 59 XmlElement * pelStream = XmlBuilder::BuildElement(pctx, name, atts); in IncomingStartElement() 61 pctx->RaiseError(XML_ERROR_SYNTAX); in IncomingStartElement() 69 builder_.StartElement(pctx, name, atts); in IncomingStartElement() 74 XmlParseContext * pctx, const char * text, int len) { in IncomingCharacterData() argument 76 builder_.CharacterData(pctx, text, len); in IncomingCharacterData() 82 XmlParseContext * pctx, const char * name) { in IncomingEndElement() argument 88 builder_.EndElement(pctx, name); in IncomingEndElement() 99 XmlParseContext * pctx, XML_Error errCode) { in IncomingError() argument 100 UNUSED(pctx); in IncomingError()
|
/external/chromium/third_party/libjingle/source/talk/xmllite/ |
D | xmlbuilder.cc | 55 XmlBuilder::BuildElement(XmlParseContext * pctx, in BuildElement() argument 57 QName tagName(pctx->ResolveQName(name, false)); in BuildElement() 69 QName attName(pctx->ResolveQName(*atts, true)); in BuildElement() 92 XmlBuilder::StartElement(XmlParseContext * pctx, in StartElement() argument 94 XmlElement * pelNew = BuildElement(pctx, name, atts); in StartElement() 96 pctx->RaiseError(XML_ERROR_SYNTAX); in StartElement() 112 XmlBuilder::EndElement(XmlParseContext * pctx, const char * name) { in EndElement() argument 113 UNUSED(pctx); in EndElement() 120 XmlBuilder::CharacterData(XmlParseContext * pctx, in CharacterData() argument 122 UNUSED(pctx); in CharacterData() [all …]
|
D | xmlbuilder.h | 52 static XmlElement * BuildElement(XmlParseContext * pctx, 54 virtual void StartElement(XmlParseContext * pctx, 56 virtual void EndElement(XmlParseContext * pctx, const char * name); 57 virtual void CharacterData(XmlParseContext * pctx, 59 virtual void Error(XmlParseContext * pctx, XML_Error);
|
D | xmlparser.h | 61 virtual void StartElement(XmlParseContext * pctx, 63 virtual void EndElement(XmlParseContext * pctx, 65 virtual void CharacterData(XmlParseContext * pctx, 67 virtual void Error(XmlParseContext * pctx,
|
/external/openssl/apps/ |
D | genpkey.c | 68 static int init_keygen_file(BIO *err, EVP_PKEY_CTX **pctx, 315 static int init_keygen_file(BIO *err, EVP_PKEY_CTX **pctx, in init_keygen_file() argument 321 if (*pctx) in init_keygen_file() 349 *pctx = ctx; in init_keygen_file() 363 int init_gen_str(BIO *err, EVP_PKEY_CTX **pctx, in init_gen_str() argument 371 if (*pctx) in init_gen_str() 412 *pctx = ctx; in init_gen_str()
|
/external/openssl/crypto/pkcs7/ |
D | pk7_doit.c | 144 EVP_PKEY_CTX *pctx = NULL; in pkcs7_encode_rinfo() local 155 pctx = EVP_PKEY_CTX_new(pkey, NULL); in pkcs7_encode_rinfo() 156 if (!pctx) in pkcs7_encode_rinfo() 159 if (EVP_PKEY_encrypt_init(pctx) <= 0) in pkcs7_encode_rinfo() 162 if (EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_ENCRYPT, in pkcs7_encode_rinfo() 169 if (EVP_PKEY_encrypt(pctx, NULL, &eklen, key, keylen) <= 0) in pkcs7_encode_rinfo() 180 if (EVP_PKEY_encrypt(pctx, ek, &eklen, key, keylen) <= 0) in pkcs7_encode_rinfo() 191 if (pctx) in pkcs7_encode_rinfo() 192 EVP_PKEY_CTX_free(pctx); in pkcs7_encode_rinfo() 203 EVP_PKEY_CTX *pctx = NULL; in pkcs7_decrypt_rinfo() local [all …]
|