/openssl/crypto/cmp/ |
H A D | cmp_hdr.c | 189 OSSL_CMP_ITAV *itav) in ossl_cmp_hdr_generalInfo_push0_item() argument 191 if (!ossl_assert(hdr != NULL && itav != NULL)) in ossl_cmp_hdr_generalInfo_push0_item() 200 OSSL_CMP_ITAV *itav; in ossl_cmp_hdr_generalInfo_push1_items() local 207 if (itav == NULL) in ossl_cmp_hdr_generalInfo_push1_items() 211 OSSL_CMP_ITAV_free(itav); in ossl_cmp_hdr_generalInfo_push1_items() 220 OSSL_CMP_ITAV *itav; in ossl_cmp_hdr_set_implicitConfirm() local 231 if (!ossl_cmp_hdr_generalInfo_push0_item(hdr, itav)) in ossl_cmp_hdr_set_implicitConfirm() 237 OSSL_CMP_ITAV_free(itav); in ossl_cmp_hdr_set_implicitConfirm() 246 OSSL_CMP_ITAV *itav; in ossl_cmp_hdr_has_implicitConfirm() local 253 itav = sk_OSSL_CMP_ITAV_value(hdr->generalInfo, i); in ossl_cmp_hdr_has_implicitConfirm() [all …]
|
H A D | cmp_asn.c | 135 OSSL_CMP_ITAV *itav; variable 139 OSSL_CMP_ITAV_set0(itav, type, value); 140 return itav; 146 itav->infoType = type; in OSSL_CMP_ITAV_set0() 147 itav->infoValue.other = value; in OSSL_CMP_ITAV_set0() 152 if (itav == NULL) in OSSL_CMP_ITAV_get0_type() 154 return itav->infoType; in OSSL_CMP_ITAV_get0_type() 159 if (itav == NULL) in OSSL_CMP_ITAV_get0_value() 161 return itav->infoValue.other; in OSSL_CMP_ITAV_get0_value() 169 if (itav_sk_p == NULL || itav == NULL) { in OSSL_CMP_ITAV_push0_stack_item() [all …]
|
H A D | cmp_msg.c | 649 int ossl_cmp_msg_gen_push0_ITAV(OSSL_CMP_MSG *msg, OSSL_CMP_ITAV *itav) in ossl_cmp_msg_gen_push0_ITAV() argument 653 if (!ossl_assert(msg != NULL && itav != NULL)) in ossl_cmp_msg_gen_push0_ITAV() 664 return OSSL_CMP_ITAV_push0_stack_item(&msg->body->value.genm, itav); in ossl_cmp_msg_gen_push0_ITAV() 671 OSSL_CMP_ITAV *itav = NULL; in ossl_cmp_msg_gen_push1_ITAVs() local 677 itav = OSSL_CMP_ITAV_dup(sk_OSSL_CMP_ITAV_value(itavs, i)); in ossl_cmp_msg_gen_push1_ITAVs() 678 if (itav == NULL in ossl_cmp_msg_gen_push1_ITAVs() 679 || !ossl_cmp_msg_gen_push0_ITAV(msg, itav)) { in ossl_cmp_msg_gen_push1_ITAVs() 680 OSSL_CMP_ITAV_free(itav); in ossl_cmp_msg_gen_push1_ITAVs()
|
H A D | cmp_ctx.c | 505 int OSSL_CMP_CTX_push0_geninfo_ITAV(OSSL_CMP_CTX *ctx, OSSL_CMP_ITAV *itav) in OSSL_CMP_CTX_push0_geninfo_ITAV() argument 511 return OSSL_CMP_ITAV_push0_stack_item(&ctx->geninfo_ITAVs, itav); in OSSL_CMP_CTX_push0_geninfo_ITAV() 515 int OSSL_CMP_CTX_push0_genm_ITAV(OSSL_CMP_CTX *ctx, OSSL_CMP_ITAV *itav) in OSSL_CMP_CTX_push0_genm_ITAV() argument 521 return OSSL_CMP_ITAV_push0_stack_item(&ctx->genm_ITAVs, itav); in OSSL_CMP_CTX_push0_genm_ITAV()
|
H A D | cmp_local.h | 816 OSSL_CMP_ITAV *itav); 879 int ossl_cmp_msg_gen_push0_ITAV(OSSL_CMP_MSG *msg, OSSL_CMP_ITAV *itav);
|
/openssl/doc/man3/ |
H A D | OSSL_CMP_ITAV_set0.pod | 16 void OSSL_CMP_ITAV_set0(OSSL_CMP_ITAV *itav, ASN1_OBJECT *type, 18 ASN1_OBJECT *OSSL_CMP_ITAV_get0_type(const OSSL_CMP_ITAV *itav); 19 ASN1_TYPE *OSSL_CMP_ITAV_get0_value(const OSSL_CMP_ITAV *itav); 22 OSSL_CMP_ITAV *itav); 40 I<itav>. 43 the I<itav> as generic B<ASN1_TYPE> pointer. 81 OSSL_CMP_ITAV *itav = OSSL_CMP_ITAV_create(type, val); 82 if (itav == NULL) ... 85 if (ctx == NULL || !OSSL_CMP_CTX_geninfo_push0_ITAV(ctx, itav)) { 86 OSSL_CMP_ITAV_free(itav); /* also frees type and val */ [all …]
|
H A D | OSSL_CMP_CTX_new.pod | 123 int OSSL_CMP_CTX_push0_geninfo_ITAV(OSSL_CMP_CTX *ctx, OSSL_CMP_ITAV *itav); 141 int OSSL_CMP_CTX_push0_genm_ITAV(OSSL_CMP_CTX *ctx, OSSL_CMP_ITAV *itav); 519 OSSL_CMP_CTX_push0_geninfo_ITAV() adds I<itav> to the stack in the I<ctx> to be 584 OSSL_CMP_CTX_push0_genm_ITAV() adds I<itav> to the stack in the I<ctx> which 759 OSSL_CMP_ITAV *itav = OSSL_CMP_ITAV_new(type, NULL); 760 OSSL_CMP_CTX_push0_genm_ITAV(cmp_ctx, itav);
|
/openssl/test/ |
H A D | cmp_hdr_test.c | 297 OSSL_CMP_ITAV *itav = OSSL_CMP_ITAV_new(); in execute_HDR_generalInfo_push0_item_test() local 299 if (!TEST_ptr(itav)) in execute_HDR_generalInfo_push0_item_test() 302 if (!TEST_int_eq(ossl_cmp_hdr_generalInfo_push0_item(fixture->hdr, itav), in execute_HDR_generalInfo_push0_item_test() 306 if (!TEST_true(itav == sk_OSSL_CMP_ITAV_value(fixture->hdr->generalInfo, in execute_HDR_generalInfo_push0_item_test() 326 OSSL_CMP_ITAV *itav, *pushed_itav; in execute_HDR_generalInfo_push1_items_test() local 343 if (!TEST_ptr(itav = OSSL_CMP_ITAV_create(OBJ_txt2obj(oid, 1), val))) { in execute_HDR_generalInfo_push1_items_test() 347 if (!TEST_true(OSSL_CMP_ITAV_push0_stack_item(&itavs, itav))) { in execute_HDR_generalInfo_push1_items_test() 348 OSSL_CMP_ITAV_free(itav); in execute_HDR_generalInfo_push1_items_test() 362 if (!TEST_int_eq(ASN1_TYPE_cmp(itav->infoValue.other, pushed_val), 0)) in execute_HDR_generalInfo_push1_items_test()
|
/openssl/include/openssl/ |
H A D | cmp.h.in | 254 void OSSL_CMP_ITAV_set0(OSSL_CMP_ITAV *itav, ASN1_OBJECT *type, 256 ASN1_OBJECT *OSSL_CMP_ITAV_get0_type(const OSSL_CMP_ITAV *itav); 257 ASN1_TYPE *OSSL_CMP_ITAV_get0_value(const OSSL_CMP_ITAV *itav); 259 OSSL_CMP_ITAV *itav); 260 void OSSL_CMP_ITAV_free(OSSL_CMP_ITAV *itav); 331 int OSSL_CMP_CTX_push0_geninfo_ITAV(OSSL_CMP_CTX *ctx, OSSL_CMP_ITAV *itav); 347 int OSSL_CMP_CTX_push0_genm_ITAV(OSSL_CMP_CTX *ctx, OSSL_CMP_ITAV *itav);
|
/openssl/doc/internal/man3/ |
H A D | ossl_cmp_msg_create.pod | 76 int ossl_cmp_msg_gen_ITAV_push0(OSSL_CMP_MSG *msg, OSSL_CMP_ITAV *itav); 99 ossl_cmp_msg_gen_ITAV_push0() pushes the B<itav> to the body of the
|
H A D | ossl_cmp_hdr_init.pod | 41 OSSL_CMP_ITAV *itav); 91 item to the hdr->generalInfo stack. Consumes the B<itav> pointer.
|
/openssl/apps/ |
H A D | cmp.c | 1762 OSSL_CMP_ITAV *itav; in handle_opt_geninfo() local 1799 itav = OSSL_CMP_ITAV_create(type, val); in handle_opt_geninfo() 1800 if (itav == NULL) { in handle_opt_geninfo() 1805 if (!OSSL_CMP_CTX_push0_geninfo_ITAV(ctx, itav)) { in handle_opt_geninfo() 1806 OSSL_CMP_ITAV_free(itav); in handle_opt_geninfo() 2098 OSSL_CMP_ITAV *itav = sk_OSSL_CMP_ITAV_value(itavs, i - 1); in print_itavs() local 2099 ASN1_OBJECT *type = OSSL_CMP_ITAV_get0_type(itav); in print_itavs() 2102 if (itav == NULL) { in print_itavs() 2993 OSSL_CMP_ITAV *itav = in cmp_main() local 2996 if (itav == NULL) in cmp_main() [all …]
|