Lines Matching defs: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)
132 BIO_printf(out, "-----BEGIN %s-----\n", hdr);
134 BIO_printf(out, "-----END %s-----\n", hdr);
404 MIME_HEADER *hdr;
417 if ((hdr = mime_hdr_find(headers, "content-type")) == NULL
418 || hdr->value == NULL) {
426 if (strcmp(hdr->value, "multipart/signed") == 0) {
428 prm = mime_param_find(hdr, "boundary");
453 if ((hdr = mime_hdr_find(headers, "content-type")) == NULL
454 || hdr->value == NULL) {
461 if (strcmp(hdr->value, "application/x-pkcs7-signature") &&
462 strcmp(hdr->value, "application/pkcs7-signature")) {
464 "type: %s", hdr->value);
489 if (strcmp(hdr->value, "application/x-pkcs7-mime") &&
490 strcmp(hdr->value, "application/pkcs7-mime")) {
492 "type: %s", hdr->value);
571 MIME_HEADER *hdr;
577 if ((hdr = mime_hdr_find(headers, "content-type")) == NULL
578 || hdr->value == NULL) {
583 if (strcmp(hdr->value, "text/plain")) {
585 "type: %s", hdr->value);
941 static MIME_PARAM *mime_param_find(MIME_HEADER *hdr, const char *name)
948 idx = sk_MIME_PARAM_find(hdr->params, ¶m);
949 return sk_MIME_PARAM_value(hdr->params, idx);
952 static void mime_hdr_free(MIME_HEADER *hdr)
954 if (hdr == NULL)
956 OPENSSL_free(hdr->name);
957 OPENSSL_free(hdr->value);
958 if (hdr->params)
959 sk_MIME_PARAM_pop_free(hdr->params, mime_param_free);
960 OPENSSL_free(hdr);