/openssl/crypto/cmp/ |
H A D | cmp_hdr.c | 25 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_set_pvno() 34 if (!ossl_assert(hdr != NULL)) in ossl_cmp_hdr_get_pvno() 43 if (!ossl_assert(hdr != NULL) in ossl_cmp_hdr_get_protection_nid() 52 if (hdr == NULL) { in OSSL_CMP_HDR_get0_transactionID() 56 return hdr->transactionID; in OSSL_CMP_HDR_get0_transactionID() 63 return hdr->senderNonce; in ossl_cmp_hdr_get0_senderNonce() 68 if (hdr == NULL) { in OSSL_CMP_HDR_get0_recipNonce() 72 return hdr->recipNonce; in OSSL_CMP_HDR_get0_recipNonce() 133 if (hdr->messageTime == NULL in ossl_cmp_hdr_update_messageTime() 167 if (hdr->freeText == NULL in ossl_cmp_hdr_push0_freeText() [all …]
|
H A D | cmp_local.h | 803 int ossl_cmp_hdr_set_pvno(OSSL_CMP_PKIHEADER *hdr, int pvno); 804 int ossl_cmp_hdr_get_pvno(const OSSL_CMP_PKIHEADER *hdr); 805 int ossl_cmp_hdr_get_protection_nid(const OSSL_CMP_PKIHEADER *hdr); 808 int ossl_cmp_hdr_set1_sender(OSSL_CMP_PKIHEADER *hdr, const X509_NAME *nm); 810 int ossl_cmp_hdr_update_messageTime(OSSL_CMP_PKIHEADER *hdr); 811 int ossl_cmp_hdr_set1_senderKID(OSSL_CMP_PKIHEADER *hdr, 815 int ossl_cmp_hdr_generalInfo_push0_item(OSSL_CMP_PKIHEADER *hdr, 817 int ossl_cmp_hdr_generalInfo_push1_items(OSSL_CMP_PKIHEADER *hdr, 819 int ossl_cmp_hdr_set_implicitConfirm(OSSL_CMP_PKIHEADER *hdr); 820 int ossl_cmp_hdr_has_implicitConfirm(const OSSL_CMP_PKIHEADER *hdr); [all …]
|
H A D | cmp_vfy.c | 685 OSSL_CMP_PKIHEADER *hdr; in ossl_cmp_msg_check_update() local 690 hdr = OSSL_CMP_MSG_get0_header(msg); in ossl_cmp_msg_check_update() 693 if (hdr->sender->type != GEN_DIRNAME) { in ossl_cmp_msg_check_update() 705 if (!check_name(ctx, 0, "sender DN field", hdr->sender->d.directoryName, in ossl_cmp_msg_check_update() 728 if (hdr->protectionAlg != NULL) { in ossl_cmp_msg_check_update() 748 if (ossl_cmp_hdr_get_pvno(hdr) != OSSL_CMP_PVNO_2 in ossl_cmp_msg_check_update() 749 && ossl_cmp_hdr_get_pvno(hdr) != OSSL_CMP_PVNO_3) { in ossl_cmp_msg_check_update() 769 if (!check_transactionID_or_nonce(ctx->senderNonce, hdr->recipNonce, in ossl_cmp_msg_check_update() 778 if (!ossl_cmp_ctx_set1_recipNonce(ctx, hdr->senderNonce)) in ossl_cmp_msg_check_update() 783 && !OSSL_CMP_CTX_set1_transactionID(ctx, hdr->transactionID)) in ossl_cmp_msg_check_update() [all …]
|
H A D | cmp_server.c | 212 OSSL_CMP_PKIHEADER *hdr = OSSL_CMP_MSG_get0_header(req); in process_cert_request() local 221 ossl_cmp_hdr_has_implicitConfirm(hdr) in process_cert_request() 447 OSSL_CMP_PKIHEADER *hdr; in OSSL_CMP_SRV_process_request() local 454 || (hdr = OSSL_CMP_MSG_get0_header(req)) == NULL) { in OSSL_CMP_SRV_process_request() 468 if (hdr->sender->type != GEN_DIRNAME) { in OSSL_CMP_SRV_process_request() 472 if (!OSSL_CMP_CTX_set1_recipient(ctx, hdr->sender->d.directoryName)) in OSSL_CMP_SRV_process_request() 510 && ossl_cmp_hdr_get_protection_nid(hdr) != NID_id_PasswordBasedMAC) in OSSL_CMP_SRV_process_request() 571 (void)OSSL_CMP_CTX_set1_transactionID(ctx, hdr->transactionID); in OSSL_CMP_SRV_process_request() 572 (void)ossl_cmp_ctx_set1_recipNonce(ctx, hdr->senderNonce); in OSSL_CMP_SRV_process_request()
|
/openssl/test/ |
H A D | cmp_hdr_test.c | 20 OSSL_CMP_PKIHEADER *hdr; member 26 OSSL_CMP_PKIHEADER_free(fixture->hdr); in tear_down() 40 if (!TEST_ptr(fixture->hdr = OSSL_CMP_PKIHEADER_new())) in set_up() 53 if (!TEST_int_eq(ossl_cmp_hdr_set_pvno(fixture->hdr, pvno), 1)) in execute_HDR_set_get_pvno_test() 55 if (!TEST_int_eq(ossl_cmp_hdr_get_pvno(fixture->hdr), pvno)) in execute_HDR_set_get_pvno_test() 87 sn = ossl_cmp_hdr_get0_senderNonce(fixture->hdr); in execute_HDR_get0_senderNonce_test() 113 if (!TEST_int_eq(fixture->hdr->sender->type, GEN_DIRNAME)) in execute_HDR_set1_sender_test() 143 if (!TEST_int_eq(fixture->hdr->recipient->type, GEN_DIRNAME)) in execute_HDR_set1_recipient_test() 355 ginfo = fixture->hdr->generalInfo; in execute_HDR_generalInfo_push1_items_test() 411 header_nonce = ossl_cmp_hdr_get0_senderNonce(fixture->hdr); in execute_HDR_init_test() [all …]
|
H A D | http_test.c | 43 const char *hdr = (char *)req; in mock_http_server() local 52 path = hdr; in mock_http_server() 53 hdr = strchr(hdr, ' '); in mock_http_server() 54 if (hdr == NULL) in mock_http_server() 59 hdr += len; in mock_http_server() 61 if (!TEST_char_le('0', *hdr) || !TEST_char_le(*hdr++, '1')) in mock_http_server() 63 if (!TEST_char_eq(*hdr++, '\r') || !TEST_char_eq(*hdr++, '\n')) in mock_http_server() 65 count -= (hdr - req); in mock_http_server() 96 hdr = strstr(hdr, "\r\n"); in mock_http_server() 97 if (hdr == NULL) in mock_http_server() [all …]
|
H A D | cmp_vfy_test.c | 422 const OSSL_CMP_PKIHEADER *hdr = OSSL_CMP_MSG_get0_header(fixture->msg); in execute_msg_check_test() local 423 const ASN1_OCTET_STRING *tid = OSSL_CMP_HDR_get0_transactionID(hdr); in execute_msg_check_test() 436 ASN1_OCTET_STRING_cmp(ossl_cmp_hdr_get0_senderNonce(hdr), in execute_msg_check_test()
|
/openssl/doc/internal/man3/ |
H A D | ossl_cmp_hdr_init.pod | 28 int ossl_cmp_hdr_set_pvno(OSSL_CMP_PKIHEADER *hdr, int pvno); 29 int ossl_cmp_hdr_get_pvno(const OSSL_CMP_PKIHEADER *hdr); 37 int ossl_cmp_hdr_update_messagetime(OSSL_CMP_PKIHEADER *hdr); 38 int ossl_cmp_hdr_set1_senderKID(OSSL_CMP_PKIHEADER *hdr, 44 int ossl_cmp_hdr_push0_freeText(OSSL_CMP_PKIHEADER *hdr, 46 int ossl_cmp_hdr_push1_freeText(OSSL_CMP_PKIHEADER *hdr, 48 int ossl_cmp_hdr_set_implicitConfirm(OSSL_CMP_PKIHEADER *hdr); 55 ossl_cmp_hdr_set_pvno() sets hdr->pvno to the given B<pvno>. 60 in B<hdr> or NID_undef on error. 85 hdr->freeText and consumes the given pointer. [all …]
|
/openssl/crypto/asn1/ |
H A D | asn_mime.c | 61 static void mime_hdr_free(MIME_HEADER *hdr); 404 MIME_HEADER *hdr; in SMIME_read_ASN1_ex() local 418 || hdr->value == NULL) { in SMIME_read_ASN1_ex() 454 || hdr->value == NULL) { in SMIME_read_ASN1_ex() 567 MIME_HEADER *hdr; in SMIME_text() local 574 || hdr->value == NULL) { in SMIME_text() 950 if (hdr == NULL) in mime_hdr_free() 952 OPENSSL_free(hdr->name); in mime_hdr_free() 953 OPENSSL_free(hdr->value); in mime_hdr_free() 954 if (hdr->params) in mime_hdr_free() [all …]
|
/openssl/tools/ |
H A D | c_rehash.in | 167 my $hdr = $1; 168 if ($hdr =~ /^(X509 |TRUSTED |)CERTIFICATE$/) { 171 } elsif ($hdr eq "X509 CRL") {
|
/openssl/doc/man3/ |
H A D | OSSL_CMP_HDR_get0_transactionID.pod | 14 OSSL_CMP_PKIHEADER *hdr); 16 OSSL_CMP_PKIHEADER *hdr);
|
/openssl/include/internal/ |
H A D | ktls.h | 310 struct cmsghdr hdr; in ktls_send_ctrl_message() member 363 struct cmsghdr hdr; in ktls_read_record() member
|
H A D | quic_wire.h | 249 int ossl_quic_wire_encode_frame_crypto_hdr(WPACKET *hdr,
|
/openssl/crypto/http/ |
H A D | http_client.c | 348 CONF_VALUE *hdr; in add1_headers() local 351 hdr = sk_CONF_VALUE_value(headers, i); in add1_headers() 352 if (add_host && OPENSSL_strcasecmp("host", hdr->name) == 0) in add1_headers() 354 if (!OSSL_HTTP_REQ_CTX_add1_header(rctx, hdr->name, hdr->value)) in add1_headers()
|
/openssl/include/openssl/ |
H A D | pem.h | 387 int PEM_write_bio(BIO *bp, const char *name, const char *hdr, 413 int PEM_write(FILE *fp, const char *name, const char *hdr,
|
H A D | cmp.h.in | 381 OSSL_CMP_PKIHEADER *hdr); 382 ASN1_OCTET_STRING *OSSL_CMP_HDR_get0_recipNonce(const OSSL_CMP_PKIHEADER *hdr);
|
H A D | asn1.h.in | 930 const char *hdr, const ASN1_ITEM *it);
|
/openssl/apps/ |
H A D | cmp.c | 797 OSSL_CMP_PKIHEADER *hdr; in read_write_req_resp() local 832 hdr = OSSL_CMP_MSG_get0_header(res); in read_write_req_resp() 833 nonce = OSSL_CMP_HDR_get0_recipNonce(hdr); in read_write_req_resp() 834 tid = OSSL_CMP_HDR_get0_transactionID(hdr); in read_write_req_resp()
|