Lines Matching refs:hdr

60 static MIME_PARAM *mime_param_find(MIME_HEADER *hdr, const char *name);
61 static void mime_hdr_free(MIME_HEADER *hdr);
129 const char *hdr, const ASN1_ITEM *it) in PEM_write_bio_ASN1_stream() argument
132 BIO_printf(out, "-----BEGIN %s-----\n", hdr); in PEM_write_bio_ASN1_stream()
134 BIO_printf(out, "-----END %s-----\n", hdr); in PEM_write_bio_ASN1_stream()
406 MIME_HEADER *hdr; in SMIME_read_ASN1_ex() local
419 if ((hdr = mime_hdr_find(headers, "content-type")) == NULL in SMIME_read_ASN1_ex()
420 || hdr->value == NULL) { in SMIME_read_ASN1_ex()
428 if (strcmp(hdr->value, "multipart/signed") == 0) { in SMIME_read_ASN1_ex()
430 prm = mime_param_find(hdr, "boundary"); in SMIME_read_ASN1_ex()
455 if ((hdr = mime_hdr_find(headers, "content-type")) == NULL in SMIME_read_ASN1_ex()
456 || hdr->value == NULL) { in SMIME_read_ASN1_ex()
463 if (strcmp(hdr->value, "application/x-pkcs7-signature") && in SMIME_read_ASN1_ex()
464 strcmp(hdr->value, "application/pkcs7-signature")) { in SMIME_read_ASN1_ex()
466 "type: %s", hdr->value); in SMIME_read_ASN1_ex()
491 if (strcmp(hdr->value, "application/x-pkcs7-mime") && in SMIME_read_ASN1_ex()
492 strcmp(hdr->value, "application/pkcs7-mime")) { in SMIME_read_ASN1_ex()
494 "type: %s", hdr->value); in SMIME_read_ASN1_ex()
579 MIME_HEADER *hdr; in SMIME_text() local
585 if ((hdr = mime_hdr_find(headers, "content-type")) == NULL in SMIME_text()
586 || hdr->value == NULL) { in SMIME_text()
591 if (strcmp(hdr->value, "text/plain")) { in SMIME_text()
593 "type: %s", hdr->value); in SMIME_text()
955 static MIME_PARAM *mime_param_find(MIME_HEADER *hdr, const char *name) in mime_param_find() argument
962 idx = sk_MIME_PARAM_find(hdr->params, &param); in mime_param_find()
963 return sk_MIME_PARAM_value(hdr->params, idx); in mime_param_find()
966 static void mime_hdr_free(MIME_HEADER *hdr) in mime_hdr_free() argument
968 if (hdr == NULL) in mime_hdr_free()
970 OPENSSL_free(hdr->name); in mime_hdr_free()
971 OPENSSL_free(hdr->value); in mime_hdr_free()
972 if (hdr->params) in mime_hdr_free()
973 sk_MIME_PARAM_pop_free(hdr->params, mime_param_free); in mime_hdr_free()
974 OPENSSL_free(hdr); in mime_hdr_free()