Lines Matching refs:hdr
107 static MIME_PARAM *mime_param_find(MIME_HEADER *hdr, char *name);
108 static void mime_hdr_free(MIME_HEADER *hdr);
172 const char *hdr,
176 BIO_printf(out, "-----BEGIN %s-----\n", hdr);
178 BIO_printf(out, "-----END %s-----\n", hdr);
433 MIME_HEADER *hdr;
445 if(!(hdr = mime_hdr_find(headers, "content-type")) || !hdr->value) {
453 if(!strcmp(hdr->value, "multipart/signed")) {
455 prm = mime_param_find(hdr, "boundary");
480 if(!(hdr = mime_hdr_find(headers, "content-type")) ||
481 !hdr->value) {
487 if(strcmp(hdr->value, "application/x-pkcs7-signature") &&
488 strcmp(hdr->value, "application/pkcs7-signature")) {
491 ERR_add_error_data(2, "type: ", hdr->value);
513 if (strcmp (hdr->value, "application/x-pkcs7-mime") &&
514 strcmp (hdr->value, "application/pkcs7-mime")) {
516 ERR_add_error_data(2, "type: ", hdr->value);
575 MIME_HEADER *hdr;
581 if(!(hdr = mime_hdr_find(headers, "content-type")) || !hdr->value) {
586 if (strcmp (hdr->value, "text/plain")) {
588 ERR_add_error_data(2, "type: ", hdr->value);
882 static MIME_PARAM *mime_param_find(MIME_HEADER *hdr, char *name)
887 idx = sk_MIME_PARAM_find(hdr->params, ¶m);
889 return sk_MIME_PARAM_value(hdr->params, idx);
892 static void mime_hdr_free(MIME_HEADER *hdr)
894 if(hdr->name) OPENSSL_free(hdr->name);
895 if(hdr->value) OPENSSL_free(hdr->value);
896 if(hdr->params) sk_MIME_PARAM_pop_free(hdr->params, mime_param_free);
897 OPENSSL_free(hdr);